empyrean-sys 0.9.0

Low-level FFI bindings to the libempyrean astrodynamics C ABI. For an ergonomic Rust API, use the empyrean crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
/* automatically generated by rust-bindgen 0.72.1 */

pub const EMPYREAN_BUILTSYSTEM_OK: u32 = 0;
pub const EMPYREAN_BUILTSYSTEM_NULL_POINTER: i32 = -1;
pub const EMPYREAN_BUILTSYSTEM_INVALID_ARGUMENT: i32 = -2;
pub const EMPYREAN_BUILTSYSTEM_PROPAGATION: i32 = -3;
pub const EMPYREAN_BUILTSYSTEM_ALLOC: i32 = -5;
pub const EMPYREAN_BUILTSYSTEM_DATA_MISMATCH: i32 = -20;
pub const EMPYREAN_BUILTSYSTEM_KEY_MISMATCH_FRAME: i32 = -21;
pub const EMPYREAN_BUILTSYSTEM_KEY_MISMATCH_FORCE_MODEL: i32 = -22;
pub const EMPYREAN_BUILTSYSTEM_KEY_MISMATCH_DIVISOR: i32 = -23;
pub const EMPYREAN_BUILTSYSTEM_STALE: i32 = -24;
pub const EMPYREAN_BUILTSYSTEM_PANIC: i32 = -99;
pub const EMPYREAN_KERNEL_KIND_SPK: u32 = 0;
pub const EMPYREAN_KERNEL_KIND_BPC: u32 = 1;
pub const EMPYREAN_KERNEL_KIND_TPC: u32 = 2;
pub const EMPYREAN_KERNEL_KIND_GRAVITY: u32 = 3;
pub const EMPYREAN_KERNEL_KIND_OBSCODES: u32 = 4;
pub const EMPYREAN_KERNEL_PROVENANCE_FILE: u32 = 0;
pub const EMPYREAN_KERNEL_PROVENANCE_IN_MEMORY: u32 = 1;
pub const EMPYREAN_KERNEL_PROVENANCE_BUILT_IN: u32 = 2;
pub const EMPYREAN_RADAR_KIND_DELAY: u32 = 0;
pub const EMPYREAN_RADAR_KIND_DOPPLER: u32 = 1;
pub const EMPYREAN_COVARIANCE_TRUST_NOT_EVALUATED: i32 = 0;
pub const EMPYREAN_COVARIANCE_TRUST_TRUSTED: i32 = 1;
pub const EMPYREAN_COVARIANCE_TRUST_ENCOUNTER_INTERVENES: i32 = 2;
pub const EMPYREAN_COVARIANCE_TRUST_WEAKLY_DETERMINED_HIGH_N: i32 = 3;
pub const EMPYREAN_TRUST_EVENT_NONE: i32 = 0;
pub const EMPYREAN_TRUST_EVENT_CLOSE_APPROACH: i32 = 1;
pub const EMPYREAN_TRUST_EVENT_HIGH_NONLINEARITY: i32 = 2;
pub const EMPYREAN_REJECTION_ACCEPTED: u32 = 0;
pub const EMPYREAN_REJECTION_CHI_SQUARED: u32 = 1;
pub const EMPYREAN_REJECTION_SIGMA_CLIP: u32 = 2;
pub const EMPYREAN_REJECTION_COOKS_DISTANCE: u32 = 3;
pub const EMPYREAN_REJECTION_ADAPTIVE: u32 = 4;
pub const EMPYREAN_REJECTION_UNSUPPORTED_OBSERVATORY: u32 = 5;
pub const EMPYREAN_REJECTION_CMC2003: u32 = 6;
pub const EMPYREAN_REJECTION_RADAR_UNSUPPORTED: u32 = 7;
pub const EMPYREAN_REJECTION_OCCULTATION_UNSUPPORTED: u32 = 8;
pub const EMPYREAN_REJECTION_OUTSIDE_ARC: u32 = 9;
pub const EMPYREAN_REJECTION_NOT_EVALUATED: i32 = -1;
pub const EMPYREAN_REJECTION_KIND_ADAPTIVE: u32 = 0;
pub const EMPYREAN_REJECTION_KIND_CMC2003: u32 = 1;
pub const EMPYREAN_WEIGHTING_PRESET_NONE: u32 = 0;
pub const EMPYREAN_WEIGHTING_PRESET_VFC17: u32 = 1;
pub const EMPYREAN_WEIGHTING_PRESET_NEODYS: u32 = 2;
pub const EMPYREAN_SIGMA_POLICY_DEFAULT_ONLY: u32 = 0;
pub const EMPYREAN_SIGMA_POLICY_FLOOR: u32 = 1;
pub const EMPYREAN_WEIGHTING_LAYER_OBSERVATORY_RULE: u32 = 0;
pub const EMPYREAN_WEIGHTING_LAYER_NIGHTLY_DEWEIGHTING: u32 = 1;
pub const EMPYREAN_DEBIASING_TABLE_EFCC2020: u32 = 0;
pub const EMPYREAN_DEBIASING_RESOLUTION_STANDARD: u32 = 0;
pub const EMPYREAN_DEBIASING_RESOLUTION_HIRES: u32 = 1;
pub const EMPYREAN_SOLVE_FOR_STATE_ONLY: u32 = 0;
pub const EMPYREAN_SOLVE_FOR_STATE_AND_NONGRAV: u32 = 1;
pub const EMPYREAN_SOLVE_FOR_AUTO: u32 = 2;
pub const EMPYREAN_SOLVE_FOR_EXPLICIT: u32 = 3;
pub const EMPYREAN_SOLVE_WIDTH: u32 = 20;
pub const EMPYREAN_SLOT_NONE: u32 = 4294967295;
pub const EMPYREAN_PHOTOMETRY_MODEL_AUTO: u32 = 0;
pub const EMPYREAN_PHOTOMETRY_MODEL_HONLY: u32 = 1;
pub const EMPYREAN_PHOTOMETRY_MODEL_HG: u32 = 2;
pub const EMPYREAN_PHOTOMETRY_MODEL_HG12: u32 = 3;
pub const EMPYREAN_PHOTOMETRY_MODEL_HG1G2: u32 = 4;
pub const EMPYREAN_ABI_VERSION: u32 = 2;
pub const EMPYREAN_ORIGIN_POLICY_AUTO: u32 = 0;
pub const EMPYREAN_ORIGIN_POLICY_EXPLICIT: u32 = 1;
pub const EMPYREAN_OUTPUT_EPOCH_MID_ARC: u32 = 0;
pub const EMPYREAN_OUTPUT_EPOCH_LAST_OBSERVATION: u32 = 1;
pub const EMPYREAN_OUTPUT_EPOCH_EXPLICIT: u32 = 2;
pub const EMPYREAN_OUTPUT_EPOCH_IOD_EPOCH: u32 = 3;
pub const EMPYREAN_REPRESENTATION_CARTESIAN: u32 = 0;
pub const EMPYREAN_REPRESENTATION_KEPLERIAN: u32 = 1;
pub const EMPYREAN_REPRESENTATION_COMETARY: u32 = 2;
pub const EMPYREAN_REPRESENTATION_SPHERICAL: u32 = 3;
pub const EMPYREAN_PHASE_FUNCTION_NONE: i32 = -1;
pub const EMPYREAN_PHASE_FUNCTION_HG: u32 = 0;
pub const EMPYREAN_PHASE_FUNCTION_HG1G2: u32 = 1;
pub const EMPYREAN_PHASE_FUNCTION_HG12: u32 = 2;
pub const EMPYREAN_STEERING_LAW_CONSTANT_RTN: u32 = 0;
pub const EMPYREAN_STEERING_LAW_VELOCITY_TANGENT: u32 = 1;
pub const EMPYREAN_STEERING_LAW_INERTIAL_FIXED: u32 = 2;
pub const EMPYREAN_INTEGRATOR_GR15: u32 = 0;
pub const EMPYREAN_INTEGRATOR_DOP853: u32 = 1;
pub const EMPYREAN_ORIGIN_SWITCHING_DEFAULT: u32 = 0;
pub const EMPYREAN_ORIGIN_SWITCHING_ON: u32 = 1;
pub const EMPYREAN_ORIGIN_SWITCHING_OFF: u32 = 2;
pub const EMPYREAN_UNCERTAINTY_FIRST: u32 = 0;
pub const EMPYREAN_UNCERTAINTY_SECOND: u32 = 1;
pub const EMPYREAN_UNCERTAINTY_SIGMA_POINT: u32 = 2;
pub const EMPYREAN_UNCERTAINTY_MONTE_CARLO: u32 = 3;
pub const EMPYREAN_UNCERTAINTY_AUTO: u32 = 4;
pub const EMPYREAN_COVARIANCE_KIND_LINEAR: u32 = 0;
pub const EMPYREAN_COVARIANCE_KIND_SECOND_ORDER: u32 = 1;
pub const EMPYREAN_COVARIANCE_KIND_THIRD_ORDER: u32 = 2;
pub const EMPYREAN_COVARIANCE_KIND_MIXTURE: u32 = 3;
pub const EMPYREAN_COVARIANCE_KIND_MONTE_CARLO: u32 = 4;
pub const EMPYREAN_COVARIANCE_KIND_SIGMA_POINT: u32 = 5;
pub const EMPYREAN_COVARIANCE_QUALITY_POSITIVE_DEFINITE: u32 = 0;
pub const EMPYREAN_COVARIANCE_QUALITY_INDEFINITE: u32 = 1;
pub const EMPYREAN_COVARIANCE_QUALITY_REPAIRED: u32 = 2;
pub const EMPYREAN_TARGET_FUNCTIONAL_CARTESIAN_STATE: u32 = 0;
pub const EMPYREAN_TARGET_FUNCTIONAL_CLOSE_APPROACH_MISS_DISTANCE: u32 = 1;
pub const EMPYREAN_TAGGED_COV_OK: u32 = 0;
pub const EMPYREAN_TAGGED_COV_NULL_POINTER: i32 = -1;
pub const EMPYREAN_TAGGED_COV_ORBIT_INDEX_OUT_OF_RANGE: i32 = -2;
pub const EMPYREAN_TAGGED_COV_NO_INITIAL_COVARIANCE: i32 = -3;
pub const EMPYREAN_TAGGED_COV_NO_DENSE_TRAJECTORY: i32 = -4;
pub const EMPYREAN_TAGGED_COV_STATE_MISSING: i32 = -5;
pub const EMPYREAN_TAGGED_COV_TRANSFORM: i32 = -6;
pub const EMPYREAN_TAGGED_COV_UNCERTAINTY: i32 = -7;
pub const EMPYREAN_TAGGED_COV_EPOCH_INDEX_OUT_OF_RANGE: i32 = -8;
pub const EMPYREAN_TAGGED_COV_SAMPLE_COVARIANCE_MISSING: i32 = -9;
pub const EMPYREAN_TAGGED_COV_PANIC: i32 = -99;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Context {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Session {
    _unused: [u8; 0],
}
#[doc = " Opaque handle wrapping a pre-assembled force model plus the\n kernel-identity snapshot taken from the context at construction (so\n [`empyrean_builtsystem_describe`] is self-contained). Construct with\n [`empyrean_builtsystem_new`]; release with [`empyrean_builtsystem_free`].\n\n The handle is `Send + Sync`: hand `&EmpyreanBuiltSystem` (via a `const`\n pointer) to as many threads as you like. It borrows nothing from the\n context after construction."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanBuiltSystem {
    _unused: [u8; 0],
}
#[doc = " C FFI opaque handle. Internally an [`empyrean_core::Context`]; the\n C header forward-declares `struct EmpyreanContext` — callers only\n see the pointer."]
pub type EmpyreanContext = Context;
#[doc = " Per-crate version strings reported by the empyrean stack.\n\n Mirrors [`empyrean_core::Versions`]. Each pointer is a heap-allocated\n NUL-terminated UTF-8 string owned by [`EmpyreanVersions`]; release\n the whole struct with [`empyrean_versions_free`] (do not free the\n individual fields with [`empyrean_string_free`])."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanVersions {
    #[doc = " `empyrean-core` crate version (semver string from `Cargo.toml`)."]
    pub empyrean_core: *mut ::std::os::raw::c_char,
    #[doc = " `villeneuve` crate version (`<tag>+<sha>` git-populated)."]
    pub villeneuve: *mut ::std::os::raw::c_char,
    #[doc = " `scott` crate version (`<tag>+<sha>` git-populated)."]
    pub scott: *mut ::std::os::raw::c_char,
    #[doc = " `nolan` crate version (`<tag>+<sha>` git-populated)."]
    pub nolan: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanVersions"][::std::mem::size_of::<EmpyreanVersions>() - 32usize];
    ["Alignment of EmpyreanVersions"][::std::mem::align_of::<EmpyreanVersions>() - 8usize];
    ["Offset of field: EmpyreanVersions::empyrean_core"]
        [::std::mem::offset_of!(EmpyreanVersions, empyrean_core) - 0usize];
    ["Offset of field: EmpyreanVersions::villeneuve"]
        [::std::mem::offset_of!(EmpyreanVersions, villeneuve) - 8usize];
    ["Offset of field: EmpyreanVersions::scott"]
        [::std::mem::offset_of!(EmpyreanVersions, scott) - 16usize];
    ["Offset of field: EmpyreanVersions::nolan"]
        [::std::mem::offset_of!(EmpyreanVersions, nolan) - 24usize];
};
impl Default for EmpyreanVersions {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Flat C-ABI compatible coordinate state.\n\n Field-identical to [`empyrean_core::convert::CoordinateState`]; the\n duplicate definition exists so cbindgen (which has `parse_deps =\n false`) can emit the matching C struct in `empyrean.h` without\n traversing into the empyrean-core crate."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CoordinateState {
    pub epoch_mjd_tdb: f64,
    pub elements: [f64; 6usize],
    pub covariance: [[f64; 6usize]; 6usize],
    pub has_covariance: u8,
    pub representation: i32,
    pub frame: i32,
    pub origin: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of CoordinateState"][::std::mem::size_of::<CoordinateState>() - 360usize];
    ["Alignment of CoordinateState"][::std::mem::align_of::<CoordinateState>() - 8usize];
    ["Offset of field: CoordinateState::epoch_mjd_tdb"]
        [::std::mem::offset_of!(CoordinateState, epoch_mjd_tdb) - 0usize];
    ["Offset of field: CoordinateState::elements"]
        [::std::mem::offset_of!(CoordinateState, elements) - 8usize];
    ["Offset of field: CoordinateState::covariance"]
        [::std::mem::offset_of!(CoordinateState, covariance) - 56usize];
    ["Offset of field: CoordinateState::has_covariance"]
        [::std::mem::offset_of!(CoordinateState, has_covariance) - 344usize];
    ["Offset of field: CoordinateState::representation"]
        [::std::mem::offset_of!(CoordinateState, representation) - 348usize];
    ["Offset of field: CoordinateState::frame"]
        [::std::mem::offset_of!(CoordinateState, frame) - 352usize];
    ["Offset of field: CoordinateState::origin"]
        [::std::mem::offset_of!(CoordinateState, origin) - 356usize];
};
#[doc = " A single continuous-thrust arc, mirroring\n [`empyrean_core::nongrav::ThrustArc`] as a flat `#[repr(C)]` record.\n\n Arcs are supplied through [`EmpyreanOrbit::thrust_arcs`] as a\n caller-owned side array borrowed read-only for the duration of the call.\n\n The acceleration during the arc is\n \\\\[ \\mathbf{a}(t) = \\sigma(t)\\,\\frac{F}{m(t)}\\,\\hat{d} \\\\]\n with a smooth \\\\(\\tanh\\\\) switch \\\\(\\sigma(t)\\\\) of width set by\n `sharpness`, steering direction \\\\(\\hat{d}\\\\) from `steering_law`, and\n mass \\\\(m(t)\\\\) that depletes when `isp_s` is finite."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanThrustArc {
    #[doc = " Arc start epoch (MJD TDB)."]
    pub start_mjd_tdb: f64,
    #[doc = " Arc end epoch (MJD TDB)."]
    pub end_mjd_tdb: f64,
    #[doc = " Engine thrust force in Newtons."]
    pub thrust_n: f64,
    #[doc = " Spacecraft mass at arc start in kilograms."]
    pub mass_kg: f64,
    #[doc = " Specific impulse in seconds. Any non-finite value (`NaN` or `±∞`)\n selects constant mass (no depletion); a finite value depletes mass at\n \\\\(\\dot m = F/(I_{sp} g_0)\\\\). This is the `Option<f64>` NaN-sentinel\n convention shared with [`EmpyreanOrbit::non_grav_dt`]."]
    pub isp_s: f64,
    #[doc = " Steering-law selector — see the `EMPYREAN_STEERING_LAW_*` tag\n constants. An unrecognized value errors loudly."]
    pub steering_law: i32,
    #[doc = " `CONSTANT_RTN` in-plane angle α from radial toward transverse\n (radians). Read only when `steering_law == CONSTANT_RTN`."]
    pub steering_alpha_rad: f64,
    #[doc = " `CONSTANT_RTN` out-of-plane angle β toward orbit normal (radians).\n Read only when `steering_law == CONSTANT_RTN`."]
    pub steering_beta_rad: f64,
    #[doc = " `INERTIAL_FIXED` direction vector (normalized internally). Read only\n when `steering_law == INERTIAL_FIXED`."]
    pub steering_direction: [f64; 3usize],
    #[doc = " \\\\(\\tanh\\\\) switching sharpness (1/days). Higher = sharper on/off."]
    pub sharpness: f64,
    #[doc = " Central-body NAIF id for the RTN / velocity-tangent frame reference\n (same encoding as [`EmpyreanOrbit`]'s `state.origin`, e.g. `399` for\n Earth, `10` for the Sun). An unknown NAIF id errors loudly."]
    pub central_body_naif_id: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanThrustArc"][::std::mem::size_of::<EmpyreanThrustArc>() - 104usize];
    ["Alignment of EmpyreanThrustArc"][::std::mem::align_of::<EmpyreanThrustArc>() - 8usize];
    ["Offset of field: EmpyreanThrustArc::start_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanThrustArc, start_mjd_tdb) - 0usize];
    ["Offset of field: EmpyreanThrustArc::end_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanThrustArc, end_mjd_tdb) - 8usize];
    ["Offset of field: EmpyreanThrustArc::thrust_n"]
        [::std::mem::offset_of!(EmpyreanThrustArc, thrust_n) - 16usize];
    ["Offset of field: EmpyreanThrustArc::mass_kg"]
        [::std::mem::offset_of!(EmpyreanThrustArc, mass_kg) - 24usize];
    ["Offset of field: EmpyreanThrustArc::isp_s"]
        [::std::mem::offset_of!(EmpyreanThrustArc, isp_s) - 32usize];
    ["Offset of field: EmpyreanThrustArc::steering_law"]
        [::std::mem::offset_of!(EmpyreanThrustArc, steering_law) - 40usize];
    ["Offset of field: EmpyreanThrustArc::steering_alpha_rad"]
        [::std::mem::offset_of!(EmpyreanThrustArc, steering_alpha_rad) - 48usize];
    ["Offset of field: EmpyreanThrustArc::steering_beta_rad"]
        [::std::mem::offset_of!(EmpyreanThrustArc, steering_beta_rad) - 56usize];
    ["Offset of field: EmpyreanThrustArc::steering_direction"]
        [::std::mem::offset_of!(EmpyreanThrustArc, steering_direction) - 64usize];
    ["Offset of field: EmpyreanThrustArc::sharpness"]
        [::std::mem::offset_of!(EmpyreanThrustArc, sharpness) - 88usize];
    ["Offset of field: EmpyreanThrustArc::central_body_naif_id"]
        [::std::mem::offset_of!(EmpyreanThrustArc, central_body_naif_id) - 96usize];
};
#[doc = " An orbit with optional non-gravitational parameters, continuous-thrust\n arcs, and photometry.\n\n Thrust: when `n_thrust_arcs > 0`, [`thrust_arcs`](Self::thrust_arcs)\n (plus the optional [`dv_corrections`](Self::dv_corrections) /\n [`correction_covariances`](Self::correction_covariances) side arrays)\n build a [`ThrustParams`] for this orbit. All-zero `a1/a2/a3` and\n `n_thrust_arcs == 0` is a pure-gravity orbit.\n\n `a1/a2/a3` are the Marsden–Sekanina RTN coefficients (radial,\n transverse, normal) in AU/day². `ng_alpha … ng_k` parameterize the\n g(r) distance-dependent scaling:\n \\\\[ g(r) = \\alpha \\\\, (r/r_0)^{-m} \\\\, (1 + (r/r_0)^n)^{-k} \\\\].\n All-zeros for the g-function fields selects the inverse-square\n default (Yarkovsky / SRP asteroid case): \\\\(\\alpha = r_0 = 1\\\\),\n \\\\(m = 2\\\\), \\\\(n = k = 0\\\\). Comets typically pass SBDB's\n Marsden water-ice values\n (\\\\(\\alpha = 0.1113, r_0 = 2.808, m = 2.15, n = 5.093, k = 4.6142\\\\)).\n\n Photometry: when `phot_system` is one of the `EMPYREAN_PHASE_FUNCTION_*`\n non-`NONE` constants, ephemeris generation produces apparent magnitude\n using the (`H`, `slope1`, `slope2`) triple per the chosen phase function:\n\n | Model | `H` | `slope1` | `slope2` |\n |-------|-----|----------|----------|\n | `HG`     | absolute magnitude | G    | unused (0)  |\n | `HG1G2`  | absolute magnitude | G₁   | G₂          |\n | `HG12`   | absolute magnitude | G₁₂  | unused (0)  |"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanOrbit {
    pub state: CoordinateState,
    #[doc = " Caller-supplied orbit identifier — primary key for joining\n outputs (propagated states, events, ephemeris, B-planes, IP) to\n the input row. NUL-terminated UTF-8. A null pointer or empty\n string causes the C ABI to fabricate a positional `\"orbit_{i}\"`\n tag instead — set this whenever you want stable joins.\n\n **Ownership:** read-only borrow from the caller; the C ABI does\n not free it."]
    pub orbit_id: *const ::std::os::raw::c_char,
    #[doc = " Caller-supplied object identifier (e.g. SBDB designation).\n Distinct from `orbit_id` so multiple orbit hypotheses for the\n same object can share an `object_id`. NUL-terminated UTF-8.\n Empty string or null = no object identifier.\n\n **Ownership:** read-only borrow from the caller; the C ABI does\n not free it."]
    pub object_id: *const ::std::os::raw::c_char,
    #[doc = " Marsden-Sekanina A1 coefficient (radial). 0 ⇒ no non-grav."]
    pub a1: f64,
    #[doc = " Marsden-Sekanina A2 coefficient (transverse)."]
    pub a2: f64,
    #[doc = " Marsden-Sekanina A3 coefficient (normal)."]
    pub a3: f64,
    #[doc = " g(r) normalizing constant α. All-zero g-fields → inverse_square."]
    pub ng_alpha: f64,
    #[doc = " g(r) reference distance r₀ (AU)."]
    pub ng_r0: f64,
    #[doc = " g(r) inner power-law exponent m."]
    pub ng_m: f64,
    #[doc = " g(r) outer power-law exponent n."]
    pub ng_n: f64,
    #[doc = " g(r) outer damping exponent k."]
    pub ng_k: f64,
    #[doc = " SBDB non-grav time delay in days. Use NaN for no delay (the\n asteroid default and the Marsden water-ice default for comets\n SBDB doesn't fit a delay for). Set to a finite value (positive\n or negative) when SBDB's `model_pars[]` exposes a `DT` field —\n e.g. 67P (+45.7d), 46P/Wirtanen (−14.1d), 2I/Borisov (−65.1d)."]
    pub non_grav_dt: f64,
    #[doc = " Prior variance on the non-grav time delay DT (days²). NaN or ≤0 = no\n prior; a finite positive value opens + priors the DT column in a\n StateAndNonGravAndDT fit."]
    pub non_grav_dt_variance: f64,
    #[doc = " 1 when `non_grav_covariance` carries a non-grav prior covariance; 0\n otherwise. Set by the OD output path (a fitted orbit) so it re-feeds\n into a StateAndNonGrav refine without losing its non-grav prior;\n leave 0 for hand-built / SBDB / propagate inputs."]
    pub has_non_grav_covariance: u8,
    #[doc = " Non-grav 3×3 covariance for (A1, A2, A3), row-major. Only read when\n `has_non_grav_covariance = 1`."]
    pub non_grav_covariance: [[f64; 3usize]; 3usize],
    #[doc = " Phase-function model. `EMPYREAN_PHASE_FUNCTION_NONE` disables\n magnitude computation; the other values map to villeneuve's\n `PhaseFunction` enum."]
    pub phot_system: i32,
    #[doc = " Absolute magnitude H. Ignored when `phot_system == NONE`."]
    pub h_mag: f64,
    #[doc = " Slope parameter slot 1 — G (HG), G₁ (HG1G2), or G₁₂ (HG12)."]
    pub slope1: f64,
    #[doc = " Slope parameter slot 2 — G₂ (HG1G2 only); unused (0) for HG / HG12."]
    pub slope2: f64,
    #[doc = " Continuous-thrust arcs (variable length). Null / `n_thrust_arcs == 0`\n ⇒ no thrust (gravity + non-grav only).\n\n **Ownership:** caller-owned; borrowed read-only for the duration of\n the call. The C ABI never frees it. A null pointer with\n `n_thrust_arcs > 0` is a loud argument error, not a silent skip; a\n non-null pointer with `n_thrust_arcs == 0` is treated as absent (the\n pointer is not read)."]
    pub thrust_arcs: *const EmpyreanThrustArc,
    #[doc = " Number of arcs in [`thrust_arcs`](Self::thrust_arcs)."]
    pub n_thrust_arcs: usize,
    #[doc = " Optional per-arc Δv corrections (AU/day), positional with\n [`thrust_arcs`](Self::thrust_arcs). Null / `n_dv_corrections == 0` ⇒\n no targeting corrections. Supplying corrections without any arc is a\n loud argument error.\n\n **Ownership:** caller-owned; borrowed read-only for the call."]
    pub dv_corrections: *const [f64; 3usize],
    #[doc = " Number of corrections in [`dv_corrections`](Self::dv_corrections)."]
    pub n_dv_corrections: usize,
    #[doc = " Optional 3×3 covariance (AU/day)² per Δv correction, positional with\n [`dv_corrections`](Self::dv_corrections). When non-empty its length\n MUST equal `n_dv_corrections`; a non-empty covariance triggers the\n wide-Jet burn-sensitivity propagation. The engine's higher-order\n (third-order) propagation path does not implement thrust-correction\n covariance and rejects that combination loudly upstream\n (`Not implemented: … ThirdOrder with thrust-correction covariance …`,\n surfaced as a propagation error) rather than silently dropping the\n covariance.\n\n **Ownership:** caller-owned; borrowed read-only for the call."]
    pub correction_covariances: *const [[f64; 3usize]; 3usize],
    #[doc = " Number of entries in\n [`correction_covariances`](Self::correction_covariances)."]
    pub n_correction_covariances: usize,
    #[doc = " 1 when this orbit carries a solar-radiation-pressure force slot\n (`srp_amrat` + `srp_cr`); 0 otherwise. SRP is **never** value-inferred\n — this explicit switch is the only trigger."]
    pub has_srp: u8,
    #[doc = " Area-to-mass ratio AMRAT (m²/kg) — the SRP-effective, fittable\n parameter. Only read when `has_srp == 1`; must be finite and > 0."]
    pub srp_amrat: f64,
    #[doc = " Radiation-pressure coefficient Cr. Fixed, never fitted. Only read\n when `has_srp == 1`; must be finite and > 0."]
    pub srp_cr: f64,
    #[doc = " Prior variance on AMRAT ((m²/kg)²). NaN or ≤0 = no prior; a finite\n positive value opens + priors the AMRAT column in a StateAndAMRAT /\n StateAndNonGravAndAMRAT fit. Only read when `has_srp == 1`."]
    pub srp_amrat_variance: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanOrbit"][::std::mem::size_of::<EmpyreanOrbit>() - 648usize];
    ["Alignment of EmpyreanOrbit"][::std::mem::align_of::<EmpyreanOrbit>() - 8usize];
    ["Offset of field: EmpyreanOrbit::state"]
        [::std::mem::offset_of!(EmpyreanOrbit, state) - 0usize];
    ["Offset of field: EmpyreanOrbit::orbit_id"]
        [::std::mem::offset_of!(EmpyreanOrbit, orbit_id) - 360usize];
    ["Offset of field: EmpyreanOrbit::object_id"]
        [::std::mem::offset_of!(EmpyreanOrbit, object_id) - 368usize];
    ["Offset of field: EmpyreanOrbit::a1"][::std::mem::offset_of!(EmpyreanOrbit, a1) - 376usize];
    ["Offset of field: EmpyreanOrbit::a2"][::std::mem::offset_of!(EmpyreanOrbit, a2) - 384usize];
    ["Offset of field: EmpyreanOrbit::a3"][::std::mem::offset_of!(EmpyreanOrbit, a3) - 392usize];
    ["Offset of field: EmpyreanOrbit::ng_alpha"]
        [::std::mem::offset_of!(EmpyreanOrbit, ng_alpha) - 400usize];
    ["Offset of field: EmpyreanOrbit::ng_r0"]
        [::std::mem::offset_of!(EmpyreanOrbit, ng_r0) - 408usize];
    ["Offset of field: EmpyreanOrbit::ng_m"]
        [::std::mem::offset_of!(EmpyreanOrbit, ng_m) - 416usize];
    ["Offset of field: EmpyreanOrbit::ng_n"]
        [::std::mem::offset_of!(EmpyreanOrbit, ng_n) - 424usize];
    ["Offset of field: EmpyreanOrbit::ng_k"]
        [::std::mem::offset_of!(EmpyreanOrbit, ng_k) - 432usize];
    ["Offset of field: EmpyreanOrbit::non_grav_dt"]
        [::std::mem::offset_of!(EmpyreanOrbit, non_grav_dt) - 440usize];
    ["Offset of field: EmpyreanOrbit::non_grav_dt_variance"]
        [::std::mem::offset_of!(EmpyreanOrbit, non_grav_dt_variance) - 448usize];
    ["Offset of field: EmpyreanOrbit::has_non_grav_covariance"]
        [::std::mem::offset_of!(EmpyreanOrbit, has_non_grav_covariance) - 456usize];
    ["Offset of field: EmpyreanOrbit::non_grav_covariance"]
        [::std::mem::offset_of!(EmpyreanOrbit, non_grav_covariance) - 464usize];
    ["Offset of field: EmpyreanOrbit::phot_system"]
        [::std::mem::offset_of!(EmpyreanOrbit, phot_system) - 536usize];
    ["Offset of field: EmpyreanOrbit::h_mag"]
        [::std::mem::offset_of!(EmpyreanOrbit, h_mag) - 544usize];
    ["Offset of field: EmpyreanOrbit::slope1"]
        [::std::mem::offset_of!(EmpyreanOrbit, slope1) - 552usize];
    ["Offset of field: EmpyreanOrbit::slope2"]
        [::std::mem::offset_of!(EmpyreanOrbit, slope2) - 560usize];
    ["Offset of field: EmpyreanOrbit::thrust_arcs"]
        [::std::mem::offset_of!(EmpyreanOrbit, thrust_arcs) - 568usize];
    ["Offset of field: EmpyreanOrbit::n_thrust_arcs"]
        [::std::mem::offset_of!(EmpyreanOrbit, n_thrust_arcs) - 576usize];
    ["Offset of field: EmpyreanOrbit::dv_corrections"]
        [::std::mem::offset_of!(EmpyreanOrbit, dv_corrections) - 584usize];
    ["Offset of field: EmpyreanOrbit::n_dv_corrections"]
        [::std::mem::offset_of!(EmpyreanOrbit, n_dv_corrections) - 592usize];
    ["Offset of field: EmpyreanOrbit::correction_covariances"]
        [::std::mem::offset_of!(EmpyreanOrbit, correction_covariances) - 600usize];
    ["Offset of field: EmpyreanOrbit::n_correction_covariances"]
        [::std::mem::offset_of!(EmpyreanOrbit, n_correction_covariances) - 608usize];
    ["Offset of field: EmpyreanOrbit::has_srp"]
        [::std::mem::offset_of!(EmpyreanOrbit, has_srp) - 616usize];
    ["Offset of field: EmpyreanOrbit::srp_amrat"]
        [::std::mem::offset_of!(EmpyreanOrbit, srp_amrat) - 624usize];
    ["Offset of field: EmpyreanOrbit::srp_cr"]
        [::std::mem::offset_of!(EmpyreanOrbit, srp_cr) - 632usize];
    ["Offset of field: EmpyreanOrbit::srp_amrat_variance"]
        [::std::mem::offset_of!(EmpyreanOrbit, srp_amrat_variance) - 640usize];
};
impl Default for EmpyreanOrbit {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Uncertainty-propagation method, mirroring\n [`empyrean_core::propagation::UncertaintyMethod`] as a flat C struct.\n Fields outside the active variant are ignored — set them to zero /\n NaN.\n\n | tag | Variant | Active fields |\n |-----|---------|---------------|\n | 0   | First       | (none) |\n | 1   | Second      | (none) |\n | 2   | SigmaPoint  | `sp_n_sigma`, `sp_samples_per_plane` |\n | 3   | MonteCarlo  | `mc_n_samples`, `mc_seed_some` (1 = use `mc_seed`) |\n | 4   | Auto        | `auto_threshold_first`, `auto_threshold_mixture`, `auto_threshold_ip_skip`, `auto_gmm_max_depth`, `auto_gmm_components_per_split` |"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanUncertaintyMethod {
    #[doc = " Variant tag — see `EMPYREAN_UNCERTAINTY_*` constants."]
    pub tag: u8,
    #[doc = " SigmaPoint: number of sigma deviations (default 1.0)."]
    pub sp_n_sigma: f64,
    #[doc = " SigmaPoint: points per coordinate-plane pair (default 8 → 120 total)."]
    pub sp_samples_per_plane: u64,
    #[doc = " MonteCarlo: number of random samples."]
    pub mc_n_samples: u64,
    #[doc = " MonteCarlo: 1 if `mc_seed` is set, 0 to draw from `thread_rng`."]
    pub mc_seed_some: u8,
    #[doc = " MonteCarlo: RNG seed when `mc_seed_some == 1`."]
    pub mc_seed: u64,
    #[doc = " Auto: first-order regime tuning parameter."]
    pub auto_threshold_first: f64,
    #[doc = " Auto: adaptive-mixture regime tuning parameter."]
    pub auto_threshold_mixture: f64,
    #[doc = " Auto: impact-probability tuning parameter for the higher-order pass."]
    pub auto_threshold_ip_skip: f64,
    #[doc = " Auto: adaptive-Gaussian-mixture maximum recursion depth."]
    pub auto_gmm_max_depth: u64,
    #[doc = " Auto: adaptive-Gaussian-mixture components per split (odd)."]
    pub auto_gmm_components_per_split: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanUncertaintyMethod"]
        [::std::mem::size_of::<EmpyreanUncertaintyMethod>() - 88usize];
    ["Alignment of EmpyreanUncertaintyMethod"]
        [::std::mem::align_of::<EmpyreanUncertaintyMethod>() - 8usize];
    ["Offset of field: EmpyreanUncertaintyMethod::tag"]
        [::std::mem::offset_of!(EmpyreanUncertaintyMethod, tag) - 0usize];
    ["Offset of field: EmpyreanUncertaintyMethod::sp_n_sigma"]
        [::std::mem::offset_of!(EmpyreanUncertaintyMethod, sp_n_sigma) - 8usize];
    ["Offset of field: EmpyreanUncertaintyMethod::sp_samples_per_plane"]
        [::std::mem::offset_of!(EmpyreanUncertaintyMethod, sp_samples_per_plane) - 16usize];
    ["Offset of field: EmpyreanUncertaintyMethod::mc_n_samples"]
        [::std::mem::offset_of!(EmpyreanUncertaintyMethod, mc_n_samples) - 24usize];
    ["Offset of field: EmpyreanUncertaintyMethod::mc_seed_some"]
        [::std::mem::offset_of!(EmpyreanUncertaintyMethod, mc_seed_some) - 32usize];
    ["Offset of field: EmpyreanUncertaintyMethod::mc_seed"]
        [::std::mem::offset_of!(EmpyreanUncertaintyMethod, mc_seed) - 40usize];
    ["Offset of field: EmpyreanUncertaintyMethod::auto_threshold_first"]
        [::std::mem::offset_of!(EmpyreanUncertaintyMethod, auto_threshold_first) - 48usize];
    ["Offset of field: EmpyreanUncertaintyMethod::auto_threshold_mixture"]
        [::std::mem::offset_of!(EmpyreanUncertaintyMethod, auto_threshold_mixture) - 56usize];
    ["Offset of field: EmpyreanUncertaintyMethod::auto_threshold_ip_skip"]
        [::std::mem::offset_of!(EmpyreanUncertaintyMethod, auto_threshold_ip_skip) - 64usize];
    ["Offset of field: EmpyreanUncertaintyMethod::auto_gmm_max_depth"]
        [::std::mem::offset_of!(EmpyreanUncertaintyMethod, auto_gmm_max_depth) - 72usize];
    ["Offset of field: EmpyreanUncertaintyMethod::auto_gmm_components_per_split"][::std::mem::offset_of!(
        EmpyreanUncertaintyMethod,
        auto_gmm_components_per_split
    ) - 80usize];
};
#[doc = " Event-detection configuration. Mirrors\n [`villeneuve::events::EventConfig`] (less the `enrichment` sub-config,\n which carries internal nested data that doesn't translate cleanly\n through C — it always uses upstream defaults).\n\n `body_filter_naif` is non-owning: caller must keep the array alive\n for the duration of the propagation call. Pass `null` /\n `num_body_filter = 0` to monitor all bodies."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanEventConfig {
    pub close_approaches: u8,
    pub impacts: u8,
    pub atmospheric: u8,
    pub possible_impacts: u8,
    pub shadow_events: u8,
    #[doc = " Number of NAIF IDs in [`body_filter_naif`]; 0 = monitor all bodies."]
    pub num_body_filter: usize,
    #[doc = " Pointer to `num_body_filter` NAIF IDs to restrict event monitoring."]
    pub body_filter_naif: *const i32,
    #[doc = " Insert dense output points around close approaches. 1 = on (auto-enables\n `cache_integrator_steps`), 0 = off (default)."]
    pub dense_output: u8,
    #[doc = " Cadence (days) of dense output. 0.0 → upstream default (5 minutes)."]
    pub dense_output_cadence_days: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanEventConfig"][::std::mem::size_of::<EmpyreanEventConfig>() - 40usize];
    ["Alignment of EmpyreanEventConfig"][::std::mem::align_of::<EmpyreanEventConfig>() - 8usize];
    ["Offset of field: EmpyreanEventConfig::close_approaches"]
        [::std::mem::offset_of!(EmpyreanEventConfig, close_approaches) - 0usize];
    ["Offset of field: EmpyreanEventConfig::impacts"]
        [::std::mem::offset_of!(EmpyreanEventConfig, impacts) - 1usize];
    ["Offset of field: EmpyreanEventConfig::atmospheric"]
        [::std::mem::offset_of!(EmpyreanEventConfig, atmospheric) - 2usize];
    ["Offset of field: EmpyreanEventConfig::possible_impacts"]
        [::std::mem::offset_of!(EmpyreanEventConfig, possible_impacts) - 3usize];
    ["Offset of field: EmpyreanEventConfig::shadow_events"]
        [::std::mem::offset_of!(EmpyreanEventConfig, shadow_events) - 4usize];
    ["Offset of field: EmpyreanEventConfig::num_body_filter"]
        [::std::mem::offset_of!(EmpyreanEventConfig, num_body_filter) - 8usize];
    ["Offset of field: EmpyreanEventConfig::body_filter_naif"]
        [::std::mem::offset_of!(EmpyreanEventConfig, body_filter_naif) - 16usize];
    ["Offset of field: EmpyreanEventConfig::dense_output"]
        [::std::mem::offset_of!(EmpyreanEventConfig, dense_output) - 24usize];
    ["Offset of field: EmpyreanEventConfig::dense_output_cadence_days"]
        [::std::mem::offset_of!(EmpyreanEventConfig, dense_output_cadence_days) - 32usize];
};
impl Default for EmpyreanEventConfig {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Per-trajectory diagnostic outputs (sensitivity, nonlinearity, …).\n Mirrors [`villeneuve::diagnostics::DiagnosticsConfig`].\n\n All metrics default to off. Sentinel: `0` for `sample_stride` →\n upstream default (1); a NaN threshold means \"no event emission for\n that metric\"."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanDiagnosticsConfig {
    #[doc = " Frobenius norm of position-STM block. 1 = on, 0 = off."]
    pub sensitivity: u8,
    #[doc = " Hessian/gradient ratio (Jet2 only). 1 = on, 0 = off."]
    pub nonlinearity: u8,
    #[doc = " Finite-time Lyapunov exponent. 1 = on, 0 = off."]
    pub lyapunov: u8,
    #[doc = " Keyhole detection at close approaches (Jet1+). 1 = on, 0 = off."]
    pub keyholes: u8,
    #[doc = " Bifurcation detection at close approaches (Jet2 only). 1 = on, 0 = off."]
    pub bifurcations: u8,
    #[doc = " Timeseries sampling stride: every Nth integration step. 0 → upstream default (1)."]
    pub sample_stride: usize,
    #[doc = " Threshold for `HighSensitivity` events. NaN → no emission."]
    pub sensitivity_threshold: f64,
    #[doc = " Threshold for `ChaoticRegion` events. NaN → no emission."]
    pub lyapunov_threshold: f64,
    #[doc = " Threshold for `HighNonlinearity` events (Jet2 only). NaN → no emission."]
    pub nonlinearity_threshold: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanDiagnosticsConfig"]
        [::std::mem::size_of::<EmpyreanDiagnosticsConfig>() - 40usize];
    ["Alignment of EmpyreanDiagnosticsConfig"]
        [::std::mem::align_of::<EmpyreanDiagnosticsConfig>() - 8usize];
    ["Offset of field: EmpyreanDiagnosticsConfig::sensitivity"]
        [::std::mem::offset_of!(EmpyreanDiagnosticsConfig, sensitivity) - 0usize];
    ["Offset of field: EmpyreanDiagnosticsConfig::nonlinearity"]
        [::std::mem::offset_of!(EmpyreanDiagnosticsConfig, nonlinearity) - 1usize];
    ["Offset of field: EmpyreanDiagnosticsConfig::lyapunov"]
        [::std::mem::offset_of!(EmpyreanDiagnosticsConfig, lyapunov) - 2usize];
    ["Offset of field: EmpyreanDiagnosticsConfig::keyholes"]
        [::std::mem::offset_of!(EmpyreanDiagnosticsConfig, keyholes) - 3usize];
    ["Offset of field: EmpyreanDiagnosticsConfig::bifurcations"]
        [::std::mem::offset_of!(EmpyreanDiagnosticsConfig, bifurcations) - 4usize];
    ["Offset of field: EmpyreanDiagnosticsConfig::sample_stride"]
        [::std::mem::offset_of!(EmpyreanDiagnosticsConfig, sample_stride) - 8usize];
    ["Offset of field: EmpyreanDiagnosticsConfig::sensitivity_threshold"]
        [::std::mem::offset_of!(EmpyreanDiagnosticsConfig, sensitivity_threshold) - 16usize];
    ["Offset of field: EmpyreanDiagnosticsConfig::lyapunov_threshold"]
        [::std::mem::offset_of!(EmpyreanDiagnosticsConfig, lyapunov_threshold) - 24usize];
    ["Offset of field: EmpyreanDiagnosticsConfig::nonlinearity_threshold"]
        [::std::mem::offset_of!(EmpyreanDiagnosticsConfig, nonlinearity_threshold) - 32usize];
};
#[doc = " Origin-switching configuration for trajectory splitting at body\n Laplace spheres of influence (Amato/Baù/Bombardelli 2017 §6).\n\n Default **enabled** (the `_DEFAULT` sentinel resolves to\n `enabled = 1`). When enabled, integration switches to a\n body-centric frame inside the SOI of each eligible body and back\n to SSB on exit. Set `enabled = 0` explicitly to opt out.\n\n At the C-ABI surface, the per-body opt-in list (`bodies` in\n villeneuve) is not yet exposed — `EMPYREAN_ORIGIN_SWITCHING_ON`\n selects all monitored bodies. File a request if per-body scoping\n is needed from the C-ABI surface."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanOriginSwitchingConfig {
    #[doc = " Trajectory-splitting policy. Tri-state, see\n `EMPYREAN_ORIGIN_SWITCHING_*` constants:\n - `0 = DEFAULT` — use the upstream default (currently `ON`).\n   This is what `memset(0)` gives, matching the same sentinel\n   convention used for `dt_min` / `dt_initial` / `epsilon` /\n   `hysteresis` etc. — external C consumers can zero-init the\n   config struct and get the right behavior automatically.\n - `1 = ON`  — force trajectory-splitting on (matches the prior\n   semantic for `enabled = 1`, backward-compatible).\n - `2 = OFF` — force trajectory-splitting off. (The prior\n   semantic for `enabled = 0` is now reachable only via this\n   explicit value, since 0 now means DEFAULT.)\n\n Unknown values fall back to the upstream default."]
    pub enabled: u8,
    #[doc = " Fractional band around the acceleration-ratio crossover used\n to suppress chatter (default 0.2 = ±20 %). 0.0 → upstream\n default."]
    pub hysteresis: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanOriginSwitchingConfig"]
        [::std::mem::size_of::<EmpyreanOriginSwitchingConfig>() - 16usize];
    ["Alignment of EmpyreanOriginSwitchingConfig"]
        [::std::mem::align_of::<EmpyreanOriginSwitchingConfig>() - 8usize];
    ["Offset of field: EmpyreanOriginSwitchingConfig::enabled"]
        [::std::mem::offset_of!(EmpyreanOriginSwitchingConfig, enabled) - 0usize];
    ["Offset of field: EmpyreanOriginSwitchingConfig::hysteresis"]
        [::std::mem::offset_of!(EmpyreanOriginSwitchingConfig, hysteresis) - 8usize];
};
#[doc = " Integrator tuning. Mirrors\n [`villeneuve::propagation::AdvancedIntegratorConfig`]. The default\n integrator backend is Gauss-Radau 15 (GR15), derived solely from the\n published papers; `epsilon` is interpreted as the relative b₆\n truncation tolerance.\n\n Sentinel rule: `0.0` requests the upstream default for `epsilon` /\n `encounter_timescale_divisor`; `dt_initial` / `dt_min` use NaN to\n mean \"auto-compute\"; `0` requests the upstream defaults for\n `max_steps` and `max_dense_steps`."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanAdvancedIntegratorConfig {
    #[doc = " Integrator backend (0 = GR15 default, 1 = DOP853). See\n `EMPYREAN_INTEGRATOR_*` constants."]
    pub integrator: i32,
    #[doc = " Truncation-error tolerance (relative b₆ for GR15, rtol for\n DOP853 paired with a fixed atol = 1e-14). 0.0 → upstream\n default (1e-9)."]
    pub epsilon: f64,
    #[doc = " Initial step size in days. NaN → auto from orbital timescale."]
    pub dt_initial: f64,
    #[doc = " Minimum allowed step size in days. NaN → auto."]
    pub dt_min: f64,
    #[doc = " Encounter dynamical-timescale step floor divisor. 0.0 → upstream default (1000.0)."]
    pub encounter_timescale_divisor: f64,
    #[doc = " Maximum integration steps before aborting. 0 → upstream default (10_000_000)."]
    pub max_steps: usize,
    #[doc = " Memory cap on the per-step b-coefficient cache. 0 → upstream default (100_000)."]
    pub max_dense_steps: usize,
    #[doc = " Cache the integrator's per-step b-coefficients for fast\n interpolation (light-time iteration, dense output around close\n approaches, arbitrary-epoch state queries). 1 = on, 0 = off\n (default)."]
    pub cache_integrator_steps: u8,
    #[doc = " Origin-switching trajectory-splitting configuration. Default\n enabled."]
    pub origin_switching: EmpyreanOriginSwitchingConfig,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanAdvancedIntegratorConfig"]
        [::std::mem::size_of::<EmpyreanAdvancedIntegratorConfig>() - 80usize];
    ["Alignment of EmpyreanAdvancedIntegratorConfig"]
        [::std::mem::align_of::<EmpyreanAdvancedIntegratorConfig>() - 8usize];
    ["Offset of field: EmpyreanAdvancedIntegratorConfig::integrator"]
        [::std::mem::offset_of!(EmpyreanAdvancedIntegratorConfig, integrator) - 0usize];
    ["Offset of field: EmpyreanAdvancedIntegratorConfig::epsilon"]
        [::std::mem::offset_of!(EmpyreanAdvancedIntegratorConfig, epsilon) - 8usize];
    ["Offset of field: EmpyreanAdvancedIntegratorConfig::dt_initial"]
        [::std::mem::offset_of!(EmpyreanAdvancedIntegratorConfig, dt_initial) - 16usize];
    ["Offset of field: EmpyreanAdvancedIntegratorConfig::dt_min"]
        [::std::mem::offset_of!(EmpyreanAdvancedIntegratorConfig, dt_min) - 24usize];
    ["Offset of field: EmpyreanAdvancedIntegratorConfig::encounter_timescale_divisor"][::std::mem::offset_of!(
        EmpyreanAdvancedIntegratorConfig,
        encounter_timescale_divisor
    ) - 32usize];
    ["Offset of field: EmpyreanAdvancedIntegratorConfig::max_steps"]
        [::std::mem::offset_of!(EmpyreanAdvancedIntegratorConfig, max_steps) - 40usize];
    ["Offset of field: EmpyreanAdvancedIntegratorConfig::max_dense_steps"]
        [::std::mem::offset_of!(EmpyreanAdvancedIntegratorConfig, max_dense_steps) - 48usize];
    ["Offset of field: EmpyreanAdvancedIntegratorConfig::cache_integrator_steps"][::std::mem::offset_of!(
        EmpyreanAdvancedIntegratorConfig,
        cache_integrator_steps
    ) - 56usize];
    ["Offset of field: EmpyreanAdvancedIntegratorConfig::origin_switching"]
        [::std::mem::offset_of!(EmpyreanAdvancedIntegratorConfig, origin_switching) - 64usize];
};
#[doc = " Propagation configuration.\n\n Mirrors [`villeneuve::propagation::PropagationConfig`] structurally:\n shared scalar fields at the top, nested config bundles for events,\n diagnostics, and integrator tuning. Sentinel rule for primitive\n fields: `0` / `0.0` requests the upstream default; documented\n negative-value sentinels retain their special meanings.\n\n `stop_condition` and `events.enrichment` are not exposed at this\n surface — both carry internal nested data that doesn't translate\n cleanly. They use upstream defaults; reach for empyrean-core's\n Rust API when they need to be overridden."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanPropagationConfig {
    #[doc = " Force-model tier: 0=Approximate, 1=Basic, 2=Standard."]
    pub force_model: i32,
    #[doc = " Number of `excluded_perturbers` in [`excluded_perturbers_naif`]; 0 = none."]
    pub num_excluded_perturbers: usize,
    #[doc = " NAIF IDs to exclude (self-perturbation avoidance for SB441-N16\n bodies). Non-owning. Pass `null` / count 0 to use the full\n perturber set."]
    pub excluded_perturbers_naif: *const i32,
    #[doc = " Uncertainty-propagation method (tag + per-variant params)."]
    pub uncertainty_method: EmpyreanUncertaintyMethod,
    #[doc = " Force `Jet1<6>` integration even without input covariance.\n 1 = on, 0 = off (default)."]
    pub compute_stm: u8,
    #[doc = " Output reference frame: 0=ICRF, 1=EclipticJ2000."]
    pub frame: i32,
    pub events: EmpyreanEventConfig,
    pub diagnostics: EmpyreanDiagnosticsConfig,
    #[doc = " Threads for multi-orbit propagation. 0 = use all cores\n (Rayon default); positive N = exactly N cores."]
    pub num_threads: usize,
    pub advanced: EmpyreanAdvancedIntegratorConfig,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanPropagationConfig"]
        [::std::mem::size_of::<EmpyreanPropagationConfig>() - 288usize];
    ["Alignment of EmpyreanPropagationConfig"]
        [::std::mem::align_of::<EmpyreanPropagationConfig>() - 8usize];
    ["Offset of field: EmpyreanPropagationConfig::force_model"]
        [::std::mem::offset_of!(EmpyreanPropagationConfig, force_model) - 0usize];
    ["Offset of field: EmpyreanPropagationConfig::num_excluded_perturbers"]
        [::std::mem::offset_of!(EmpyreanPropagationConfig, num_excluded_perturbers) - 8usize];
    ["Offset of field: EmpyreanPropagationConfig::excluded_perturbers_naif"]
        [::std::mem::offset_of!(EmpyreanPropagationConfig, excluded_perturbers_naif) - 16usize];
    ["Offset of field: EmpyreanPropagationConfig::uncertainty_method"]
        [::std::mem::offset_of!(EmpyreanPropagationConfig, uncertainty_method) - 24usize];
    ["Offset of field: EmpyreanPropagationConfig::compute_stm"]
        [::std::mem::offset_of!(EmpyreanPropagationConfig, compute_stm) - 112usize];
    ["Offset of field: EmpyreanPropagationConfig::frame"]
        [::std::mem::offset_of!(EmpyreanPropagationConfig, frame) - 116usize];
    ["Offset of field: EmpyreanPropagationConfig::events"]
        [::std::mem::offset_of!(EmpyreanPropagationConfig, events) - 120usize];
    ["Offset of field: EmpyreanPropagationConfig::diagnostics"]
        [::std::mem::offset_of!(EmpyreanPropagationConfig, diagnostics) - 160usize];
    ["Offset of field: EmpyreanPropagationConfig::num_threads"]
        [::std::mem::offset_of!(EmpyreanPropagationConfig, num_threads) - 200usize];
    ["Offset of field: EmpyreanPropagationConfig::advanced"]
        [::std::mem::offset_of!(EmpyreanPropagationConfig, advanced) - 208usize];
};
impl Default for EmpyreanPropagationConfig {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " A single propagated Cartesian state."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanPropagatedState {
    pub epoch_mjd_tdb: f64,
    pub x: f64,
    pub y: f64,
    pub z: f64,
    pub vx: f64,
    pub vy: f64,
    pub vz: f64,
    pub origin: i32,
    pub frame: i32,
    pub covariance: [[f64; 6usize]; 6usize],
    pub has_covariance: u8,
    #[doc = " State Transition Matrix Φ(t, t₀). Zero-filled when `has_stm` is 0."]
    pub stm: [[f64; 6usize]; 6usize],
    pub has_stm: u8,
    #[doc = " State Transition Tensor Ψ(t, t₀). Zero-filled when `has_stt` is 0."]
    pub stt: [[[f64; 6usize]; 6usize]; 6usize],
    pub has_stt: u8,
    #[doc = " Resolved [`CovarianceKind`](empyrean_core::propagation::CovarianceKind)\n at this output epoch — see `EMPYREAN_COVARIANCE_KIND_*`.\n Defaults to `LINEAR` for non-Auto methods and for Auto epochs\n outside CA windows."]
    pub resolved_kind: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanPropagatedState"]
        [::std::mem::size_of::<EmpyreanPropagatedState>() - 2392usize];
    ["Alignment of EmpyreanPropagatedState"]
        [::std::mem::align_of::<EmpyreanPropagatedState>() - 8usize];
    ["Offset of field: EmpyreanPropagatedState::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, epoch_mjd_tdb) - 0usize];
    ["Offset of field: EmpyreanPropagatedState::x"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, x) - 8usize];
    ["Offset of field: EmpyreanPropagatedState::y"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, y) - 16usize];
    ["Offset of field: EmpyreanPropagatedState::z"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, z) - 24usize];
    ["Offset of field: EmpyreanPropagatedState::vx"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, vx) - 32usize];
    ["Offset of field: EmpyreanPropagatedState::vy"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, vy) - 40usize];
    ["Offset of field: EmpyreanPropagatedState::vz"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, vz) - 48usize];
    ["Offset of field: EmpyreanPropagatedState::origin"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, origin) - 56usize];
    ["Offset of field: EmpyreanPropagatedState::frame"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, frame) - 60usize];
    ["Offset of field: EmpyreanPropagatedState::covariance"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, covariance) - 64usize];
    ["Offset of field: EmpyreanPropagatedState::has_covariance"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, has_covariance) - 352usize];
    ["Offset of field: EmpyreanPropagatedState::stm"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, stm) - 360usize];
    ["Offset of field: EmpyreanPropagatedState::has_stm"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, has_stm) - 648usize];
    ["Offset of field: EmpyreanPropagatedState::stt"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, stt) - 656usize];
    ["Offset of field: EmpyreanPropagatedState::has_stt"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, has_stt) - 2384usize];
    ["Offset of field: EmpyreanPropagatedState::resolved_kind"]
        [::std::mem::offset_of!(EmpyreanPropagatedState, resolved_kind) - 2385usize];
};
#[doc = " A detected dynamical event from propagation.\n\n For `event_type = \"covariance_regime_change\"` the audit-trail\n fields (`previous_kind`, `resolved_kind`, `kappa`,\n `threshold_below`, `threshold_above`) carry the\n [`CovarianceRegimeChange`](empyrean_core::propagation::events::DynamicalEvent::CovarianceRegimeChange)\n payload and the body / distance / velocity fields are zeroed\n (regime changes don't carry a body or geometry — they're audit\n markers from\n [`UncertaintyMethod::Auto`](empyrean_core::propagation::UncertaintyMethod::Auto)).\n For all other events these fields are sentinel-filled\n (`0xFF` / NaN).\n\n Field names mirror empyrean-core's variant fields for the\n regime-change payload — no per-variant prefix."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanEvent {
    pub event_type: *mut ::std::os::raw::c_char,
    pub orbit_id: *mut ::std::os::raw::c_char,
    #[doc = " Object identifier looked up by `orbit_id` from the input batch.\n Empty string when the input had no `object_id`. Owning C string —\n caller frees via `*_result_free`."]
    pub object_id: *mut ::std::os::raw::c_char,
    pub body: *mut ::std::os::raw::c_char,
    pub body_naif_id: i32,
    pub epoch_mjd_tdb: f64,
    pub distance_au: f64,
    pub distance_km: f64,
    pub relative_velocity_au_day: f64,
    #[doc = " `CovarianceRegimeChange` payload: previous resolved kind.\n Sentinel `0xFF` for non-regime events."]
    pub previous_kind: u8,
    #[doc = " `CovarianceRegimeChange` payload: new resolved kind.\n Sentinel `0xFF` for non-regime events."]
    pub resolved_kind: u8,
    #[doc = " `CovarianceRegimeChange` payload: local nonlinearity κ\n recorded at the CA. NaN for non-regime events."]
    pub kappa: f64,
    #[doc = " `CovarianceRegimeChange` payload: lower κ value recorded in\n this audit payload. NaN for non-regime events."]
    pub threshold_below: f64,
    #[doc = " `CovarianceRegimeChange` payload: upper κ value recorded in\n this audit payload. NaN for non-regime events."]
    pub threshold_above: f64,
    #[doc = " `CaptureStart` / `CaptureEnd` payload: two-body energy w.r.t. the\n capturing body (AU²/day²). NaN for non-capture events."]
    pub two_body_energy: f64,
    #[doc = " `CaptureStart` / `CaptureEnd` payload: Jacobi constant in the\n CR3BP. NaN for non-capture events or when unavailable."]
    pub jacobi_constant: f64,
    #[doc = " `CaptureStart` / `CaptureEnd` payload: 1σ uncertainty on the\n Jacobi constant. NaN when unavailable."]
    pub jacobi_constant_sigma: f64,
    #[doc = " `CaptureStart` / `CaptureEnd` payload: Jacobi constant at the L1\n gateway. NaN when unavailable."]
    pub jacobi_constant_l1: f64,
    #[doc = " `CaptureStart` / `CaptureEnd` payload: Jacobi constant at the L2\n gateway. NaN when unavailable."]
    pub jacobi_constant_l2: f64,
    #[doc = " `CaptureEnd` payload: number of periapsis passages during the\n temporary capture. `-1` sentinel for non-`CaptureEnd` events."]
    pub n_periapses: i32,
    #[doc = " `Impact` payload: planetodetic latitude of the surface intercept\n (degrees). NaN for non-impact events or when unresolved."]
    pub impact_latitude_deg: f64,
    #[doc = " `Impact` payload: planetodetic longitude of the surface intercept\n (degrees). NaN for non-impact events or when unresolved."]
    pub impact_longitude_deg: f64,
    #[doc = " `Impact` payload: altitude of the surface intercept above the\n reference ellipsoid (km). NaN for non-impact events or when\n unresolved."]
    pub impact_altitude_km: f64,
    #[doc = " `ShadowEntry` / `ShadowExit` payload: fraction of the Sun's disk\n occulted by the body (0 = none, 1 = full umbra). NaN for\n non-shadow events."]
    pub shadow_fraction: f64,
    #[doc = " `ShadowEntry` / `ShadowExit` payload: fraction of incident\n sunlight reaching the particle (1 = full sun, 0 = total eclipse).\n NaN for non-shadow events."]
    pub illumination: f64,
    #[doc = " `Periapsis` payload: relative position w.r.t. the approached body\n (AU), components x/y/z. NaN for non-periapsis events."]
    pub relative_x: f64,
    pub relative_y: f64,
    pub relative_z: f64,
    #[doc = " `Periapsis` payload: relative velocity w.r.t. the approached body\n (AU/day), components vx/vy/vz. NaN for non-periapsis events."]
    pub relative_vx: f64,
    pub relative_vy: f64,
    pub relative_vz: f64,
    #[doc = " `PossibleImpact` payload: effective capture radius with\n gravitational focusing (AU / km). NaN for non-possible-impact events."]
    pub effective_radius_au: f64,
    pub effective_radius_km: f64,
    #[doc = " `PossibleImpact` payload: 1σ uncertainty along the miss direction\n (AU). NaN for non-possible-impact events."]
    pub sigma_distance_au: f64,
    #[doc = " `PossibleImpact` payload: linear (STM-mapped) impact probability.\n NaN for non-possible-impact events."]
    pub ip_linear: f64,
    #[doc = " `PossibleImpact` payload: second-order (Edgeworth) impact\n probability. NaN for non-possible-impact / first-order runs."]
    pub ip_second_order: f64,
    #[doc = " `PossibleImpact` payload: local nonlinearity κ at the encounter.\n NaN when unavailable."]
    pub nonlinearity: f64,
    #[doc = " `PossibleImpact` payload: adaptive-Gaussian-mixture impact\n probability. NaN when not an AGM run."]
    pub ip_agm: f64,
    #[doc = " `PossibleImpact` payload: Monte-Carlo impact probability. NaN when\n not a Monte-Carlo run."]
    pub ip_mc: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanEvent"][::std::mem::size_of::<EmpyreanEvent>() - 304usize];
    ["Alignment of EmpyreanEvent"][::std::mem::align_of::<EmpyreanEvent>() - 8usize];
    ["Offset of field: EmpyreanEvent::event_type"]
        [::std::mem::offset_of!(EmpyreanEvent, event_type) - 0usize];
    ["Offset of field: EmpyreanEvent::orbit_id"]
        [::std::mem::offset_of!(EmpyreanEvent, orbit_id) - 8usize];
    ["Offset of field: EmpyreanEvent::object_id"]
        [::std::mem::offset_of!(EmpyreanEvent, object_id) - 16usize];
    ["Offset of field: EmpyreanEvent::body"][::std::mem::offset_of!(EmpyreanEvent, body) - 24usize];
    ["Offset of field: EmpyreanEvent::body_naif_id"]
        [::std::mem::offset_of!(EmpyreanEvent, body_naif_id) - 32usize];
    ["Offset of field: EmpyreanEvent::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanEvent, epoch_mjd_tdb) - 40usize];
    ["Offset of field: EmpyreanEvent::distance_au"]
        [::std::mem::offset_of!(EmpyreanEvent, distance_au) - 48usize];
    ["Offset of field: EmpyreanEvent::distance_km"]
        [::std::mem::offset_of!(EmpyreanEvent, distance_km) - 56usize];
    ["Offset of field: EmpyreanEvent::relative_velocity_au_day"]
        [::std::mem::offset_of!(EmpyreanEvent, relative_velocity_au_day) - 64usize];
    ["Offset of field: EmpyreanEvent::previous_kind"]
        [::std::mem::offset_of!(EmpyreanEvent, previous_kind) - 72usize];
    ["Offset of field: EmpyreanEvent::resolved_kind"]
        [::std::mem::offset_of!(EmpyreanEvent, resolved_kind) - 73usize];
    ["Offset of field: EmpyreanEvent::kappa"]
        [::std::mem::offset_of!(EmpyreanEvent, kappa) - 80usize];
    ["Offset of field: EmpyreanEvent::threshold_below"]
        [::std::mem::offset_of!(EmpyreanEvent, threshold_below) - 88usize];
    ["Offset of field: EmpyreanEvent::threshold_above"]
        [::std::mem::offset_of!(EmpyreanEvent, threshold_above) - 96usize];
    ["Offset of field: EmpyreanEvent::two_body_energy"]
        [::std::mem::offset_of!(EmpyreanEvent, two_body_energy) - 104usize];
    ["Offset of field: EmpyreanEvent::jacobi_constant"]
        [::std::mem::offset_of!(EmpyreanEvent, jacobi_constant) - 112usize];
    ["Offset of field: EmpyreanEvent::jacobi_constant_sigma"]
        [::std::mem::offset_of!(EmpyreanEvent, jacobi_constant_sigma) - 120usize];
    ["Offset of field: EmpyreanEvent::jacobi_constant_l1"]
        [::std::mem::offset_of!(EmpyreanEvent, jacobi_constant_l1) - 128usize];
    ["Offset of field: EmpyreanEvent::jacobi_constant_l2"]
        [::std::mem::offset_of!(EmpyreanEvent, jacobi_constant_l2) - 136usize];
    ["Offset of field: EmpyreanEvent::n_periapses"]
        [::std::mem::offset_of!(EmpyreanEvent, n_periapses) - 144usize];
    ["Offset of field: EmpyreanEvent::impact_latitude_deg"]
        [::std::mem::offset_of!(EmpyreanEvent, impact_latitude_deg) - 152usize];
    ["Offset of field: EmpyreanEvent::impact_longitude_deg"]
        [::std::mem::offset_of!(EmpyreanEvent, impact_longitude_deg) - 160usize];
    ["Offset of field: EmpyreanEvent::impact_altitude_km"]
        [::std::mem::offset_of!(EmpyreanEvent, impact_altitude_km) - 168usize];
    ["Offset of field: EmpyreanEvent::shadow_fraction"]
        [::std::mem::offset_of!(EmpyreanEvent, shadow_fraction) - 176usize];
    ["Offset of field: EmpyreanEvent::illumination"]
        [::std::mem::offset_of!(EmpyreanEvent, illumination) - 184usize];
    ["Offset of field: EmpyreanEvent::relative_x"]
        [::std::mem::offset_of!(EmpyreanEvent, relative_x) - 192usize];
    ["Offset of field: EmpyreanEvent::relative_y"]
        [::std::mem::offset_of!(EmpyreanEvent, relative_y) - 200usize];
    ["Offset of field: EmpyreanEvent::relative_z"]
        [::std::mem::offset_of!(EmpyreanEvent, relative_z) - 208usize];
    ["Offset of field: EmpyreanEvent::relative_vx"]
        [::std::mem::offset_of!(EmpyreanEvent, relative_vx) - 216usize];
    ["Offset of field: EmpyreanEvent::relative_vy"]
        [::std::mem::offset_of!(EmpyreanEvent, relative_vy) - 224usize];
    ["Offset of field: EmpyreanEvent::relative_vz"]
        [::std::mem::offset_of!(EmpyreanEvent, relative_vz) - 232usize];
    ["Offset of field: EmpyreanEvent::effective_radius_au"]
        [::std::mem::offset_of!(EmpyreanEvent, effective_radius_au) - 240usize];
    ["Offset of field: EmpyreanEvent::effective_radius_km"]
        [::std::mem::offset_of!(EmpyreanEvent, effective_radius_km) - 248usize];
    ["Offset of field: EmpyreanEvent::sigma_distance_au"]
        [::std::mem::offset_of!(EmpyreanEvent, sigma_distance_au) - 256usize];
    ["Offset of field: EmpyreanEvent::ip_linear"]
        [::std::mem::offset_of!(EmpyreanEvent, ip_linear) - 264usize];
    ["Offset of field: EmpyreanEvent::ip_second_order"]
        [::std::mem::offset_of!(EmpyreanEvent, ip_second_order) - 272usize];
    ["Offset of field: EmpyreanEvent::nonlinearity"]
        [::std::mem::offset_of!(EmpyreanEvent, nonlinearity) - 280usize];
    ["Offset of field: EmpyreanEvent::ip_agm"]
        [::std::mem::offset_of!(EmpyreanEvent, ip_agm) - 288usize];
    ["Offset of field: EmpyreanEvent::ip_mc"]
        [::std::mem::offset_of!(EmpyreanEvent, ip_mc) - 296usize];
};
impl Default for EmpyreanEvent {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " One Gaussian sub-component of an AGM mixture decomposition.\n\n Mirrors\n [`empyrean_core::propagation::MixtureComponent`]. The mean carries\n the *propagated* sub-Gaussian centroid at the CA epoch (f64 from\n the Jet2 integrator); the covariance is the linearly-mapped\n \\\\(\\Phi \\, \\Sigma_k \\, \\Phi^\\top\\\\) over the same propagation\n segment. A consumer can evaluate\n \\\\(\\sum_k w_k \\\\, \\mathcal{N}(x \\mid \\mu_k, \\Sigma_k)\\\\) directly\n at the CA epoch.\n\n Each component is basis-tagged: `frame` / `origin` give the\n reference frame and center body its `mean` and `covariance` are\n expressed in, so the mixture is self-describing rather than relying\n on positional alignment with the propagated states."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanMixtureComponent {
    pub weight: f64,
    pub mean: [f64; 6usize],
    pub covariance: [[f64; 6usize]; 6usize],
    #[doc = " Reference frame `mean` / `covariance` are expressed in — the\n integration frame of the run. Same integer encoding as\n `EmpyreanPropagatedState.frame` (0 = ICRF, 1 = ecliptic J2000,\n 2 = ITRF93)."]
    pub frame: i32,
    #[doc = " Origin (center body) `mean` is expressed relative to, as a NAIF\n id — same encoding as `EmpyreanPropagatedState.origin`\n (e.g. 10 = Sun, 399 = Earth). Matches the propagation origin at\n the split's close-approach epoch, so it can differ between CA\n epochs of the same chain when origin switching occurred."]
    pub origin: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanMixtureComponent"]
        [::std::mem::size_of::<EmpyreanMixtureComponent>() - 352usize];
    ["Alignment of EmpyreanMixtureComponent"]
        [::std::mem::align_of::<EmpyreanMixtureComponent>() - 8usize];
    ["Offset of field: EmpyreanMixtureComponent::weight"]
        [::std::mem::offset_of!(EmpyreanMixtureComponent, weight) - 0usize];
    ["Offset of field: EmpyreanMixtureComponent::mean"]
        [::std::mem::offset_of!(EmpyreanMixtureComponent, mean) - 8usize];
    ["Offset of field: EmpyreanMixtureComponent::covariance"]
        [::std::mem::offset_of!(EmpyreanMixtureComponent, covariance) - 56usize];
    ["Offset of field: EmpyreanMixtureComponent::frame"]
        [::std::mem::offset_of!(EmpyreanMixtureComponent, frame) - 344usize];
    ["Offset of field: EmpyreanMixtureComponent::origin"]
        [::std::mem::offset_of!(EmpyreanMixtureComponent, origin) - 348usize];
};
#[doc = " Per-orbit AGM mixture decomposition retained by Auto / Mixture.\n\n Mirrors [`empyrean_core::propagation::MixtureChain`] in flat form.\n `ca_epochs_mjd_tdb` and `components_per_epoch` are\n `num_ca_epochs`-length parallel arrays. Components are flattened\n into a single `components` array — for CA index `k`, the slice is\n `components[components_offset[k] .. components_offset[k] +\n components_per_epoch[k]]`. `components_offset[k]` is the\n prefix-sum of `components_per_epoch[0..k]` (so\n `components_offset[0] == 0`).\n\n Only orbits whose AGM splits actually fired carry a chain;\n non-mixture orbits get one entry whose `num_ca_epochs == 0` and\n whose pointers are null."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanMixtureChain {
    #[doc = " Owning C string — caller frees via `*_result_free`."]
    pub orbit_id: *mut ::std::os::raw::c_char,
    #[doc = " `num_ca_epochs`-length array of CA epochs (mjd_tdb)."]
    pub ca_epochs_mjd_tdb: *mut f64,
    pub num_ca_epochs: usize,
    #[doc = " `num_ca_epochs`-length array of per-epoch component counts."]
    pub components_per_epoch: *mut usize,
    #[doc = " `num_ca_epochs`-length array of starting offsets into the\n flattened `components` array. `components_offset[k]` is the\n prefix-sum of `components_per_epoch[0..k]`."]
    pub components_offset: *mut usize,
    #[doc = " Flattened components — total length =\n sum(components_per_epoch)."]
    pub components: *mut EmpyreanMixtureComponent,
    pub num_components_total: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanMixtureChain"][::std::mem::size_of::<EmpyreanMixtureChain>() - 56usize];
    ["Alignment of EmpyreanMixtureChain"][::std::mem::align_of::<EmpyreanMixtureChain>() - 8usize];
    ["Offset of field: EmpyreanMixtureChain::orbit_id"]
        [::std::mem::offset_of!(EmpyreanMixtureChain, orbit_id) - 0usize];
    ["Offset of field: EmpyreanMixtureChain::ca_epochs_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanMixtureChain, ca_epochs_mjd_tdb) - 8usize];
    ["Offset of field: EmpyreanMixtureChain::num_ca_epochs"]
        [::std::mem::offset_of!(EmpyreanMixtureChain, num_ca_epochs) - 16usize];
    ["Offset of field: EmpyreanMixtureChain::components_per_epoch"]
        [::std::mem::offset_of!(EmpyreanMixtureChain, components_per_epoch) - 24usize];
    ["Offset of field: EmpyreanMixtureChain::components_offset"]
        [::std::mem::offset_of!(EmpyreanMixtureChain, components_offset) - 32usize];
    ["Offset of field: EmpyreanMixtureChain::components"]
        [::std::mem::offset_of!(EmpyreanMixtureChain, components) - 40usize];
    ["Offset of field: EmpyreanMixtureChain::num_components_total"]
        [::std::mem::offset_of!(EmpyreanMixtureChain, num_components_total) - 48usize];
};
impl Default for EmpyreanMixtureChain {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Propagation result containing states, events, and object identifiers.\n\n `mixtures` parallels `object_ids` only when populated — it is\n per-orbit (not per-state), so its length is the distinct orbit\n count, not `num_states`."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanPropagationResult {
    pub states: *mut EmpyreanPropagatedState,
    pub num_states: usize,
    pub object_ids: *mut *mut ::std::os::raw::c_char,
    pub events: *mut EmpyreanEvent,
    pub num_events: usize,
    #[doc = " One [`EmpyreanMixtureChain`] per input orbit (positional with\n the input orbit batch). Empty / null when no orbits produced\n mixtures (the typical case for FirstOrder / SecondOrder /\n SigmaPoint / MonteCarlo)."]
    pub mixtures: *mut EmpyreanMixtureChain,
    pub num_mixtures: usize,
    #[doc = " Opaque retained handle to the rich propagation result, enabling\n the on-demand tagged-covariance accessors\n (`empyrean_propagation_covariance_series_cartesian` /\n `_covariance_at_cartesian`). **Do not dereference from C** — it is\n freed by `empyrean_propagation_result_free`. Null when the\n propagation produced no retainable result."]
    pub lazy_handle: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanPropagationResult"]
        [::std::mem::size_of::<EmpyreanPropagationResult>() - 64usize];
    ["Alignment of EmpyreanPropagationResult"]
        [::std::mem::align_of::<EmpyreanPropagationResult>() - 8usize];
    ["Offset of field: EmpyreanPropagationResult::states"]
        [::std::mem::offset_of!(EmpyreanPropagationResult, states) - 0usize];
    ["Offset of field: EmpyreanPropagationResult::num_states"]
        [::std::mem::offset_of!(EmpyreanPropagationResult, num_states) - 8usize];
    ["Offset of field: EmpyreanPropagationResult::object_ids"]
        [::std::mem::offset_of!(EmpyreanPropagationResult, object_ids) - 16usize];
    ["Offset of field: EmpyreanPropagationResult::events"]
        [::std::mem::offset_of!(EmpyreanPropagationResult, events) - 24usize];
    ["Offset of field: EmpyreanPropagationResult::num_events"]
        [::std::mem::offset_of!(EmpyreanPropagationResult, num_events) - 32usize];
    ["Offset of field: EmpyreanPropagationResult::mixtures"]
        [::std::mem::offset_of!(EmpyreanPropagationResult, mixtures) - 40usize];
    ["Offset of field: EmpyreanPropagationResult::num_mixtures"]
        [::std::mem::offset_of!(EmpyreanPropagationResult, num_mixtures) - 48usize];
    ["Offset of field: EmpyreanPropagationResult::lazy_handle"]
        [::std::mem::offset_of!(EmpyreanPropagationResult, lazy_handle) - 56usize];
};
impl Default for EmpyreanPropagationResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " A single observer state for the C API."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanObserver {
    #[doc = " MPC 3-character code, null-terminated (4 bytes)."]
    pub obs_code: [u8; 4usize],
    #[doc = " Epoch as MJD TDB."]
    pub epoch_mjd_tdb: f64,
    #[doc = " Position in ICRF relative to SSB (AU)."]
    pub x: f64,
    pub y: f64,
    pub z: f64,
    #[doc = " Velocity in ICRF relative to SSB (AU/day)."]
    pub vx: f64,
    pub vy: f64,
    pub vz: f64,
    #[doc = " Observing night as YYYYMMDD integer, or -1 if unavailable."]
    pub observing_night: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanObserver"][::std::mem::size_of::<EmpyreanObserver>() - 72usize];
    ["Alignment of EmpyreanObserver"][::std::mem::align_of::<EmpyreanObserver>() - 8usize];
    ["Offset of field: EmpyreanObserver::obs_code"]
        [::std::mem::offset_of!(EmpyreanObserver, obs_code) - 0usize];
    ["Offset of field: EmpyreanObserver::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanObserver, epoch_mjd_tdb) - 8usize];
    ["Offset of field: EmpyreanObserver::x"][::std::mem::offset_of!(EmpyreanObserver, x) - 16usize];
    ["Offset of field: EmpyreanObserver::y"][::std::mem::offset_of!(EmpyreanObserver, y) - 24usize];
    ["Offset of field: EmpyreanObserver::z"][::std::mem::offset_of!(EmpyreanObserver, z) - 32usize];
    ["Offset of field: EmpyreanObserver::vx"]
        [::std::mem::offset_of!(EmpyreanObserver, vx) - 40usize];
    ["Offset of field: EmpyreanObserver::vy"]
        [::std::mem::offset_of!(EmpyreanObserver, vy) - 48usize];
    ["Offset of field: EmpyreanObserver::vz"]
        [::std::mem::offset_of!(EmpyreanObserver, vz) - 56usize];
    ["Offset of field: EmpyreanObserver::observing_night"]
        [::std::mem::offset_of!(EmpyreanObserver, observing_night) - 64usize];
};
#[doc = " Ephemeris-generation configuration.\n\n Wraps the inner [`EmpyreanPropagationConfig`] (force model,\n uncertainty method, output frame) plus the light-time iteration\n controls and a diagnostics toggle. The propagation runs internally\n to bring each orbit to its observation epoch, so every\n propagation-level knob applies here too."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanEphemerisConfig {
    #[doc = " Inner propagation configuration applied to the trajectory that\n brings each orbit to its observation epoch."]
    pub propagation: EmpyreanPropagationConfig,
    #[doc = " Maximum iterations for light-time convergence. 0 → use the\n upstream default (3)."]
    pub max_light_time_iterations: usize,
    #[doc = " Tolerance (days) for light-time convergence. 0.0 → upstream\n default (1e-10)."]
    pub light_time_tolerance_days: f64,
    #[doc = " 1 = compute phase angle / elongation / heliocentric distance /\n apparent magnitude. 0 = skip (faster; appropriate for OD inner\n loops that only need RA/Dec)."]
    pub compute_diagnostics: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanEphemerisConfig"]
        [::std::mem::size_of::<EmpyreanEphemerisConfig>() - 312usize];
    ["Alignment of EmpyreanEphemerisConfig"]
        [::std::mem::align_of::<EmpyreanEphemerisConfig>() - 8usize];
    ["Offset of field: EmpyreanEphemerisConfig::propagation"]
        [::std::mem::offset_of!(EmpyreanEphemerisConfig, propagation) - 0usize];
    ["Offset of field: EmpyreanEphemerisConfig::max_light_time_iterations"]
        [::std::mem::offset_of!(EmpyreanEphemerisConfig, max_light_time_iterations) - 288usize];
    ["Offset of field: EmpyreanEphemerisConfig::light_time_tolerance_days"]
        [::std::mem::offset_of!(EmpyreanEphemerisConfig, light_time_tolerance_days) - 296usize];
    ["Offset of field: EmpyreanEphemerisConfig::compute_diagnostics"]
        [::std::mem::offset_of!(EmpyreanEphemerisConfig, compute_diagnostics) - 304usize];
};
impl Default for EmpyreanEphemerisConfig {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " A single predicted ephemeris entry."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanEphemerisEntry {
    #[doc = " Orbit identifier (heap-allocated, freed by empyrean_ephemeris_result_free)."]
    pub orbit_id: *mut ::std::os::raw::c_char,
    #[doc = " Epoch as MJD TDB."]
    pub epoch_mjd_tdb: f64,
    #[doc = " Right ascension (degrees)."]
    pub ra_deg: f64,
    #[doc = " Declination (degrees)."]
    pub dec_deg: f64,
    #[doc = " Topocentric distance (AU)."]
    pub rho_au: f64,
    #[doc = " Radial velocity (AU/day)."]
    pub vrho_au_day: f64,
    #[doc = " RA rate (deg/day)."]
    pub vra_deg_day: f64,
    #[doc = " Dec rate (deg/day)."]
    pub vdec_deg_day: f64,
    #[doc = " One-way light time (days). NaN if unavailable."]
    pub light_time_days: f64,
    #[doc = " Phase angle (degrees). NaN if unavailable."]
    pub phase_angle_deg: f64,
    #[doc = " Solar elongation (degrees). NaN if unavailable."]
    pub elongation_deg: f64,
    #[doc = " Heliocentric distance (AU). NaN if unavailable."]
    pub heliocentric_distance_au: f64,
    #[doc = " Predicted apparent magnitude. NaN if unavailable."]
    pub mag: f64,
    #[doc = " Magnitude uncertainty (1σ). Finite iff photometry is enabled AND\n the input orbit carried a state covariance; NaN otherwise. Today\n this reflects the state contribution only — an H-magnitude\n uncertainty is not yet an input, so `mag_sigma` under-reports σ_V\n when the H uncertainty is significant."]
    pub mag_sigma: f64,
    #[doc = " Topocentric zenith angle (degrees). NaN if unavailable (e.g. no\n observer geodetic position)."]
    pub zenith_angle_deg: f64,
    #[doc = " Topocentric azimuth, East of North (degrees). NaN if unavailable."]
    pub azimuth_deg: f64,
    #[doc = " Local hour angle (degrees). NaN if unavailable."]
    pub hour_angle_deg: f64,
    #[doc = " Angular separation from the Moon (degrees). NaN if unavailable."]
    pub lunar_elongation_deg: f64,
    #[doc = " Position angle of motion, East of North (degrees). NaN if unavailable."]
    pub position_angle_deg: f64,
    #[doc = " Total apparent sky-plane rate of motion (degrees/day). NaN if\n unavailable."]
    pub sky_rate_deg_day: f64,
    #[doc = " Observer code, null-terminated (4 bytes)."]
    pub obs_code: [u8; 4usize],
    #[doc = " 1 when `covariance` / `aberrated_state` / `aberrated_covariance`\n below are populated — i.e. the input orbit carried a state\n covariance and the STM/uncertainty path ran; 0 otherwise."]
    pub has_covariance: u8,
    #[doc = " 6×6 sky-plane covariance over (rho, RA, Dec, vrho, vRA, vDec) in\n (AU, deg) units, row-major. All-NaN when `has_covariance == 0`."]
    pub covariance: [[f64; 6usize]; 6usize],
    #[doc = " Aberrated (light-time corrected) barycentric ICRF Cartesian state\n `[x, y, z, vx, vy, vz]` (AU, AU/day) at the photon-emission epoch\n (`epoch_mjd_tdb - light_time_days`). Populated independently of\n covariance; NaN-filled in the (never-observed-today) case where\n the engine produced no aberrated state for the row."]
    pub aberrated_state: [f64; 6usize],
    #[doc = " 1 when `aberrated_covariance` is populated; 0 otherwise."]
    pub has_aberrated_covariance: u8,
    #[doc = " 6×6 Cartesian covariance of the aberrated state, row-major.\n All-NaN when `has_aberrated_covariance == 0`."]
    pub aberrated_covariance: [[f64; 6usize]; 6usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanEphemerisEntry"][::std::mem::size_of::<EmpyreanEphemerisEntry>() - 800usize];
    ["Alignment of EmpyreanEphemerisEntry"]
        [::std::mem::align_of::<EmpyreanEphemerisEntry>() - 8usize];
    ["Offset of field: EmpyreanEphemerisEntry::orbit_id"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, orbit_id) - 0usize];
    ["Offset of field: EmpyreanEphemerisEntry::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, epoch_mjd_tdb) - 8usize];
    ["Offset of field: EmpyreanEphemerisEntry::ra_deg"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, ra_deg) - 16usize];
    ["Offset of field: EmpyreanEphemerisEntry::dec_deg"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, dec_deg) - 24usize];
    ["Offset of field: EmpyreanEphemerisEntry::rho_au"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, rho_au) - 32usize];
    ["Offset of field: EmpyreanEphemerisEntry::vrho_au_day"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, vrho_au_day) - 40usize];
    ["Offset of field: EmpyreanEphemerisEntry::vra_deg_day"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, vra_deg_day) - 48usize];
    ["Offset of field: EmpyreanEphemerisEntry::vdec_deg_day"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, vdec_deg_day) - 56usize];
    ["Offset of field: EmpyreanEphemerisEntry::light_time_days"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, light_time_days) - 64usize];
    ["Offset of field: EmpyreanEphemerisEntry::phase_angle_deg"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, phase_angle_deg) - 72usize];
    ["Offset of field: EmpyreanEphemerisEntry::elongation_deg"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, elongation_deg) - 80usize];
    ["Offset of field: EmpyreanEphemerisEntry::heliocentric_distance_au"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, heliocentric_distance_au) - 88usize];
    ["Offset of field: EmpyreanEphemerisEntry::mag"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, mag) - 96usize];
    ["Offset of field: EmpyreanEphemerisEntry::mag_sigma"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, mag_sigma) - 104usize];
    ["Offset of field: EmpyreanEphemerisEntry::zenith_angle_deg"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, zenith_angle_deg) - 112usize];
    ["Offset of field: EmpyreanEphemerisEntry::azimuth_deg"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, azimuth_deg) - 120usize];
    ["Offset of field: EmpyreanEphemerisEntry::hour_angle_deg"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, hour_angle_deg) - 128usize];
    ["Offset of field: EmpyreanEphemerisEntry::lunar_elongation_deg"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, lunar_elongation_deg) - 136usize];
    ["Offset of field: EmpyreanEphemerisEntry::position_angle_deg"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, position_angle_deg) - 144usize];
    ["Offset of field: EmpyreanEphemerisEntry::sky_rate_deg_day"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, sky_rate_deg_day) - 152usize];
    ["Offset of field: EmpyreanEphemerisEntry::obs_code"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, obs_code) - 160usize];
    ["Offset of field: EmpyreanEphemerisEntry::has_covariance"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, has_covariance) - 164usize];
    ["Offset of field: EmpyreanEphemerisEntry::covariance"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, covariance) - 168usize];
    ["Offset of field: EmpyreanEphemerisEntry::aberrated_state"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, aberrated_state) - 456usize];
    ["Offset of field: EmpyreanEphemerisEntry::has_aberrated_covariance"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, has_aberrated_covariance) - 504usize];
    ["Offset of field: EmpyreanEphemerisEntry::aberrated_covariance"]
        [::std::mem::offset_of!(EmpyreanEphemerisEntry, aberrated_covariance) - 512usize];
};
impl Default for EmpyreanEphemerisEntry {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " One observation-sensitivity row — the partial derivatives of the\n sky-plane observable w.r.t. the input state, for a single\n `(orbit, observer, epoch)`. One row per observation epoch within each\n `(orbit_id, obs_code)` chain. Owning struct: free\n the whole result with [`empyrean_ephemeris_result_free`].\n\n The Jacobian composes d(obs)/d(state at t_obs) * Phi(t_obs, t0) and\n omits the light-time terms (the -v * dtau/dx partial; the STM is\n sampled at t_obs rather than emission t_obs - tau): both are O(tau),\n landing in the velocity columns of the angle rows with fractional\n error ~ tau/dt (tau ~ 0.006-0.017 d) — negligible for multi-night\n arcs, growing as the arc shrinks toward intra-night."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanObservationSensitivity {
    #[doc = " Orbit identifier. Owning C string."]
    pub orbit_id: *mut ::std::os::raw::c_char,
    #[doc = " Object identifier (owning C string) or null when absent."]
    pub object_id: *mut ::std::os::raw::c_char,
    #[doc = " MPC observatory code, null-terminated (4 bytes)."]
    pub obs_code: [u8; 4usize],
    #[doc = " Observation epoch (MJD TDB)."]
    pub epoch_mjd_tdb: f64,
    #[doc = " Solved-parameter dimension: 6 (state) or 9 (state + non-grav)."]
    pub n_params: u8,
    #[doc = " Jacobian ∂(observable)/∂(input), row-major `[6][n_params]` flattened\n (length `6 * n_params`). Null when this epoch carries no Jacobian."]
    pub jacobian: *mut f64,
    #[doc = " Length of `jacobian` (`6 * n_params`), 0 when null."]
    pub jacobian_len: usize,
    #[doc = " Hessian ∂²(observable)/∂(input)², row-major `[6][n_params][n_params]`\n flattened (length `6 * n_params * n_params`). Null unless a\n second-order method (Jet2) ran."]
    pub hessian: *mut f64,
    #[doc = " Length of `hessian` (`6 * n_params²`), 0 when null."]
    pub hessian_len: usize,
    #[doc = " Frame of the input axis (Frame enum as int)."]
    pub frame: i32,
    #[doc = " Origin of the input axis (NAIF id)."]
    pub origin: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanObservationSensitivity"]
        [::std::mem::size_of::<EmpyreanObservationSensitivity>() - 80usize];
    ["Alignment of EmpyreanObservationSensitivity"]
        [::std::mem::align_of::<EmpyreanObservationSensitivity>() - 8usize];
    ["Offset of field: EmpyreanObservationSensitivity::orbit_id"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, orbit_id) - 0usize];
    ["Offset of field: EmpyreanObservationSensitivity::object_id"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, object_id) - 8usize];
    ["Offset of field: EmpyreanObservationSensitivity::obs_code"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, obs_code) - 16usize];
    ["Offset of field: EmpyreanObservationSensitivity::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, epoch_mjd_tdb) - 24usize];
    ["Offset of field: EmpyreanObservationSensitivity::n_params"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, n_params) - 32usize];
    ["Offset of field: EmpyreanObservationSensitivity::jacobian"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, jacobian) - 40usize];
    ["Offset of field: EmpyreanObservationSensitivity::jacobian_len"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, jacobian_len) - 48usize];
    ["Offset of field: EmpyreanObservationSensitivity::hessian"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, hessian) - 56usize];
    ["Offset of field: EmpyreanObservationSensitivity::hessian_len"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, hessian_len) - 64usize];
    ["Offset of field: EmpyreanObservationSensitivity::frame"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, frame) - 72usize];
    ["Offset of field: EmpyreanObservationSensitivity::origin"]
        [::std::mem::offset_of!(EmpyreanObservationSensitivity, origin) - 76usize];
};
impl Default for EmpyreanObservationSensitivity {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Result containing an array of ephemeris entries and, when an\n uncertainty method traced the STM, the observation-sensitivity chains."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanEphemerisResult {
    pub entries: *mut EmpyreanEphemerisEntry,
    pub num_entries: usize,
    #[doc = " Per-`(orbit, observer, epoch)` sensitivity rows. Null / 0 when no\n STM was traced (e.g. an f64-only path)."]
    pub sensitivity: *mut EmpyreanObservationSensitivity,
    pub num_sensitivity: usize,
    #[doc = " Non-fatal generation warnings: heap array of `num_warnings`\n NUL-terminated UTF-8 strings. Null when `num_warnings == 0` (a\n clean run). One list per call, not per row; each message names the\n affected orbit id, observatory code, and epoch (MJD TDB) where\n applicable. Freed by `empyrean_ephemeris_result_free`."]
    pub warnings: *mut *mut ::std::os::raw::c_char,
    #[doc = " Number of warning strings. 0 when the run had nothing to report."]
    pub num_warnings: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanEphemerisResult"][::std::mem::size_of::<EmpyreanEphemerisResult>() - 48usize];
    ["Alignment of EmpyreanEphemerisResult"]
        [::std::mem::align_of::<EmpyreanEphemerisResult>() - 8usize];
    ["Offset of field: EmpyreanEphemerisResult::entries"]
        [::std::mem::offset_of!(EmpyreanEphemerisResult, entries) - 0usize];
    ["Offset of field: EmpyreanEphemerisResult::num_entries"]
        [::std::mem::offset_of!(EmpyreanEphemerisResult, num_entries) - 8usize];
    ["Offset of field: EmpyreanEphemerisResult::sensitivity"]
        [::std::mem::offset_of!(EmpyreanEphemerisResult, sensitivity) - 16usize];
    ["Offset of field: EmpyreanEphemerisResult::num_sensitivity"]
        [::std::mem::offset_of!(EmpyreanEphemerisResult, num_sensitivity) - 24usize];
    ["Offset of field: EmpyreanEphemerisResult::warnings"]
        [::std::mem::offset_of!(EmpyreanEphemerisResult, warnings) - 32usize];
    ["Offset of field: EmpyreanEphemerisResult::num_warnings"]
        [::std::mem::offset_of!(EmpyreanEphemerisResult, num_warnings) - 40usize];
};
impl Default for EmpyreanEphemerisResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " One entry of the kernel-identity manifest captured by a handle.\n\n Names the provenance of each loaded data file — never any tuning\n rationale. Free the owning [`EmpyreanSystemDescription`] with\n [`empyrean_builtsystem_description_free`]; do not free these fields\n individually."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanKernelRecord {
    #[doc = " Category of the entry (`EMPYREAN_KERNEL_KIND_*`)."]
    pub kind: i32,
    #[doc = " Where the entry came from (`EMPYREAN_KERNEL_PROVENANCE_*`)."]
    pub provenance: i32,
    #[doc = " Absolute path the kernel was loaded from. Non-null only for a\n `FILE` provenance; null otherwise. NUL-terminated UTF-8."]
    pub path: *mut ::std::os::raw::c_char,
    #[doc = " Lowercase-hex SHA-256 of the file's bytes (64 chars). Non-null only\n for a `FILE` provenance; null otherwise. NUL-terminated UTF-8."]
    pub sha256: *mut ::std::os::raw::c_char,
    #[doc = " Hashed file size in bytes. 0 unless `FILE` provenance."]
    pub bytes: u64,
    #[doc = " Human-readable model name. Non-null only for a `BUILT_IN`\n provenance; null otherwise. NUL-terminated UTF-8."]
    pub name: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanKernelRecord"][::std::mem::size_of::<EmpyreanKernelRecord>() - 40usize];
    ["Alignment of EmpyreanKernelRecord"][::std::mem::align_of::<EmpyreanKernelRecord>() - 8usize];
    ["Offset of field: EmpyreanKernelRecord::kind"]
        [::std::mem::offset_of!(EmpyreanKernelRecord, kind) - 0usize];
    ["Offset of field: EmpyreanKernelRecord::provenance"]
        [::std::mem::offset_of!(EmpyreanKernelRecord, provenance) - 4usize];
    ["Offset of field: EmpyreanKernelRecord::path"]
        [::std::mem::offset_of!(EmpyreanKernelRecord, path) - 8usize];
    ["Offset of field: EmpyreanKernelRecord::sha256"]
        [::std::mem::offset_of!(EmpyreanKernelRecord, sha256) - 16usize];
    ["Offset of field: EmpyreanKernelRecord::bytes"]
        [::std::mem::offset_of!(EmpyreanKernelRecord, bytes) - 24usize];
    ["Offset of field: EmpyreanKernelRecord::name"]
        [::std::mem::offset_of!(EmpyreanKernelRecord, name) - 32usize];
};
impl Default for EmpyreanKernelRecord {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " A reproducibility summary of a handle's frozen force model plus its\n captured kernel-identity manifest.\n\n Populated in full by [`empyrean_builtsystem_describe`] — every field\n reflects the assembled system; nothing is defaulted. Names the citable\n menu (tier, frame, GR, perturbers, BPC, kernel hashes) — never selection\n logic or tuning rationale. Release the heap-owned arrays with\n [`empyrean_builtsystem_description_free`]."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanSystemDescription {
    #[doc = " Force-model tier: 0=Approximate, 1=Basic, 2=Standard."]
    pub force_model: i32,
    #[doc = " Integration/output frame: 0=ICRF, 1=EclipticJ2000, 2=ITRF93."]
    pub frame: i32,
    #[doc = " The frozen encounter-timescale divisor."]
    pub encounter_timescale_divisor: f64,
    #[doc = " 1 if the post-Newtonian (EIH) GR correction is enabled, else 0."]
    pub relativistic: u8,
    #[doc = " 1 if the N16 asteroid perturbers are included, else 0."]
    pub asteroids: u8,
    #[doc = " 1 if a BPC (body-fixed rotation) kernel is loaded, else 0."]
    pub has_bpc: u8,
    #[doc = " Heap array of perturbing-body NAIF ids (length `num_perturbers`).\n Null when `num_perturbers == 0`."]
    pub perturber_origins: *mut i32,
    #[doc = " Number of entries in [`perturber_origins`](Self::perturber_origins)."]
    pub num_perturbers: usize,
    #[doc = " Heap array of kernel-identity records (length `num_kernels`). Null\n when `num_kernels == 0`."]
    pub kernels: *mut EmpyreanKernelRecord,
    #[doc = " Number of entries in [`kernels`](Self::kernels)."]
    pub num_kernels: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanSystemDescription"]
        [::std::mem::size_of::<EmpyreanSystemDescription>() - 56usize];
    ["Alignment of EmpyreanSystemDescription"]
        [::std::mem::align_of::<EmpyreanSystemDescription>() - 8usize];
    ["Offset of field: EmpyreanSystemDescription::force_model"]
        [::std::mem::offset_of!(EmpyreanSystemDescription, force_model) - 0usize];
    ["Offset of field: EmpyreanSystemDescription::frame"]
        [::std::mem::offset_of!(EmpyreanSystemDescription, frame) - 4usize];
    ["Offset of field: EmpyreanSystemDescription::encounter_timescale_divisor"]
        [::std::mem::offset_of!(EmpyreanSystemDescription, encounter_timescale_divisor) - 8usize];
    ["Offset of field: EmpyreanSystemDescription::relativistic"]
        [::std::mem::offset_of!(EmpyreanSystemDescription, relativistic) - 16usize];
    ["Offset of field: EmpyreanSystemDescription::asteroids"]
        [::std::mem::offset_of!(EmpyreanSystemDescription, asteroids) - 17usize];
    ["Offset of field: EmpyreanSystemDescription::has_bpc"]
        [::std::mem::offset_of!(EmpyreanSystemDescription, has_bpc) - 18usize];
    ["Offset of field: EmpyreanSystemDescription::perturber_origins"]
        [::std::mem::offset_of!(EmpyreanSystemDescription, perturber_origins) - 24usize];
    ["Offset of field: EmpyreanSystemDescription::num_perturbers"]
        [::std::mem::offset_of!(EmpyreanSystemDescription, num_perturbers) - 32usize];
    ["Offset of field: EmpyreanSystemDescription::kernels"]
        [::std::mem::offset_of!(EmpyreanSystemDescription, kernels) - 40usize];
    ["Offset of field: EmpyreanSystemDescription::num_kernels"]
        [::std::mem::offset_of!(EmpyreanSystemDescription, num_kernels) - 48usize];
};
impl Default for EmpyreanSystemDescription {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " One impact-probability record emitted by\n [`empyrean_compute_impact_probabilities`]. Mirrors\n [`empyrean_core::impact::ImpactProbability`] flattened to primitives;\n nullable fields use NaN sentinels (Option<f64>) or 0 / null\n (Option<usize>).\n\n `method_tag` matches the `EMPYREAN_UNCERTAINTY_*` constants in\n `propagate.rs` and identifies which propagation produced this row."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanImpactProbability {
    #[doc = " Variant tag of the [`UncertaintyMethod`] that produced this row."]
    pub method_tag: u8,
    #[doc = " Owning C string — caller frees via `*_result_free`."]
    pub orbit_id: *mut ::std::os::raw::c_char,
    pub object_id: *mut ::std::os::raw::c_char,
    pub body: *mut ::std::os::raw::c_char,
    pub body_naif_id: i32,
    pub epoch_mjd_tdb: f64,
    pub miss_distance_au: f64,
    pub miss_distance_km: f64,
    pub effective_radius_au: f64,
    pub effective_radius_km: f64,
    pub sigma_distance_au: f64,
    pub sigma_distance_km: f64,
    pub ip_linear: f64,
    pub relative_velocity_au_day: f64,
    #[doc = " `ip_second_order`, NaN when not available."]
    pub ip_second_order: f64,
    #[doc = " Jet2 nonlinearity κ, NaN when not available."]
    pub nonlinearity: f64,
    #[doc = " AGM-mixed IP, NaN when not available."]
    pub ip_agm: f64,
    #[doc = " MC-sampled IP, NaN when not available."]
    pub ip_mc: f64,
    #[doc = " Number of MC samples drawn (0 when MC was not used)."]
    pub mc_n_samples: u64,
    #[doc = " Number of MC samples that impacted (0 when MC was not used)."]
    pub mc_n_impacts: u64,
    #[doc = " Geodetic latitude of the closest-approach surface point on the\n body's reference ellipsoid (degrees, north positive). NaN when no\n surface projection is available for this encounter."]
    pub impact_latitude_deg: f64,
    #[doc = " Geodetic longitude of the closest-approach surface point\n (degrees, east positive, [-180, 180]). NaN when unavailable."]
    pub impact_longitude_deg: f64,
    #[doc = " Altitude of the closest-approach point above the reference\n ellipsoid (km). NaN when unavailable."]
    pub impact_altitude_km: f64,
    #[doc = " Half-width of the 95% binomial confidence interval on `ip_mc`.\n The interval is `ip_mc ± mc_confidence_interval`. NaN when the\n producing method was not Monte Carlo."]
    pub mc_confidence_interval: f64,
    #[doc = " Second-order corrected mean miss distance (AU). On Monte-Carlo\n rows carries the sample-mean miss distance instead. NaN when the\n producing method computed neither."]
    pub mean_distance_second_order_au: f64,
    #[doc = " Second-order corrected 1σ miss-distance uncertainty (AU). NaN\n when the producing method carried no second-order derivatives."]
    pub sigma_distance_second_order_au: f64,
    #[doc = " Skewness γ₁ of the miss-distance distribution under the\n second-order expansion (dimensionless). NaN when not computed."]
    pub skewness: f64,
    #[doc = " Gradient ∂d/∂x₀ of the closest-approach distance w.r.t. the\n initial Cartesian state. All-zero on Monte-Carlo rows and on\n degenerate zero-miss encounters."]
    pub gradient: [f64; 6usize],
    #[doc = " Second derivatives ∂²d/∂x₀ᵢ∂x₀ⱼ of the closest-approach distance\n (6×6 symmetric). Every entry NaN when the producing method carried\n no second-order derivatives."]
    pub distance_hessian: [[f64; 6usize]; 6usize],
    #[doc = " Number of mixture components used by the adaptive\n Gaussian-mixture IP refinement. 0 when the refinement did not run\n (matches `ip_agm` = NaN)."]
    pub agm_components: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanImpactProbability"]
        [::std::mem::size_of::<EmpyreanImpactProbability>() - 560usize];
    ["Alignment of EmpyreanImpactProbability"]
        [::std::mem::align_of::<EmpyreanImpactProbability>() - 8usize];
    ["Offset of field: EmpyreanImpactProbability::method_tag"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, method_tag) - 0usize];
    ["Offset of field: EmpyreanImpactProbability::orbit_id"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, orbit_id) - 8usize];
    ["Offset of field: EmpyreanImpactProbability::object_id"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, object_id) - 16usize];
    ["Offset of field: EmpyreanImpactProbability::body"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, body) - 24usize];
    ["Offset of field: EmpyreanImpactProbability::body_naif_id"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, body_naif_id) - 32usize];
    ["Offset of field: EmpyreanImpactProbability::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, epoch_mjd_tdb) - 40usize];
    ["Offset of field: EmpyreanImpactProbability::miss_distance_au"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, miss_distance_au) - 48usize];
    ["Offset of field: EmpyreanImpactProbability::miss_distance_km"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, miss_distance_km) - 56usize];
    ["Offset of field: EmpyreanImpactProbability::effective_radius_au"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, effective_radius_au) - 64usize];
    ["Offset of field: EmpyreanImpactProbability::effective_radius_km"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, effective_radius_km) - 72usize];
    ["Offset of field: EmpyreanImpactProbability::sigma_distance_au"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, sigma_distance_au) - 80usize];
    ["Offset of field: EmpyreanImpactProbability::sigma_distance_km"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, sigma_distance_km) - 88usize];
    ["Offset of field: EmpyreanImpactProbability::ip_linear"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, ip_linear) - 96usize];
    ["Offset of field: EmpyreanImpactProbability::relative_velocity_au_day"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, relative_velocity_au_day) - 104usize];
    ["Offset of field: EmpyreanImpactProbability::ip_second_order"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, ip_second_order) - 112usize];
    ["Offset of field: EmpyreanImpactProbability::nonlinearity"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, nonlinearity) - 120usize];
    ["Offset of field: EmpyreanImpactProbability::ip_agm"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, ip_agm) - 128usize];
    ["Offset of field: EmpyreanImpactProbability::ip_mc"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, ip_mc) - 136usize];
    ["Offset of field: EmpyreanImpactProbability::mc_n_samples"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, mc_n_samples) - 144usize];
    ["Offset of field: EmpyreanImpactProbability::mc_n_impacts"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, mc_n_impacts) - 152usize];
    ["Offset of field: EmpyreanImpactProbability::impact_latitude_deg"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, impact_latitude_deg) - 160usize];
    ["Offset of field: EmpyreanImpactProbability::impact_longitude_deg"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, impact_longitude_deg) - 168usize];
    ["Offset of field: EmpyreanImpactProbability::impact_altitude_km"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, impact_altitude_km) - 176usize];
    ["Offset of field: EmpyreanImpactProbability::mc_confidence_interval"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, mc_confidence_interval) - 184usize];
    ["Offset of field: EmpyreanImpactProbability::mean_distance_second_order_au"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, mean_distance_second_order_au)
            - 192usize];
    ["Offset of field: EmpyreanImpactProbability::sigma_distance_second_order_au"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, sigma_distance_second_order_au)
            - 200usize];
    ["Offset of field: EmpyreanImpactProbability::skewness"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, skewness) - 208usize];
    ["Offset of field: EmpyreanImpactProbability::gradient"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, gradient) - 216usize];
    ["Offset of field: EmpyreanImpactProbability::distance_hessian"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, distance_hessian) - 264usize];
    ["Offset of field: EmpyreanImpactProbability::agm_components"]
        [::std::mem::offset_of!(EmpyreanImpactProbability, agm_components) - 552usize];
};
impl Default for EmpyreanImpactProbability {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanImpactProbabilitiesResult {
    pub records: *mut EmpyreanImpactProbability,
    pub num_records: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanImpactProbabilitiesResult"]
        [::std::mem::size_of::<EmpyreanImpactProbabilitiesResult>() - 16usize];
    ["Alignment of EmpyreanImpactProbabilitiesResult"]
        [::std::mem::align_of::<EmpyreanImpactProbabilitiesResult>() - 8usize];
    ["Offset of field: EmpyreanImpactProbabilitiesResult::records"]
        [::std::mem::offset_of!(EmpyreanImpactProbabilitiesResult, records) - 0usize];
    ["Offset of field: EmpyreanImpactProbabilitiesResult::num_records"]
        [::std::mem::offset_of!(EmpyreanImpactProbabilitiesResult, num_records) - 8usize];
};
impl Default for EmpyreanImpactProbabilitiesResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " One B-plane breakdown emitted by [`empyrean_compute_b_planes`].\n Mirrors [`empyrean_core::impact::BPlaneData`] flattened to primitives.\n Nullable f64 fields use NaN sentinels."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanBPlane {
    #[doc = " Variant tag of the [`UncertaintyMethod`] that produced this row."]
    pub method_tag: u8,
    #[doc = " Owning C string — caller frees via `*_result_free`."]
    pub body: *mut ::std::os::raw::c_char,
    pub epoch_mjd_tdb: f64,
    pub b_dot_t_km: f64,
    pub b_dot_r_km: f64,
    pub b_mag_km: f64,
    pub v_inf_km_s: f64,
    pub effective_radius_km: f64,
    pub body_radius_km: f64,
    #[doc = " `[σ_TT, σ_TR, σ_RR]` covariance elements (km²); NaN when no\n projected covariance is available."]
    pub cov_b_plane: [f64; 3usize],
    pub semi_major_3sig_km: f64,
    pub semi_minor_3sig_km: f64,
    pub ellipse_angle_rad: f64,
    pub ip_linear: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanBPlane"][::std::mem::size_of::<EmpyreanBPlane>() - 128usize];
    ["Alignment of EmpyreanBPlane"][::std::mem::align_of::<EmpyreanBPlane>() - 8usize];
    ["Offset of field: EmpyreanBPlane::method_tag"]
        [::std::mem::offset_of!(EmpyreanBPlane, method_tag) - 0usize];
    ["Offset of field: EmpyreanBPlane::body"]
        [::std::mem::offset_of!(EmpyreanBPlane, body) - 8usize];
    ["Offset of field: EmpyreanBPlane::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanBPlane, epoch_mjd_tdb) - 16usize];
    ["Offset of field: EmpyreanBPlane::b_dot_t_km"]
        [::std::mem::offset_of!(EmpyreanBPlane, b_dot_t_km) - 24usize];
    ["Offset of field: EmpyreanBPlane::b_dot_r_km"]
        [::std::mem::offset_of!(EmpyreanBPlane, b_dot_r_km) - 32usize];
    ["Offset of field: EmpyreanBPlane::b_mag_km"]
        [::std::mem::offset_of!(EmpyreanBPlane, b_mag_km) - 40usize];
    ["Offset of field: EmpyreanBPlane::v_inf_km_s"]
        [::std::mem::offset_of!(EmpyreanBPlane, v_inf_km_s) - 48usize];
    ["Offset of field: EmpyreanBPlane::effective_radius_km"]
        [::std::mem::offset_of!(EmpyreanBPlane, effective_radius_km) - 56usize];
    ["Offset of field: EmpyreanBPlane::body_radius_km"]
        [::std::mem::offset_of!(EmpyreanBPlane, body_radius_km) - 64usize];
    ["Offset of field: EmpyreanBPlane::cov_b_plane"]
        [::std::mem::offset_of!(EmpyreanBPlane, cov_b_plane) - 72usize];
    ["Offset of field: EmpyreanBPlane::semi_major_3sig_km"]
        [::std::mem::offset_of!(EmpyreanBPlane, semi_major_3sig_km) - 96usize];
    ["Offset of field: EmpyreanBPlane::semi_minor_3sig_km"]
        [::std::mem::offset_of!(EmpyreanBPlane, semi_minor_3sig_km) - 104usize];
    ["Offset of field: EmpyreanBPlane::ellipse_angle_rad"]
        [::std::mem::offset_of!(EmpyreanBPlane, ellipse_angle_rad) - 112usize];
    ["Offset of field: EmpyreanBPlane::ip_linear"]
        [::std::mem::offset_of!(EmpyreanBPlane, ip_linear) - 120usize];
};
impl Default for EmpyreanBPlane {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanBPlanesResult {
    pub records: *mut EmpyreanBPlane,
    pub num_records: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanBPlanesResult"][::std::mem::size_of::<EmpyreanBPlanesResult>() - 16usize];
    ["Alignment of EmpyreanBPlanesResult"]
        [::std::mem::align_of::<EmpyreanBPlanesResult>() - 8usize];
    ["Offset of field: EmpyreanBPlanesResult::records"]
        [::std::mem::offset_of!(EmpyreanBPlanesResult, records) - 0usize];
    ["Offset of field: EmpyreanBPlanesResult::num_records"]
        [::std::mem::offset_of!(EmpyreanBPlanesResult, num_records) - 8usize];
};
impl Default for EmpyreanBPlanesResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " A batch of orbits with their identifiers.\n\n Returned by every `empyrean_orbits_read_*` and consumed by every\n `empyrean_orbits_write_*`. `orbit_ids` and `object_ids` are parallel\n to `orbits` (same length); each `object_ids[i]` may be null when the\n underlying orbit had no object designation.\n\n Free with [`empyrean_orbits_batch_free`] when done."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanOrbitBatch {
    #[doc = " Heap-allocated array of `EmpyreanOrbit`. Null when `num_orbits == 0`."]
    pub orbits: *mut EmpyreanOrbit,
    #[doc = " Heap-allocated array of orbit identifiers (null-terminated UTF-8).\n Each `orbit_ids[i]` is non-null when `i < num_orbits`."]
    pub orbit_ids: *mut *mut ::std::os::raw::c_char,
    #[doc = " Heap-allocated array of optional object identifiers\n (null-terminated UTF-8 or null pointer when absent)."]
    pub object_ids: *mut *mut ::std::os::raw::c_char,
    #[doc = " Number of orbits in the batch."]
    pub num_orbits: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanOrbitBatch"][::std::mem::size_of::<EmpyreanOrbitBatch>() - 32usize];
    ["Alignment of EmpyreanOrbitBatch"][::std::mem::align_of::<EmpyreanOrbitBatch>() - 8usize];
    ["Offset of field: EmpyreanOrbitBatch::orbits"]
        [::std::mem::offset_of!(EmpyreanOrbitBatch, orbits) - 0usize];
    ["Offset of field: EmpyreanOrbitBatch::orbit_ids"]
        [::std::mem::offset_of!(EmpyreanOrbitBatch, orbit_ids) - 8usize];
    ["Offset of field: EmpyreanOrbitBatch::object_ids"]
        [::std::mem::offset_of!(EmpyreanOrbitBatch, object_ids) - 16usize];
    ["Offset of field: EmpyreanOrbitBatch::num_orbits"]
        [::std::mem::offset_of!(EmpyreanOrbitBatch, num_orbits) - 24usize];
};
impl Default for EmpyreanOrbitBatch {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Per-observation result from orbit determination or evaluation.\n\n Mirrors scott's [`ObservationResult`](scott::results::ObservationResult)\n — every field upstream produces is carried across the C ABI. NaN /\n `EMPYREAN_REJECTION_NOT_EVALUATED` mark fields that aren't populated\n for the call type (e.g. evaluate doesn't compute rejection or\n influence diagnostics).\n\n `obs_id` is a heap-allocated NUL-terminated UTF-8 string; the\n pointer is freed by [`empyrean_od_result_free`] /\n [`empyrean_evaluate_result_free`] when the parent array is freed.\n Do NOT free it manually."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanObservationResult {
    #[doc = " ADES `obsID` (or scott auto-assigned). Owned by the parent array\n — freed by the matching `*_result_free` call."]
    pub obs_id: *mut ::std::os::raw::c_char,
    #[doc = " MPC observatory code (3-byte + NUL)."]
    pub obs_code: [u8; 4usize],
    #[doc = " Star catalog used for astrometric reduction (ADES `astCat`).\n Heap-allocated; null when ADES did not carry one. Freed with the array."]
    pub ast_cat: *mut ::std::os::raw::c_char,
    #[doc = " Observation epoch (MJD TDB)."]
    pub epoch_mjd_tdb: f64,
    #[doc = " RA·cosδ residual (observed - predicted), arcsec."]
    pub ra_residual_arcsec: f64,
    #[doc = " Dec residual, arcsec."]
    pub dec_residual_arcsec: f64,
    #[doc = " Mahalanobis χ² of this observation. NaN if covariance unavailable."]
    pub chi2: f64,
    #[doc = " Degrees of freedom (number of non-NaN residual dimensions)."]
    pub dof: u32,
    #[doc = " χ² survival probability."]
    pub probability: f64,
    #[doc = " Whether this observation was used in the fit (1 = yes, 0 = no)."]
    pub selected: u8,
    #[doc = " Combined obs+predicted RA covariance (arcsec²). NaN if absent."]
    pub residual_cov_ra: f64,
    #[doc = " Combined obs+predicted Dec covariance (arcsec²). NaN if absent."]
    pub residual_cov_dec: f64,
    #[doc = " Off-diagonal correlation coefficient (dimensionless, [-1, 1]). NaN if absent."]
    pub residual_cov_corr: f64,
    #[doc = " Reason this observation was kept / rejected. One of the\n `EMPYREAN_REJECTION_*` codes; `EMPYREAN_REJECTION_NOT_EVALUATED`\n when the call did not run rejection (e.g. `empyrean_evaluate`)."]
    pub rejection_reason: i32,
    #[doc = " Criterion value (chi², Cook's D, …) tested against the threshold. NaN if not evaluated."]
    pub rejection_criterion: f64,
    #[doc = " Static threshold the criterion was compared against. NaN if not evaluated."]
    pub rejection_threshold: f64,
    #[doc = " Effective threshold for adaptive rejection (Layer 3). NaN otherwise."]
    pub rejection_effective_threshold: f64,
    #[doc = " D-optimality information loss from removing this observation. NaN if not computed."]
    pub rejection_information_loss: f64,
    #[doc = " Cook's distance. NaN if no influence pass was run."]
    pub cooks_distance: f64,
    #[doc = " Scalar leverage h_ii ∈ [0, 2]. NaN if no influence pass."]
    pub leverage: f64,
    #[doc = " D-optimality fractional information contribution\n `f_i = tr(N⁻¹ I_i)`. NaN if no influence pass."]
    pub fractional_information: f64,
    #[doc = " Along-track residual (arcsec). NaN if no sky-motion rates."]
    pub along_track_arcsec: f64,
    #[doc = " Cross-track residual (arcsec). NaN if no sky-motion rates."]
    pub cross_track_arcsec: f64,
    #[doc = " Along-track 1σ (arcsec). NaN if unavailable."]
    pub along_track_error_arcsec: f64,
    #[doc = " Cross-track 1σ (arcsec). NaN if unavailable."]
    pub cross_track_error_arcsec: f64,
    #[doc = " Position angle of sky motion (degrees, East of North). NaN if unavailable."]
    pub track_position_angle_deg: f64,
    #[doc = " D-optimality information loss on removal, from the influence
 pass: logdet(N) − logdet(N − I_i). NaN if no influence pass was
 run, or if removing this observation makes the normal matrix
 singular (the observation is indispensable)."]
    pub influence_information_loss: f64,
    #[doc = " Off-diagonal covariance of the (along-track, cross-track)
 residual pair (arcsec²). Symmetric 2×2: the diagonal is
 `along_track_error_arcsec`² / `cross_track_error_arcsec`².
 NaN when the AT/CT covariance is unavailable."]
    pub along_cross_covariance_arcsec2: f64,
    #[doc = " Radar (delay/Doppler) residual: observed − predicted. Seconds
 for delay, hertz for Doppler (see `radar_kind`). NaN when
 `has_radar == 0`."]
    pub radar_residual: f64,
    #[doc = " χ² of the radar residual. NaN when `has_radar == 0`."]
    pub radar_chi2: f64,
    #[doc = " χ² survival probability of the radar residual. NaN when
 `has_radar == 0`."]
    pub radar_probability: f64,
    #[doc = " Combined observed+predicted radar residual variance (s² for
 delay, Hz² for Doppler). NaN when unavailable or
 `has_radar == 0`."]
    pub radar_variance: f64,
    #[doc = " Degrees of freedom of the radar residual (1 for radar). 0 when
 `has_radar == 0`."]
    pub radar_dof: u32,
    #[doc = " 1 when this row is a radar observation and the `radar_*` fields
 are live. The optical RA/Dec residual fields are NaN on radar
 rows."]
    pub has_radar: u8,
    #[doc = " `EMPYREAN_RADAR_KIND_DELAY` (0) or `EMPYREAN_RADAR_KIND_DOPPLER`
 (1). Only meaningful when `has_radar == 1`."]
    pub radar_kind: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanObservationResult"]
        [::std::mem::size_of::<EmpyreanObservationResult>() - 264usize];
    ["Alignment of EmpyreanObservationResult"]
        [::std::mem::align_of::<EmpyreanObservationResult>() - 8usize];
    ["Offset of field: EmpyreanObservationResult::obs_id"]
        [::std::mem::offset_of!(EmpyreanObservationResult, obs_id) - 0usize];
    ["Offset of field: EmpyreanObservationResult::obs_code"]
        [::std::mem::offset_of!(EmpyreanObservationResult, obs_code) - 8usize];
    ["Offset of field: EmpyreanObservationResult::ast_cat"]
        [::std::mem::offset_of!(EmpyreanObservationResult, ast_cat) - 16usize];
    ["Offset of field: EmpyreanObservationResult::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanObservationResult, epoch_mjd_tdb) - 24usize];
    ["Offset of field: EmpyreanObservationResult::ra_residual_arcsec"]
        [::std::mem::offset_of!(EmpyreanObservationResult, ra_residual_arcsec) - 32usize];
    ["Offset of field: EmpyreanObservationResult::dec_residual_arcsec"]
        [::std::mem::offset_of!(EmpyreanObservationResult, dec_residual_arcsec) - 40usize];
    ["Offset of field: EmpyreanObservationResult::chi2"]
        [::std::mem::offset_of!(EmpyreanObservationResult, chi2) - 48usize];
    ["Offset of field: EmpyreanObservationResult::dof"]
        [::std::mem::offset_of!(EmpyreanObservationResult, dof) - 56usize];
    ["Offset of field: EmpyreanObservationResult::probability"]
        [::std::mem::offset_of!(EmpyreanObservationResult, probability) - 64usize];
    ["Offset of field: EmpyreanObservationResult::selected"]
        [::std::mem::offset_of!(EmpyreanObservationResult, selected) - 72usize];
    ["Offset of field: EmpyreanObservationResult::residual_cov_ra"]
        [::std::mem::offset_of!(EmpyreanObservationResult, residual_cov_ra) - 80usize];
    ["Offset of field: EmpyreanObservationResult::residual_cov_dec"]
        [::std::mem::offset_of!(EmpyreanObservationResult, residual_cov_dec) - 88usize];
    ["Offset of field: EmpyreanObservationResult::residual_cov_corr"]
        [::std::mem::offset_of!(EmpyreanObservationResult, residual_cov_corr) - 96usize];
    ["Offset of field: EmpyreanObservationResult::rejection_reason"]
        [::std::mem::offset_of!(EmpyreanObservationResult, rejection_reason) - 104usize];
    ["Offset of field: EmpyreanObservationResult::rejection_criterion"]
        [::std::mem::offset_of!(EmpyreanObservationResult, rejection_criterion) - 112usize];
    ["Offset of field: EmpyreanObservationResult::rejection_threshold"]
        [::std::mem::offset_of!(EmpyreanObservationResult, rejection_threshold) - 120usize];
    ["Offset of field: EmpyreanObservationResult::rejection_effective_threshold"][::std::mem::offset_of!(
        EmpyreanObservationResult,
        rejection_effective_threshold
    ) - 128usize];
    ["Offset of field: EmpyreanObservationResult::rejection_information_loss"]
        [::std::mem::offset_of!(EmpyreanObservationResult, rejection_information_loss) - 136usize];
    ["Offset of field: EmpyreanObservationResult::cooks_distance"]
        [::std::mem::offset_of!(EmpyreanObservationResult, cooks_distance) - 144usize];
    ["Offset of field: EmpyreanObservationResult::leverage"]
        [::std::mem::offset_of!(EmpyreanObservationResult, leverage) - 152usize];
    ["Offset of field: EmpyreanObservationResult::fractional_information"]
        [::std::mem::offset_of!(EmpyreanObservationResult, fractional_information) - 160usize];
    ["Offset of field: EmpyreanObservationResult::along_track_arcsec"]
        [::std::mem::offset_of!(EmpyreanObservationResult, along_track_arcsec) - 168usize];
    ["Offset of field: EmpyreanObservationResult::cross_track_arcsec"]
        [::std::mem::offset_of!(EmpyreanObservationResult, cross_track_arcsec) - 176usize];
    ["Offset of field: EmpyreanObservationResult::along_track_error_arcsec"]
        [::std::mem::offset_of!(EmpyreanObservationResult, along_track_error_arcsec) - 184usize];
    ["Offset of field: EmpyreanObservationResult::cross_track_error_arcsec"]
        [::std::mem::offset_of!(EmpyreanObservationResult, cross_track_error_arcsec) - 192usize];
    ["Offset of field: EmpyreanObservationResult::track_position_angle_deg"]
        [::std::mem::offset_of!(EmpyreanObservationResult, track_position_angle_deg) - 200usize];
    ["Offset of field: EmpyreanObservationResult::influence_information_loss"]
        [::std::mem::offset_of!(EmpyreanObservationResult, influence_information_loss) - 208usize];
    ["Offset of field: EmpyreanObservationResult::along_cross_covariance_arcsec2"]
        [::std::mem::offset_of!(EmpyreanObservationResult, along_cross_covariance_arcsec2)
            - 216usize];
    ["Offset of field: EmpyreanObservationResult::radar_residual"]
        [::std::mem::offset_of!(EmpyreanObservationResult, radar_residual) - 224usize];
    ["Offset of field: EmpyreanObservationResult::radar_chi2"]
        [::std::mem::offset_of!(EmpyreanObservationResult, radar_chi2) - 232usize];
    ["Offset of field: EmpyreanObservationResult::radar_probability"]
        [::std::mem::offset_of!(EmpyreanObservationResult, radar_probability) - 240usize];
    ["Offset of field: EmpyreanObservationResult::radar_variance"]
        [::std::mem::offset_of!(EmpyreanObservationResult, radar_variance) - 248usize];
    ["Offset of field: EmpyreanObservationResult::radar_dof"]
        [::std::mem::offset_of!(EmpyreanObservationResult, radar_dof) - 256usize];
    ["Offset of field: EmpyreanObservationResult::has_radar"]
        [::std::mem::offset_of!(EmpyreanObservationResult, has_radar) - 260usize];
    ["Offset of field: EmpyreanObservationResult::radar_kind"]
        [::std::mem::offset_of!(EmpyreanObservationResult, radar_kind) - 261usize];
};
impl Default for EmpyreanObservationResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Result containing an array of observer states."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanObserverResult {
    pub observers: *mut EmpyreanObserver,
    pub num_observers: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanObserverResult"][::std::mem::size_of::<EmpyreanObserverResult>() - 16usize];
    ["Alignment of EmpyreanObserverResult"]
        [::std::mem::align_of::<EmpyreanObserverResult>() - 8usize];
    ["Offset of field: EmpyreanObserverResult::observers"]
        [::std::mem::offset_of!(EmpyreanObserverResult, observers) - 0usize];
    ["Offset of field: EmpyreanObserverResult::num_observers"]
        [::std::mem::offset_of!(EmpyreanObserverResult, num_observers) - 8usize];
};
impl Default for EmpyreanObserverResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " A single optical observation for orbit determination — full ADES schema.\n\n String fields are nullable (`null` pointer = absent). Float fields\n use NaN as the absent sentinel. The `n_stars` integer uses `-1` as\n the absent sentinel (since `u32::MAX` is a valid count). The\n `obs_code` is fixed-size 4-byte null-padded to keep the common case\n allocation-free.\n\n Mirrors scott's `OpticalObservation` field-for-field — every named\n PSV column round-trips losslessly except for ADES extension fields\n not yet in the upstream schema."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanObservation {
    #[doc = " IAU permanent designation (nullable)."]
    pub perm_id: *mut ::std::os::raw::c_char,
    #[doc = " MPC provisional designation (nullable)."]
    pub prov_id: *mut ::std::os::raw::c_char,
    #[doc = " Observer-assigned tracklet identifier (nullable)."]
    pub trk_sub: *mut ::std::os::raw::c_char,
    #[doc = " MPC-assigned observation identifier (`obsid`, nullable)."]
    pub obs_id: *mut ::std::os::raw::c_char,
    #[doc = " Observer-assigned sub-identifier (`obsSubID`, nullable)."]
    pub obs_sub_id: *mut ::std::os::raw::c_char,
    #[doc = " Track identifier (`trkID`, nullable)."]
    pub trk_id: *mut ::std::os::raw::c_char,
    #[doc = " MPC observatory code, null-padded to 4 bytes."]
    pub obs_code: [u8; 4usize],
    #[doc = " Observation mode (CCD, CMOS, etc.) (nullable)."]
    pub mode: *mut ::std::os::raw::c_char,
    #[doc = " MPC program code (nullable)."]
    pub prog: *mut ::std::os::raw::c_char,
    #[doc = " Coordinate system for observer position (nullable)."]
    pub sys: *mut ::std::os::raw::c_char,
    #[doc = " Center body NAIF ID. NaN if unset."]
    pub ctr: f64,
    #[doc = " Position component 1 (lon for WGS84, X for ICRF_KM). NaN if unset."]
    pub pos1: f64,
    #[doc = " Position component 2 (lat for WGS84, Y for ICRF_KM). NaN if unset."]
    pub pos2: f64,
    #[doc = " Position component 3 (alt for WGS84, Z for ICRF_KM). NaN if unset."]
    pub pos3: f64,
    #[doc = " Observation time as ISO 8601 UTC string."]
    pub obs_time: *mut ::std::os::raw::c_char,
    #[doc = " Right ascension (degrees)."]
    pub ra_deg: f64,
    #[doc = " Declination (degrees)."]
    pub dec_deg: f64,
    #[doc = " RA·cos(Dec) uncertainty (arcseconds). NaN if unavailable."]
    pub rms_ra_arcsec: f64,
    #[doc = " Dec uncertainty (arcseconds). NaN if unavailable."]
    pub rms_dec_arcsec: f64,
    #[doc = " RA-Dec correlation coefficient [-1, 1]. NaN if unavailable."]
    pub rms_corr: f64,
    #[doc = " Star catalog used for astrometric reduction (nullable)."]
    pub ast_cat: *mut ::std::os::raw::c_char,
    #[doc = " Apparent magnitude. NaN if unavailable."]
    pub mag: f64,
    #[doc = " Magnitude uncertainty. NaN if unavailable."]
    pub rms_mag: f64,
    #[doc = " Photometric passband (nullable)."]
    pub band: *mut ::std::os::raw::c_char,
    #[doc = " Photometric catalog (nullable)."]
    pub phot_cat: *mut ::std::os::raw::c_char,
    #[doc = " Photometric aperture (arcseconds). NaN if unavailable."]
    pub phot_ap: f64,
    #[doc = " log10(SNR) of the detection. NaN if unavailable."]
    pub log_snr: f64,
    #[doc = " Seeing FWHM (arcseconds). NaN if unavailable."]
    pub seeing: f64,
    #[doc = " Exposure time (seconds). NaN if unavailable."]
    pub exp: f64,
    #[doc = " RMS of astrometric fit (arcseconds). NaN if unavailable."]
    pub rms_fit: f64,
    #[doc = " Number of reference stars in astrometric fit. -1 if unavailable."]
    pub n_stars: i32,
    #[doc = " MPC note flags (nullable)."]
    pub notes: *mut ::std::os::raw::c_char,
    #[doc = " Free-text observer remarks (nullable)."]
    pub remarks: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanObservation"][::std::mem::size_of::<EmpyreanObservation>() - 264usize];
    ["Alignment of EmpyreanObservation"][::std::mem::align_of::<EmpyreanObservation>() - 8usize];
    ["Offset of field: EmpyreanObservation::perm_id"]
        [::std::mem::offset_of!(EmpyreanObservation, perm_id) - 0usize];
    ["Offset of field: EmpyreanObservation::prov_id"]
        [::std::mem::offset_of!(EmpyreanObservation, prov_id) - 8usize];
    ["Offset of field: EmpyreanObservation::trk_sub"]
        [::std::mem::offset_of!(EmpyreanObservation, trk_sub) - 16usize];
    ["Offset of field: EmpyreanObservation::obs_id"]
        [::std::mem::offset_of!(EmpyreanObservation, obs_id) - 24usize];
    ["Offset of field: EmpyreanObservation::obs_sub_id"]
        [::std::mem::offset_of!(EmpyreanObservation, obs_sub_id) - 32usize];
    ["Offset of field: EmpyreanObservation::trk_id"]
        [::std::mem::offset_of!(EmpyreanObservation, trk_id) - 40usize];
    ["Offset of field: EmpyreanObservation::obs_code"]
        [::std::mem::offset_of!(EmpyreanObservation, obs_code) - 48usize];
    ["Offset of field: EmpyreanObservation::mode"]
        [::std::mem::offset_of!(EmpyreanObservation, mode) - 56usize];
    ["Offset of field: EmpyreanObservation::prog"]
        [::std::mem::offset_of!(EmpyreanObservation, prog) - 64usize];
    ["Offset of field: EmpyreanObservation::sys"]
        [::std::mem::offset_of!(EmpyreanObservation, sys) - 72usize];
    ["Offset of field: EmpyreanObservation::ctr"]
        [::std::mem::offset_of!(EmpyreanObservation, ctr) - 80usize];
    ["Offset of field: EmpyreanObservation::pos1"]
        [::std::mem::offset_of!(EmpyreanObservation, pos1) - 88usize];
    ["Offset of field: EmpyreanObservation::pos2"]
        [::std::mem::offset_of!(EmpyreanObservation, pos2) - 96usize];
    ["Offset of field: EmpyreanObservation::pos3"]
        [::std::mem::offset_of!(EmpyreanObservation, pos3) - 104usize];
    ["Offset of field: EmpyreanObservation::obs_time"]
        [::std::mem::offset_of!(EmpyreanObservation, obs_time) - 112usize];
    ["Offset of field: EmpyreanObservation::ra_deg"]
        [::std::mem::offset_of!(EmpyreanObservation, ra_deg) - 120usize];
    ["Offset of field: EmpyreanObservation::dec_deg"]
        [::std::mem::offset_of!(EmpyreanObservation, dec_deg) - 128usize];
    ["Offset of field: EmpyreanObservation::rms_ra_arcsec"]
        [::std::mem::offset_of!(EmpyreanObservation, rms_ra_arcsec) - 136usize];
    ["Offset of field: EmpyreanObservation::rms_dec_arcsec"]
        [::std::mem::offset_of!(EmpyreanObservation, rms_dec_arcsec) - 144usize];
    ["Offset of field: EmpyreanObservation::rms_corr"]
        [::std::mem::offset_of!(EmpyreanObservation, rms_corr) - 152usize];
    ["Offset of field: EmpyreanObservation::ast_cat"]
        [::std::mem::offset_of!(EmpyreanObservation, ast_cat) - 160usize];
    ["Offset of field: EmpyreanObservation::mag"]
        [::std::mem::offset_of!(EmpyreanObservation, mag) - 168usize];
    ["Offset of field: EmpyreanObservation::rms_mag"]
        [::std::mem::offset_of!(EmpyreanObservation, rms_mag) - 176usize];
    ["Offset of field: EmpyreanObservation::band"]
        [::std::mem::offset_of!(EmpyreanObservation, band) - 184usize];
    ["Offset of field: EmpyreanObservation::phot_cat"]
        [::std::mem::offset_of!(EmpyreanObservation, phot_cat) - 192usize];
    ["Offset of field: EmpyreanObservation::phot_ap"]
        [::std::mem::offset_of!(EmpyreanObservation, phot_ap) - 200usize];
    ["Offset of field: EmpyreanObservation::log_snr"]
        [::std::mem::offset_of!(EmpyreanObservation, log_snr) - 208usize];
    ["Offset of field: EmpyreanObservation::seeing"]
        [::std::mem::offset_of!(EmpyreanObservation, seeing) - 216usize];
    ["Offset of field: EmpyreanObservation::exp"]
        [::std::mem::offset_of!(EmpyreanObservation, exp) - 224usize];
    ["Offset of field: EmpyreanObservation::rms_fit"]
        [::std::mem::offset_of!(EmpyreanObservation, rms_fit) - 232usize];
    ["Offset of field: EmpyreanObservation::n_stars"]
        [::std::mem::offset_of!(EmpyreanObservation, n_stars) - 240usize];
    ["Offset of field: EmpyreanObservation::notes"]
        [::std::mem::offset_of!(EmpyreanObservation, notes) - 248usize];
    ["Offset of field: EmpyreanObservation::remarks"]
        [::std::mem::offset_of!(EmpyreanObservation, remarks) - 256usize];
};
impl Default for EmpyreanObservation {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " A single radar (delay or Doppler) observation for orbit determination —\n the ADES `<radar>` schema.\n\n ADES models radar astrometry as its own top-level table, parallel to\n `<optical>` (not as an optical `mode`). A record carries a round-trip\n time **delay** *or* a **Doppler** shift (the ADES `RadarValue` is an\n XSD `<choice>`), referred to a transmitting (`trx`) and receiving\n (`rcv`) station — equal for a monostatic observation, distinct for a\n bistatic one.\n\n **Units are ADES-native through this FFI — the C ABI performs ZERO unit\n conversion.** The delay *value* is in **seconds** while its uncertainty\n `rms_delay_microseconds` is in **microseconds** (this asymmetry is\n intentional in the ADES schema, verified against the IAU-ADES\n `a4179_radar` reference data and the JPL SSD radar API); Doppler value\n and uncertainty are both in **Hz**; `frq_mhz` is in **MHz**. The single\n SI normalisation happens once downstream in scott's\n `Observation::from_radar`, never here.\n\n String fields are nullable (`null` pointer = absent). The `trx`/`rcv`\n station codes are fixed-size 4-byte null-padded (like `obs_code`).\n Absent f64 fields use `f64::NAN`. The `com` flag is a tri-state `i8`.\n No field is silently zeroed or defaulted.\n\n Mirrors scott's `RadarObservation` field-for-field."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanRadarObservation {
    #[doc = " IAU permanent designation (nullable)."]
    pub perm_id: *mut ::std::os::raw::c_char,
    #[doc = " MPC provisional designation (nullable)."]
    pub prov_id: *mut ::std::os::raw::c_char,
    #[doc = " Observer-assigned tracklet identifier (nullable)."]
    pub trk_sub: *mut ::std::os::raw::c_char,
    #[doc = " MPC station code of the **transmitting** antenna (ADES `trx`),\n null-padded to 4 bytes."]
    pub trx: [u8; 4usize],
    #[doc = " MPC station code of the **receiving** antenna (ADES `rcv`),\n null-padded to 4 bytes. Equal to `trx` for a monostatic\n observation; differs for a bistatic one."]
    pub rcv: [u8; 4usize],
    #[doc = " Observation epoch as an ISO 8601 UTC string. For radar this is the\n **receive** epoch (the time the returned signal is recorded).\n Required, non-null."]
    pub obs_time: *mut ::std::os::raw::c_char,
    #[doc = " Measurement kind: `EMPYREAN_RADAR_KIND_DELAY` (0) or\n `EMPYREAN_RADAR_KIND_DOPPLER` (1). Selects which value pair is live."]
    pub kind: u8,
    #[doc = " Round-trip time delay in **seconds** (ADES-native). Valid iff\n `kind == EMPYREAN_RADAR_KIND_DELAY`, else `f64::NAN`."]
    pub delay_seconds: f64,
    #[doc = " 1σ uncertainty of the delay in **microseconds** (ADES-native; the\n asymmetry vs `delay_seconds` is intentional). Valid iff\n `kind == EMPYREAN_RADAR_KIND_DELAY`, else `f64::NAN`."]
    pub rms_delay_microseconds: f64,
    #[doc = " Doppler shift in **Hz** (ADES-native, signed). Valid iff\n `kind == EMPYREAN_RADAR_KIND_DOPPLER`, else `f64::NAN`."]
    pub doppler_hz: f64,
    #[doc = " 1σ uncertainty of the Doppler shift in **Hz** (ADES-native). Valid\n iff `kind == EMPYREAN_RADAR_KIND_DOPPLER`, else `f64::NAN`."]
    pub rms_doppler_hz: f64,
    #[doc = " Transmit carrier reference frequency in **MHz** (ADES `frq`).\n Required; relates a Doppler shift to a range rate."]
    pub frq_mhz: f64,
    #[doc = " Center-of-mass flag (ADES `com`), tri-state: `-1` = absent,\n `0` = false (peak-power / leading-edge reduction), `1` = true\n (reduced to target center of mass). Mirrors `Option<bool>`; a\n missing flag MUST map to `-1` (never `0`) — the ADES center-of-mass\n default is applied explicitly downstream, not silently here."]
    pub com: i8,
    #[doc = " log10(SNR) of the echo, if reported. `f64::NAN` if absent."]
    pub log_snr: f64,
    #[doc = " Free-text observer remarks (nullable)."]
    pub remarks: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanRadarObservation"]
        [::std::mem::size_of::<EmpyreanRadarObservation>() - 112usize];
    ["Alignment of EmpyreanRadarObservation"]
        [::std::mem::align_of::<EmpyreanRadarObservation>() - 8usize];
    ["Offset of field: EmpyreanRadarObservation::perm_id"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, perm_id) - 0usize];
    ["Offset of field: EmpyreanRadarObservation::prov_id"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, prov_id) - 8usize];
    ["Offset of field: EmpyreanRadarObservation::trk_sub"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, trk_sub) - 16usize];
    ["Offset of field: EmpyreanRadarObservation::trx"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, trx) - 24usize];
    ["Offset of field: EmpyreanRadarObservation::rcv"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, rcv) - 28usize];
    ["Offset of field: EmpyreanRadarObservation::obs_time"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, obs_time) - 32usize];
    ["Offset of field: EmpyreanRadarObservation::kind"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, kind) - 40usize];
    ["Offset of field: EmpyreanRadarObservation::delay_seconds"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, delay_seconds) - 48usize];
    ["Offset of field: EmpyreanRadarObservation::rms_delay_microseconds"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, rms_delay_microseconds) - 56usize];
    ["Offset of field: EmpyreanRadarObservation::doppler_hz"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, doppler_hz) - 64usize];
    ["Offset of field: EmpyreanRadarObservation::rms_doppler_hz"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, rms_doppler_hz) - 72usize];
    ["Offset of field: EmpyreanRadarObservation::frq_mhz"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, frq_mhz) - 80usize];
    ["Offset of field: EmpyreanRadarObservation::com"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, com) - 88usize];
    ["Offset of field: EmpyreanRadarObservation::log_snr"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, log_snr) - 96usize];
    ["Offset of field: EmpyreanRadarObservation::remarks"]
        [::std::mem::offset_of!(EmpyreanRadarObservation, remarks) - 104usize];
};
impl Default for EmpyreanRadarObservation {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " One element of [`EmpyreanWeightingConfig::additional_layers`].\n Tagged-union shape: the active fields depend on `kind`."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanWeightingLayer {
    #[doc = " Layer kind discriminator — one of\n `EMPYREAN_WEIGHTING_LAYER_*`."]
    pub kind: i32,
    #[doc = " MPC observatory code, null-padded to 4 bytes."]
    pub obs_code: [u8; 4usize],
    #[doc = " 1σ RA·cos(δ) in arcsec."]
    pub sigma_ra_arcsec: f64,
    #[doc = " 1σ Dec in arcsec."]
    pub sigma_dec_arcsec: f64,
    #[doc = " Start of applicable time range (MJD TDB). NaN = unbounded."]
    pub start_epoch_mjd_tdb: f64,
    #[doc = " End of applicable time range (MJD TDB). NaN = unbounded."]
    pub end_epoch_mjd_tdb: f64,
    #[doc = " Scale factor on the resulting weight. 0.0 → upstream default (1.0)."]
    pub scale: f64,
    #[doc = " Maximum gap between observations to count as the same night\n (days). 0.0 → upstream default (0.5)."]
    pub max_gap_days: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanWeightingLayer"][::std::mem::size_of::<EmpyreanWeightingLayer>() - 56usize];
    ["Alignment of EmpyreanWeightingLayer"]
        [::std::mem::align_of::<EmpyreanWeightingLayer>() - 8usize];
    ["Offset of field: EmpyreanWeightingLayer::kind"]
        [::std::mem::offset_of!(EmpyreanWeightingLayer, kind) - 0usize];
    ["Offset of field: EmpyreanWeightingLayer::obs_code"]
        [::std::mem::offset_of!(EmpyreanWeightingLayer, obs_code) - 4usize];
    ["Offset of field: EmpyreanWeightingLayer::sigma_ra_arcsec"]
        [::std::mem::offset_of!(EmpyreanWeightingLayer, sigma_ra_arcsec) - 8usize];
    ["Offset of field: EmpyreanWeightingLayer::sigma_dec_arcsec"]
        [::std::mem::offset_of!(EmpyreanWeightingLayer, sigma_dec_arcsec) - 16usize];
    ["Offset of field: EmpyreanWeightingLayer::start_epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanWeightingLayer, start_epoch_mjd_tdb) - 24usize];
    ["Offset of field: EmpyreanWeightingLayer::end_epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanWeightingLayer, end_epoch_mjd_tdb) - 32usize];
    ["Offset of field: EmpyreanWeightingLayer::scale"]
        [::std::mem::offset_of!(EmpyreanWeightingLayer, scale) - 40usize];
    ["Offset of field: EmpyreanWeightingLayer::max_gap_days"]
        [::std::mem::offset_of!(EmpyreanWeightingLayer, max_gap_days) - 48usize];
};
#[doc = " Weighting configuration. Mirrors\n [`scott::weighting::WeightingConfig`] structurally; extends it\n with an `enabled` toggle and a preset selector for the common\n case of \"use the production preset\" without constructing layers\n by hand.\n\n `enabled = 0` runs OD with uniform 1″ weighting (the old\n `use_weighting = 0` behavior). `enabled = 1` activates the\n pipeline; the resulting layer chain is the preset's layers\n followed by `additional_layers` (allows e.g. VFC17 + per-survey\n override)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanWeightingConfig {
    #[doc = " 1 = enabled (default), 0 = uniform 1″ weighting."]
    pub enabled: u8,
    #[doc = " Preset selector. One of `EMPYREAN_WEIGHTING_PRESET_*`.\n Default `0` (NONE) means \"use additional_layers only\";\n when `enabled = 1` and zero-init, the conversion code\n substitutes `VFC17` so default-zero structs keep the\n production behavior."]
    pub preset: u8,
    #[doc = " Default 1σ used when no rule applies (arcsec). 0.0 →\n upstream default (1.0). Ignored when preset != NONE."]
    pub default_sigma_arcsec: f64,
    #[doc = " Sigma combination policy. -1 = use the preset's policy;\n otherwise one of `EMPYREAN_SIGMA_POLICY_*`."]
    pub sigma_policy: i32,
    #[doc = " Pointer to additional layers appended to the preset's chain.\n Non-owning — caller keeps the array alive for the OD call."]
    pub additional_layers: *const EmpyreanWeightingLayer,
    pub num_additional_layers: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanWeightingConfig"][::std::mem::size_of::<EmpyreanWeightingConfig>() - 40usize];
    ["Alignment of EmpyreanWeightingConfig"]
        [::std::mem::align_of::<EmpyreanWeightingConfig>() - 8usize];
    ["Offset of field: EmpyreanWeightingConfig::enabled"]
        [::std::mem::offset_of!(EmpyreanWeightingConfig, enabled) - 0usize];
    ["Offset of field: EmpyreanWeightingConfig::preset"]
        [::std::mem::offset_of!(EmpyreanWeightingConfig, preset) - 1usize];
    ["Offset of field: EmpyreanWeightingConfig::default_sigma_arcsec"]
        [::std::mem::offset_of!(EmpyreanWeightingConfig, default_sigma_arcsec) - 8usize];
    ["Offset of field: EmpyreanWeightingConfig::sigma_policy"]
        [::std::mem::offset_of!(EmpyreanWeightingConfig, sigma_policy) - 16usize];
    ["Offset of field: EmpyreanWeightingConfig::additional_layers"]
        [::std::mem::offset_of!(EmpyreanWeightingConfig, additional_layers) - 24usize];
    ["Offset of field: EmpyreanWeightingConfig::num_additional_layers"]
        [::std::mem::offset_of!(EmpyreanWeightingConfig, num_additional_layers) - 32usize];
};
impl Default for EmpyreanWeightingConfig {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Catalog-bias-correction configuration. Mirrors scott's\n `Option<Arc<DebiasingTable>>` field on `ODConfig`.\n\n `enabled = 0` runs OD with no catalog debiasing (matches the old\n `use_debiasing = 0` behavior). `enabled = 1` activates the\n EFCC2020 pipeline; the table is loaded from `bias_dat_path` if\n non-NULL, otherwise from the DataManager-default location at the\n requested `resolution`."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanDebiasingConfig {
    #[doc = " 1 = on (default), 0 = no debiasing."]
    pub enabled: u8,
    #[doc = " Table identity. Currently `EFCC2020` only."]
    pub table_id: i32,
    #[doc = " `EMPYREAN_DEBIASING_RESOLUTION_*` — Standard (~35 MB) or Hires (~567 MB)."]
    pub resolution: i32,
    #[doc = " Optional path to the bias.dat file. NULL = DataManager default.\n Non-owning."]
    pub bias_dat_path: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanDebiasingConfig"][::std::mem::size_of::<EmpyreanDebiasingConfig>() - 24usize];
    ["Alignment of EmpyreanDebiasingConfig"]
        [::std::mem::align_of::<EmpyreanDebiasingConfig>() - 8usize];
    ["Offset of field: EmpyreanDebiasingConfig::enabled"]
        [::std::mem::offset_of!(EmpyreanDebiasingConfig, enabled) - 0usize];
    ["Offset of field: EmpyreanDebiasingConfig::table_id"]
        [::std::mem::offset_of!(EmpyreanDebiasingConfig, table_id) - 4usize];
    ["Offset of field: EmpyreanDebiasingConfig::resolution"]
        [::std::mem::offset_of!(EmpyreanDebiasingConfig, resolution) - 8usize];
    ["Offset of field: EmpyreanDebiasingConfig::bias_dat_path"]
        [::std::mem::offset_of!(EmpyreanDebiasingConfig, bias_dat_path) - 16usize];
};
impl Default for EmpyreanDebiasingConfig {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Origin-policy selector for the OD pipeline (mirrors\n [`OriginPolicy`]).\n\n `policy = EMPYREAN_ORIGIN_POLICY_AUTO` ignores `explicit_naif`;\n `_EXPLICIT` interprets the field as the NAIF body ID of the central\n body to pin to (e.g. 10 = Sun, 399 = Earth, 4 = Mars-barycenter)."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanOriginPolicy {
    pub policy: i32,
    pub explicit_naif: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanOriginPolicy"][::std::mem::size_of::<EmpyreanOriginPolicy>() - 8usize];
    ["Alignment of EmpyreanOriginPolicy"][::std::mem::align_of::<EmpyreanOriginPolicy>() - 4usize];
    ["Offset of field: EmpyreanOriginPolicy::policy"]
        [::std::mem::offset_of!(EmpyreanOriginPolicy, policy) - 0usize];
    ["Offset of field: EmpyreanOriginPolicy::explicit_naif"]
        [::std::mem::offset_of!(EmpyreanOriginPolicy, explicit_naif) - 4usize];
};
#[doc = " IOD ranging tuning (mirrors the IOD section of [`scott::od::ODConfig`]).\n\n Nested rather than flattened so callers can pass the bundle around\n as a single value and zero-init pulls the upstream defaults\n uniformly. Sentinel rule: `0` / `0.0` requests the upstream default;\n `opposition_gap_days < 0` disables opposition splitting."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanIODConfig {
    pub max_triplet_attempts: u32,
    pub max_triplet_span_days: f64,
    #[doc = " `-1.0` disables opposition splitting; `0.0` uses upstream default (90)."]
    pub opposition_gap_days: f64,
    pub max_iod_arc_days: f64,
    pub curvature_snr_threshold: f64,
    pub max_iod_fractional_sigma_a: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanIODConfig"][::std::mem::size_of::<EmpyreanIODConfig>() - 48usize];
    ["Alignment of EmpyreanIODConfig"][::std::mem::align_of::<EmpyreanIODConfig>() - 8usize];
    ["Offset of field: EmpyreanIODConfig::max_triplet_attempts"]
        [::std::mem::offset_of!(EmpyreanIODConfig, max_triplet_attempts) - 0usize];
    ["Offset of field: EmpyreanIODConfig::max_triplet_span_days"]
        [::std::mem::offset_of!(EmpyreanIODConfig, max_triplet_span_days) - 8usize];
    ["Offset of field: EmpyreanIODConfig::opposition_gap_days"]
        [::std::mem::offset_of!(EmpyreanIODConfig, opposition_gap_days) - 16usize];
    ["Offset of field: EmpyreanIODConfig::max_iod_arc_days"]
        [::std::mem::offset_of!(EmpyreanIODConfig, max_iod_arc_days) - 24usize];
    ["Offset of field: EmpyreanIODConfig::curvature_snr_threshold"]
        [::std::mem::offset_of!(EmpyreanIODConfig, curvature_snr_threshold) - 32usize];
    ["Offset of field: EmpyreanIODConfig::max_iod_fractional_sigma_a"]
        [::std::mem::offset_of!(EmpyreanIODConfig, max_iod_fractional_sigma_a) - 40usize];
};
#[doc = " Output epoch specification (mirrors [`OutputEpoch`]).\n\n The `mode` field determines which variant is active:\n `EMPYREAN_OUTPUT_EPOCH_MID_ARC` / `_LAST_OBSERVATION` / `_IOD_EPOCH`\n ignore `explicit_mjd_tdb`; `_EXPLICIT` reads the field as MJD TDB."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanOutputEpoch {
    pub mode: i32,
    pub explicit_mjd_tdb: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanOutputEpoch"][::std::mem::size_of::<EmpyreanOutputEpoch>() - 16usize];
    ["Alignment of EmpyreanOutputEpoch"][::std::mem::align_of::<EmpyreanOutputEpoch>() - 8usize];
    ["Offset of field: EmpyreanOutputEpoch::mode"]
        [::std::mem::offset_of!(EmpyreanOutputEpoch, mode) - 0usize];
    ["Offset of field: EmpyreanOutputEpoch::explicit_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanOutputEpoch, explicit_mjd_tdb) - 8usize];
};
#[doc = " Auto-escalation policy for [`SolveForParams::Auto`]\n (mirrors [`scott::od::AutoEscalationPolicy`]). Sentinel: `0` /\n `0.0` → upstream default."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanAutoEscalationPolicy {
    pub reduced_chi2: f64,
    pub at_ct_ratio: f64,
    pub min_arc_days: f64,
    pub min_n_obs: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanAutoEscalationPolicy"]
        [::std::mem::size_of::<EmpyreanAutoEscalationPolicy>() - 32usize];
    ["Alignment of EmpyreanAutoEscalationPolicy"]
        [::std::mem::align_of::<EmpyreanAutoEscalationPolicy>() - 8usize];
    ["Offset of field: EmpyreanAutoEscalationPolicy::reduced_chi2"]
        [::std::mem::offset_of!(EmpyreanAutoEscalationPolicy, reduced_chi2) - 0usize];
    ["Offset of field: EmpyreanAutoEscalationPolicy::at_ct_ratio"]
        [::std::mem::offset_of!(EmpyreanAutoEscalationPolicy, at_ct_ratio) - 8usize];
    ["Offset of field: EmpyreanAutoEscalationPolicy::min_arc_days"]
        [::std::mem::offset_of!(EmpyreanAutoEscalationPolicy, min_arc_days) - 16usize];
    ["Offset of field: EmpyreanAutoEscalationPolicy::min_n_obs"]
        [::std::mem::offset_of!(EmpyreanAutoEscalationPolicy, min_n_obs) - 24usize];
};
#[doc = " Acceptability thresholds for the post-DC fit-quality checks\n (mirrors [`scott::od::AcceptabilityThresholds`]). Sentinel: `0.0` →\n upstream default."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanAcceptabilityThresholds {
    pub reduced_chi2: f64,
    pub rms_arcsec: f64,
    pub at_ct_ratio: f64,
    pub min_arc_days: f64,
    pub fractional_sigma_a: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanAcceptabilityThresholds"]
        [::std::mem::size_of::<EmpyreanAcceptabilityThresholds>() - 40usize];
    ["Alignment of EmpyreanAcceptabilityThresholds"]
        [::std::mem::align_of::<EmpyreanAcceptabilityThresholds>() - 8usize];
    ["Offset of field: EmpyreanAcceptabilityThresholds::reduced_chi2"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityThresholds, reduced_chi2) - 0usize];
    ["Offset of field: EmpyreanAcceptabilityThresholds::rms_arcsec"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityThresholds, rms_arcsec) - 8usize];
    ["Offset of field: EmpyreanAcceptabilityThresholds::at_ct_ratio"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityThresholds, at_ct_ratio) - 16usize];
    ["Offset of field: EmpyreanAcceptabilityThresholds::min_arc_days"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityThresholds, min_arc_days) - 24usize];
    ["Offset of field: EmpyreanAcceptabilityThresholds::fractional_sigma_a"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityThresholds, fractional_sigma_a) - 32usize];
};
#[doc = " Per-station RA/Dec bias-fit configuration (mirrors\n [`scott::nuisance::BiasKind::StationRaDec`]).\n\n Activated by [`EmpyreanODConfig::fit_station_biases`]. Per-station\n sigma overrides and `BiasScope` filtering aren't carried across the\n C ABI yet — every active station uses `sigma_prior_arcsec` and the\n scope is always [`BiasScope::AllStations`]. Reach for the\n empyrean-core Rust API when you need finer control."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanStationRaDecConfig {
    #[doc = " Default 1-sigma prior on the RA / Dec offset (arcsec). Default = 0.3."]
    pub sigma_prior_arcsec: f64,
    #[doc = " Minimum observations per station for a bias parameter to be\n allocated. Stations below this threshold contribute observations\n at face value. 0 → upstream default (5)."]
    pub min_obs_per_station: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanStationRaDecConfig"]
        [::std::mem::size_of::<EmpyreanStationRaDecConfig>() - 16usize];
    ["Alignment of EmpyreanStationRaDecConfig"]
        [::std::mem::align_of::<EmpyreanStationRaDecConfig>() - 8usize];
    ["Offset of field: EmpyreanStationRaDecConfig::sigma_prior_arcsec"]
        [::std::mem::offset_of!(EmpyreanStationRaDecConfig, sigma_prior_arcsec) - 0usize];
    ["Offset of field: EmpyreanStationRaDecConfig::min_obs_per_station"]
        [::std::mem::offset_of!(EmpyreanStationRaDecConfig, min_obs_per_station) - 8usize];
};
#[doc = " Outlier rejection configuration. Selects between two strategies via\n the [`kind`](Self::kind) discriminator:\n\n - `kind = EMPYREAN_REJECTION_KIND_ADAPTIVE` (default): mirrors\n   [`scott::rejection::AdaptiveRejectionConfig`]. Reads\n   `chi2_base` / `lambda` / `max_threshold`. Sentinels:\n   `chi2_base = 0.0` → 9.21, `lambda < 0` → 1.0,\n   `max_threshold = 0.0` → 100.0.\n - `kind = EMPYREAN_REJECTION_KIND_CMC2003`: mirrors\n   [`scott::rejection::CMC2003Config`]. Reads `chi2_rej` / `chi2_rec`\n   (the upper / lower hysteresis thresholds). Sentinels:\n   `chi2_rej = 0.0` → 8.0, `chi2_rec = 0.0` → 7.0.\n\n `enabled = 0` runs OD without any rejection pass — the strategy\n fields are ignored. `enabled = 1` activates rejection."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanRejectionConfig {
    #[doc = " 1 = run rejection (default), 0 = skip."]
    pub enabled: u8,
    #[doc = " Strategy selector — one of the `EMPYREAN_REJECTION_KIND_*`\n constants. Default `0` (Adaptive) keeps existing C callers\n working without code changes."]
    pub kind: u8,
    pub chi2_base: f64,
    #[doc = " `-1.0` selects the upstream default (1.0); negative values are\n otherwise valid and disable adaptation when 0.0."]
    pub lambda: f64,
    pub max_threshold: f64,
    #[doc = " CMC2003 upper threshold (reject when χ² > chi2_rej). 0.0 →\n upstream default (8.0). Ignored unless `kind ==\n EMPYREAN_REJECTION_KIND_CMC2003`."]
    pub chi2_rej: f64,
    #[doc = " CMC2003 lower threshold (recover when χ² < chi2_rec). 0.0 →\n upstream default (7.0). Must be strictly less than `chi2_rej`\n for hysteresis to break cycles. Ignored unless `kind ==\n EMPYREAN_REJECTION_KIND_CMC2003`."]
    pub chi2_rec: f64,
    #[doc = " Maximum rejection-refit passes. 0 → upstream default (3)."]
    pub max_passes: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanRejectionConfig"][::std::mem::size_of::<EmpyreanRejectionConfig>() - 56usize];
    ["Alignment of EmpyreanRejectionConfig"]
        [::std::mem::align_of::<EmpyreanRejectionConfig>() - 8usize];
    ["Offset of field: EmpyreanRejectionConfig::enabled"]
        [::std::mem::offset_of!(EmpyreanRejectionConfig, enabled) - 0usize];
    ["Offset of field: EmpyreanRejectionConfig::kind"]
        [::std::mem::offset_of!(EmpyreanRejectionConfig, kind) - 1usize];
    ["Offset of field: EmpyreanRejectionConfig::chi2_base"]
        [::std::mem::offset_of!(EmpyreanRejectionConfig, chi2_base) - 8usize];
    ["Offset of field: EmpyreanRejectionConfig::lambda"]
        [::std::mem::offset_of!(EmpyreanRejectionConfig, lambda) - 16usize];
    ["Offset of field: EmpyreanRejectionConfig::max_threshold"]
        [::std::mem::offset_of!(EmpyreanRejectionConfig, max_threshold) - 24usize];
    ["Offset of field: EmpyreanRejectionConfig::chi2_rej"]
        [::std::mem::offset_of!(EmpyreanRejectionConfig, chi2_rej) - 32usize];
    ["Offset of field: EmpyreanRejectionConfig::chi2_rec"]
        [::std::mem::offset_of!(EmpyreanRejectionConfig, chi2_rec) - 40usize];
    ["Offset of field: EmpyreanRejectionConfig::max_passes"]
        [::std::mem::offset_of!(EmpyreanRejectionConfig, max_passes) - 48usize];
};
#[doc = " Result of orbit determination (determine or refine).\n\n Per-axis solve-for flags (mirrors scott's `SolveFor`). Read only when\n [`EmpyreanODConfig::solve_for`] is [`EMPYREAN_SOLVE_FOR_EXPLICIT`]; the\n three coarse `EMPYREAN_SOLVE_FOR_*` codes cover the common shapes\n without it. Each flag turns on a wide-STM axis, subject to its own\n precondition (a declared prior on the orbit) enforced by scott."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanSolveFor {
    #[doc = " Solve the Marsden A1/A2/A3 block (requires a non-grav covariance)."]
    pub marsden: u8,
    #[doc = " Solve the non-grav time delay DT (requires `marsden` + a DT prior)."]
    pub dt: u8,
    #[doc = " Solve the SRP AMRAT (requires an SRP AMRAT prior)."]
    pub amrat: u8,
    #[doc = " Number of thrust Δv segments to solve (3 columns each; 0 = none)."]
    pub thrust_segments: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanSolveFor"][::std::mem::size_of::<EmpyreanSolveFor>() - 8usize];
    ["Alignment of EmpyreanSolveFor"][::std::mem::align_of::<EmpyreanSolveFor>() - 4usize];
    ["Offset of field: EmpyreanSolveFor::marsden"]
        [::std::mem::offset_of!(EmpyreanSolveFor, marsden) - 0usize];
    ["Offset of field: EmpyreanSolveFor::dt"]
        [::std::mem::offset_of!(EmpyreanSolveFor, dt) - 1usize];
    ["Offset of field: EmpyreanSolveFor::amrat"]
        [::std::mem::offset_of!(EmpyreanSolveFor, amrat) - 2usize];
    ["Offset of field: EmpyreanSolveFor::thrust_segments"]
        [::std::mem::offset_of!(EmpyreanSolveFor, thrust_segments) - 4usize];
};
#[doc = " Post-OD photometric-fit request (mirrors scott's `PhotometryConfig`).\n Enabled by [`EmpyreanODConfig::has_photometry`]; the fit runs after the\n orbit is solved and never touches the state (photometry has no\n astrometric partials). Zero-init reproduces scott's defaults."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanPhotometryConfig {
    #[doc = " Model to fit (`EMPYREAN_PHOTOMETRY_MODEL_*`). Default = Auto (0)."]
    pub model: i32,
    #[doc = " 1σ lightcurve scatter floor (mag). 0.0 → upstream default (0.2)."]
    pub sigma_lightcurve: f64,
    #[doc = " Include astrometrically-rejected observations' magnitudes. 0 = off."]
    pub include_rejected: u8,
    #[doc = " Max Huber-IRLS iterations. 0 → upstream default (30)."]
    pub max_irls_iterations: u32,
    #[doc = " Huber tuning constant. 0.0 → upstream default (1.5)."]
    pub huber_k: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanPhotometryConfig"]
        [::std::mem::size_of::<EmpyreanPhotometryConfig>() - 32usize];
    ["Alignment of EmpyreanPhotometryConfig"]
        [::std::mem::align_of::<EmpyreanPhotometryConfig>() - 8usize];
    ["Offset of field: EmpyreanPhotometryConfig::model"]
        [::std::mem::offset_of!(EmpyreanPhotometryConfig, model) - 0usize];
    ["Offset of field: EmpyreanPhotometryConfig::sigma_lightcurve"]
        [::std::mem::offset_of!(EmpyreanPhotometryConfig, sigma_lightcurve) - 8usize];
    ["Offset of field: EmpyreanPhotometryConfig::include_rejected"]
        [::std::mem::offset_of!(EmpyreanPhotometryConfig, include_rejected) - 16usize];
    ["Offset of field: EmpyreanPhotometryConfig::max_irls_iterations"]
        [::std::mem::offset_of!(EmpyreanPhotometryConfig, max_irls_iterations) - 20usize];
    ["Offset of field: EmpyreanPhotometryConfig::huber_k"]
        [::std::mem::offset_of!(EmpyreanPhotometryConfig, huber_k) - 24usize];
};
#[doc = " Orbit-determination configuration.\n\n Drives `empyrean_determine`, `empyrean_evaluate`, and `empyrean_refine`.\n Mirrors [`scott::od::ODConfig`](scott::od::ODConfig) **structurally** —\n where scott has a nested config (e.g. `auto_escalation`,\n `acceptability`), this surface keeps the same nesting via\n [`EmpyreanAutoEscalationPolicy`], [`EmpyreanAcceptabilityThresholds`],\n etc., so the C-side caller's mental model matches the upstream Rust\n type. Sentinel rule for primitive fields: `0` / `0.0` requests the\n upstream default; only the few fields documented inline (e.g.\n `opposition_gap_days < 0`, `lambda < 0`) carry their own special\n values.\n\n IOD strategy configs (Gauss / Herget / SystematicRanging /\n Refinement) are not exposed here — those are tens of internal\n tuning fields that don't translate cleanly. They always run with\n their upstream defaults; reach for the empyrean-core Rust API when\n you need to override them."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanODConfig {
    #[doc = " Force-model tier: 0=Approximate, 1=Basic, 2=Standard."]
    pub force_model: i32,
    #[doc = " Integrator truncation-error tolerance (interpreted by the\n active integrator backend — for the default GR15 this is the\n relative b₆ truncation tolerance). 0.0 → upstream default\n (1e-9)."]
    pub epsilon: f64,
    #[doc = " Maximum light-time iterations. 0 → upstream default (3)."]
    pub max_light_time_iterations: usize,
    #[doc = " Threads for batch operations. 0 → all available cores."]
    pub num_threads: usize,
    #[doc = " Output reference frame: 0=ICRF, 1=EclipticJ2000."]
    pub frame: i32,
    #[doc = " Observation weighting pipeline configuration. Zero-init = the\n production default (VFC17 + nightly de-weighting at floor-σ\n policy). See [`EmpyreanWeightingConfig`]."]
    pub weighting: EmpyreanWeightingConfig,
    #[doc = " Catalog-bias-correction configuration. Zero-init = the\n production default (EFCC2020 standard resolution, loaded from\n the DataManager default path). See [`EmpyreanDebiasingConfig`]."]
    pub debiasing: EmpyreanDebiasingConfig,
    #[doc = " Number of `excluded_perturbers` in [`excluded_perturbers_naif`]; 0 = none."]
    pub num_excluded_perturbers: usize,
    #[doc = " Pointer to `num_excluded_perturbers` NAIF body IDs to exclude\n from the perturber set (for self-determination of SB441-N16\n bodies). Non-owning — caller must keep the array alive for the\n duration of the OD call."]
    pub excluded_perturbers_naif: *const i32,
    #[doc = " Origin-policy selector. Zero-init = `Auto` (heliocentric → geo-\n centric Earth cascade). See [`EmpyreanOriginPolicy`]."]
    pub origin: EmpyreanOriginPolicy,
    pub iod: EmpyreanIODConfig,
    pub output_epoch: EmpyreanOutputEpoch,
    #[doc = " Maximum DC iterations. 0 → upstream default (100)."]
    pub max_iterations: u32,
    #[doc = " DC convergence tolerance on Δx^T N Δx. 0.0 → upstream default (0.1)."]
    pub convergence_tol: f64,
    #[doc = " Use STM-cached ephemeris updates for iterations 2+. 1 = on (default)."]
    pub use_stm_cache: u8,
    #[doc = " Solve-for parameter set (`EMPYREAN_SOLVE_FOR_*`). Default = Auto."]
    pub solve_for: i32,
    pub auto_escalation: EmpyreanAutoEscalationPolicy,
    pub acceptability: EmpyreanAcceptabilityThresholds,
    #[doc = " Schur-eliminate per-station RA/Dec biases. 1 = enable, 0 = off (default)."]
    pub fit_station_biases: u8,
    #[doc = " Per-station RA/Dec bias config. Honored only when\n [`fit_station_biases`] is non-zero."]
    pub station_radec: EmpyreanStationRaDecConfig,
    #[doc = " Use span-grouped Jacobian reuse on cache iterations. 0 = off (default)."]
    pub use_span_grouping: u8,
    pub rejection: EmpyreanRejectionConfig,
    #[doc = " Auto-select force-model tier from IOD elements. 0 = off (default)."]
    pub auto_force_model: u8,
    #[doc = " Output coordinate representation for the fitted orbit + covariance\n (`EMPYREAN_REPRESENTATION_*`). Default = Cartesian."]
    pub output_representation: i32,
    #[doc = " Per-axis solve-for flags, read ONLY when\n [`solve_for`](EmpyreanODConfig::solve_for) is\n [`EMPYREAN_SOLVE_FOR_EXPLICIT`]. The three coarse `solve_for` codes\n ignore this field."]
    pub solve_for_flags: EmpyreanSolveFor,
    #[doc = " Permit solving a thrust Δv segment whose burn window is not\n bracketed by observations (degenerate with the state; the Gates\n prior then carries it). 0 = refuse loudly (default)."]
    pub allow_unbracketed_maneuvers: u8,
    #[doc = " 1 to run the post-OD photometric fit; 0 = off (default). When 0,\n [`photometry`](EmpyreanODConfig::photometry) is ignored."]
    pub has_photometry: u8,
    #[doc = " Post-OD photometric-fit configuration. Honored only when\n [`has_photometry`](EmpyreanODConfig::has_photometry) is non-zero."]
    pub photometry: EmpyreanPhotometryConfig,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanODConfig"][::std::mem::size_of::<EmpyreanODConfig>() - 432usize];
    ["Alignment of EmpyreanODConfig"][::std::mem::align_of::<EmpyreanODConfig>() - 8usize];
    ["Offset of field: EmpyreanODConfig::force_model"]
        [::std::mem::offset_of!(EmpyreanODConfig, force_model) - 0usize];
    ["Offset of field: EmpyreanODConfig::epsilon"]
        [::std::mem::offset_of!(EmpyreanODConfig, epsilon) - 8usize];
    ["Offset of field: EmpyreanODConfig::max_light_time_iterations"]
        [::std::mem::offset_of!(EmpyreanODConfig, max_light_time_iterations) - 16usize];
    ["Offset of field: EmpyreanODConfig::num_threads"]
        [::std::mem::offset_of!(EmpyreanODConfig, num_threads) - 24usize];
    ["Offset of field: EmpyreanODConfig::frame"]
        [::std::mem::offset_of!(EmpyreanODConfig, frame) - 32usize];
    ["Offset of field: EmpyreanODConfig::weighting"]
        [::std::mem::offset_of!(EmpyreanODConfig, weighting) - 40usize];
    ["Offset of field: EmpyreanODConfig::debiasing"]
        [::std::mem::offset_of!(EmpyreanODConfig, debiasing) - 80usize];
    ["Offset of field: EmpyreanODConfig::num_excluded_perturbers"]
        [::std::mem::offset_of!(EmpyreanODConfig, num_excluded_perturbers) - 104usize];
    ["Offset of field: EmpyreanODConfig::excluded_perturbers_naif"]
        [::std::mem::offset_of!(EmpyreanODConfig, excluded_perturbers_naif) - 112usize];
    ["Offset of field: EmpyreanODConfig::origin"]
        [::std::mem::offset_of!(EmpyreanODConfig, origin) - 120usize];
    ["Offset of field: EmpyreanODConfig::iod"]
        [::std::mem::offset_of!(EmpyreanODConfig, iod) - 128usize];
    ["Offset of field: EmpyreanODConfig::output_epoch"]
        [::std::mem::offset_of!(EmpyreanODConfig, output_epoch) - 176usize];
    ["Offset of field: EmpyreanODConfig::max_iterations"]
        [::std::mem::offset_of!(EmpyreanODConfig, max_iterations) - 192usize];
    ["Offset of field: EmpyreanODConfig::convergence_tol"]
        [::std::mem::offset_of!(EmpyreanODConfig, convergence_tol) - 200usize];
    ["Offset of field: EmpyreanODConfig::use_stm_cache"]
        [::std::mem::offset_of!(EmpyreanODConfig, use_stm_cache) - 208usize];
    ["Offset of field: EmpyreanODConfig::solve_for"]
        [::std::mem::offset_of!(EmpyreanODConfig, solve_for) - 212usize];
    ["Offset of field: EmpyreanODConfig::auto_escalation"]
        [::std::mem::offset_of!(EmpyreanODConfig, auto_escalation) - 216usize];
    ["Offset of field: EmpyreanODConfig::acceptability"]
        [::std::mem::offset_of!(EmpyreanODConfig, acceptability) - 248usize];
    ["Offset of field: EmpyreanODConfig::fit_station_biases"]
        [::std::mem::offset_of!(EmpyreanODConfig, fit_station_biases) - 288usize];
    ["Offset of field: EmpyreanODConfig::station_radec"]
        [::std::mem::offset_of!(EmpyreanODConfig, station_radec) - 296usize];
    ["Offset of field: EmpyreanODConfig::use_span_grouping"]
        [::std::mem::offset_of!(EmpyreanODConfig, use_span_grouping) - 312usize];
    ["Offset of field: EmpyreanODConfig::rejection"]
        [::std::mem::offset_of!(EmpyreanODConfig, rejection) - 320usize];
    ["Offset of field: EmpyreanODConfig::auto_force_model"]
        [::std::mem::offset_of!(EmpyreanODConfig, auto_force_model) - 376usize];
    ["Offset of field: EmpyreanODConfig::output_representation"]
        [::std::mem::offset_of!(EmpyreanODConfig, output_representation) - 380usize];
    ["Offset of field: EmpyreanODConfig::solve_for_flags"]
        [::std::mem::offset_of!(EmpyreanODConfig, solve_for_flags) - 384usize];
    ["Offset of field: EmpyreanODConfig::allow_unbracketed_maneuvers"]
        [::std::mem::offset_of!(EmpyreanODConfig, allow_unbracketed_maneuvers) - 392usize];
    ["Offset of field: EmpyreanODConfig::has_photometry"]
        [::std::mem::offset_of!(EmpyreanODConfig, has_photometry) - 393usize];
    ["Offset of field: EmpyreanODConfig::photometry"]
        [::std::mem::offset_of!(EmpyreanODConfig, photometry) - 400usize];
};
impl Default for EmpyreanODConfig {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Aggregate residual statistics.\n\n All angular quantities in arcseconds. NaN entries indicate the stat\n could not be computed (e.g. AT/CT RMS when no sky-motion rates were\n available, or weighted RMS when no weighting layer was active)."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanResidualSummary {
    pub num_obs: usize,
    pub num_selected: usize,
    pub num_rejected: usize,
    #[doc = " Total χ² over selected observations."]
    pub chi2: f64,
    #[doc = " Effective degrees of freedom (after subtracting solve-for params)."]
    pub dof: usize,
    #[doc = " Reduced χ² = chi2 / dof. NaN when dof ≤ 0."]
    pub reduced_chi2: f64,
    pub rms_ra_arcsec: f64,
    pub rms_dec_arcsec: f64,
    #[doc = " Combined RA·cosδ + Dec residual RMS (arcsec). Matches the\n find_orb / OrbFit `rms` reporting convention — a single\n number directly comparable across tools."]
    pub rms_combined_arcsec: f64,
    #[doc = " RMS weighted by the per-observation σ (matches scott's `weighted_rms`)."]
    pub weighted_rms_ra_arcsec: f64,
    pub weighted_rms_dec_arcsec: f64,
    #[doc = " Combined weighted RA·cosδ + Dec residual RMS (arcsec)."]
    pub weighted_rms_combined_arcsec: f64,
    pub mean_ra_arcsec: f64,
    pub mean_dec_arcsec: f64,
    pub std_ra_arcsec: f64,
    pub std_dec_arcsec: f64,
    #[doc = " RMS along-track residual (arcsec). NaN if no AT/CT data."]
    pub rms_along_track_arcsec: f64,
    #[doc = " RMS cross-track residual (arcsec). NaN if no AT/CT data."]
    pub rms_cross_track_arcsec: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanResidualSummary"]
        [::std::mem::size_of::<EmpyreanResidualSummary>() - 144usize];
    ["Alignment of EmpyreanResidualSummary"]
        [::std::mem::align_of::<EmpyreanResidualSummary>() - 8usize];
    ["Offset of field: EmpyreanResidualSummary::num_obs"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, num_obs) - 0usize];
    ["Offset of field: EmpyreanResidualSummary::num_selected"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, num_selected) - 8usize];
    ["Offset of field: EmpyreanResidualSummary::num_rejected"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, num_rejected) - 16usize];
    ["Offset of field: EmpyreanResidualSummary::chi2"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, chi2) - 24usize];
    ["Offset of field: EmpyreanResidualSummary::dof"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, dof) - 32usize];
    ["Offset of field: EmpyreanResidualSummary::reduced_chi2"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, reduced_chi2) - 40usize];
    ["Offset of field: EmpyreanResidualSummary::rms_ra_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, rms_ra_arcsec) - 48usize];
    ["Offset of field: EmpyreanResidualSummary::rms_dec_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, rms_dec_arcsec) - 56usize];
    ["Offset of field: EmpyreanResidualSummary::rms_combined_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, rms_combined_arcsec) - 64usize];
    ["Offset of field: EmpyreanResidualSummary::weighted_rms_ra_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, weighted_rms_ra_arcsec) - 72usize];
    ["Offset of field: EmpyreanResidualSummary::weighted_rms_dec_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, weighted_rms_dec_arcsec) - 80usize];
    ["Offset of field: EmpyreanResidualSummary::weighted_rms_combined_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, weighted_rms_combined_arcsec) - 88usize];
    ["Offset of field: EmpyreanResidualSummary::mean_ra_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, mean_ra_arcsec) - 96usize];
    ["Offset of field: EmpyreanResidualSummary::mean_dec_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, mean_dec_arcsec) - 104usize];
    ["Offset of field: EmpyreanResidualSummary::std_ra_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, std_ra_arcsec) - 112usize];
    ["Offset of field: EmpyreanResidualSummary::std_dec_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, std_dec_arcsec) - 120usize];
    ["Offset of field: EmpyreanResidualSummary::rms_along_track_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, rms_along_track_arcsec) - 128usize];
    ["Offset of field: EmpyreanResidualSummary::rms_cross_track_arcsec"]
        [::std::mem::offset_of!(EmpyreanResidualSummary, rms_cross_track_arcsec) - 136usize];
};
#[doc = " The fitted orbit's absolute solar-radiation-pressure slot, flattened\n for the C ABI. Mirrors the SRP fields the input `EmpyreanOrbit` carries\n so a fitted orbit's SRP force re-feeds off [`EmpyreanODResult::srp`] with\n no loss."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanSRPParams {
    #[doc = " Absolute area-to-mass ratio AMRAT (m²/kg) — the input prior plus any\n fitted correction."]
    pub amrat: f64,
    #[doc = " Radiation-pressure coefficient Cr, carried through unchanged."]
    pub cr: f64,
    #[doc = " 1 when `amrat_variance` carries a meaningful AMRAT variance; 0 otherwise."]
    pub has_amrat_variance: u8,
    #[doc = " AMRAT variance ((m²/kg)²). Only meaningful when `has_amrat_variance = 1`."]
    pub amrat_variance: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanSRPParams"][::std::mem::size_of::<EmpyreanSRPParams>() - 32usize];
    ["Alignment of EmpyreanSRPParams"][::std::mem::align_of::<EmpyreanSRPParams>() - 8usize];
    ["Offset of field: EmpyreanSRPParams::amrat"]
        [::std::mem::offset_of!(EmpyreanSRPParams, amrat) - 0usize];
    ["Offset of field: EmpyreanSRPParams::cr"][::std::mem::offset_of!(EmpyreanSRPParams, cr) - 8usize];
    ["Offset of field: EmpyreanSRPParams::has_amrat_variance"]
        [::std::mem::offset_of!(EmpyreanSRPParams, has_amrat_variance) - 16usize];
    ["Offset of field: EmpyreanSRPParams::amrat_variance"]
        [::std::mem::offset_of!(EmpyreanSRPParams, amrat_variance) - 24usize];
};
#[doc = " A complete non-gravitational acceleration model, flattened for the C ABI.\n\n Mirrors the fields the input [`EmpyreanOrbit`] carries, so a fitted orbit's\n non-grav can be read back off [`EmpyreanODResult::non_grav`] and re-applied\n to an `EmpyreanOrbit` with no loss: the radial/transverse/normal\n coefficients (A1/A2/A3, AU/day²), the Marsden–Sekanina g(r) exponents\n (`ng_alpha`..`ng_k`; all-zero = inverse-square default), and the optional\n thermal-lag delay `non_grav_dt` (days, valid only when `has_dt = 1`)."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanNonGravParams {
    pub a1: f64,
    pub a2: f64,
    pub a3: f64,
    pub ng_alpha: f64,
    pub ng_r0: f64,
    pub ng_m: f64,
    pub ng_n: f64,
    pub ng_k: f64,
    #[doc = " 1 when `non_grav_dt` carries a thermal-lag delay; 0 otherwise."]
    pub has_dt: u8,
    #[doc = " g(r) evaluation time delay (days); only meaningful when `has_dt = 1`."]
    pub non_grav_dt: f64,
    #[doc = " 1 when `covariance` carries the fitted non-grav covariance; 0 otherwise."]
    pub has_covariance: u8,
    #[doc = " Fitted non-grav 3×3 covariance for (A1, A2, A3), row-major. Only\n meaningful when `has_covariance = 1`. Re-feeding it onto an input\n orbit lets a fitted orbit flow into a StateAndNonGrav refine without\n losing its non-grav prior."]
    pub covariance: [[f64; 3usize]; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanNonGravParams"][::std::mem::size_of::<EmpyreanNonGravParams>() - 160usize];
    ["Alignment of EmpyreanNonGravParams"]
        [::std::mem::align_of::<EmpyreanNonGravParams>() - 8usize];
    ["Offset of field: EmpyreanNonGravParams::a1"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, a1) - 0usize];
    ["Offset of field: EmpyreanNonGravParams::a2"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, a2) - 8usize];
    ["Offset of field: EmpyreanNonGravParams::a3"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, a3) - 16usize];
    ["Offset of field: EmpyreanNonGravParams::ng_alpha"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, ng_alpha) - 24usize];
    ["Offset of field: EmpyreanNonGravParams::ng_r0"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, ng_r0) - 32usize];
    ["Offset of field: EmpyreanNonGravParams::ng_m"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, ng_m) - 40usize];
    ["Offset of field: EmpyreanNonGravParams::ng_n"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, ng_n) - 48usize];
    ["Offset of field: EmpyreanNonGravParams::ng_k"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, ng_k) - 56usize];
    ["Offset of field: EmpyreanNonGravParams::has_dt"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, has_dt) - 64usize];
    ["Offset of field: EmpyreanNonGravParams::non_grav_dt"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, non_grav_dt) - 72usize];
    ["Offset of field: EmpyreanNonGravParams::has_covariance"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, has_covariance) - 80usize];
    ["Offset of field: EmpyreanNonGravParams::covariance"]
        [::std::mem::offset_of!(EmpyreanNonGravParams, covariance) - 88usize];
};
#[doc = " Acceptability sub-checks computed post-DC.\n\n Mirrors scott's [`AcceptabilityReport`](scott::od::AcceptabilityReport).\n Boolean fields are encoded as `u8` (0/1). When a value is unavailable\n (e.g. AT/CT ratio with no sky-motion rates), the `_value` is NaN and\n the corresponding `_ok` flag is 0. Always populated on\n [`EmpyreanODResult`]; on [`EmpyreanEvaluateResult`] the report is\n filled with NaN/0 because evaluate does not produce a fitted orbit."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanAcceptabilityReport {
    pub fit_acceptable: u8,
    pub extrapolation_acceptable: u8,
    pub converged_ok: u8,
    pub reduced_chi2_ok: u8,
    pub reduced_chi2_value: f64,
    pub reduced_chi2_threshold: f64,
    pub rms_ok: u8,
    pub rms_value_arcsec: f64,
    pub rms_threshold_arcsec: f64,
    pub residual_isotropy_ok: u8,
    pub at_ct_ratio_value: f64,
    pub at_ct_ratio_threshold: f64,
    pub covariance_ok: u8,
    pub arc_coverage_ok: u8,
    pub arc_days_value: f64,
    pub arc_days_threshold: f64,
    pub fractional_sigma_a_ok: u8,
    pub fractional_sigma_a_value: f64,
    pub fractional_sigma_a_threshold: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanAcceptabilityReport"]
        [::std::mem::size_of::<EmpyreanAcceptabilityReport>() - 120usize];
    ["Alignment of EmpyreanAcceptabilityReport"]
        [::std::mem::align_of::<EmpyreanAcceptabilityReport>() - 8usize];
    ["Offset of field: EmpyreanAcceptabilityReport::fit_acceptable"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, fit_acceptable) - 0usize];
    ["Offset of field: EmpyreanAcceptabilityReport::extrapolation_acceptable"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, extrapolation_acceptable) - 1usize];
    ["Offset of field: EmpyreanAcceptabilityReport::converged_ok"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, converged_ok) - 2usize];
    ["Offset of field: EmpyreanAcceptabilityReport::reduced_chi2_ok"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, reduced_chi2_ok) - 3usize];
    ["Offset of field: EmpyreanAcceptabilityReport::reduced_chi2_value"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, reduced_chi2_value) - 8usize];
    ["Offset of field: EmpyreanAcceptabilityReport::reduced_chi2_threshold"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, reduced_chi2_threshold) - 16usize];
    ["Offset of field: EmpyreanAcceptabilityReport::rms_ok"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, rms_ok) - 24usize];
    ["Offset of field: EmpyreanAcceptabilityReport::rms_value_arcsec"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, rms_value_arcsec) - 32usize];
    ["Offset of field: EmpyreanAcceptabilityReport::rms_threshold_arcsec"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, rms_threshold_arcsec) - 40usize];
    ["Offset of field: EmpyreanAcceptabilityReport::residual_isotropy_ok"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, residual_isotropy_ok) - 48usize];
    ["Offset of field: EmpyreanAcceptabilityReport::at_ct_ratio_value"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, at_ct_ratio_value) - 56usize];
    ["Offset of field: EmpyreanAcceptabilityReport::at_ct_ratio_threshold"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, at_ct_ratio_threshold) - 64usize];
    ["Offset of field: EmpyreanAcceptabilityReport::covariance_ok"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, covariance_ok) - 72usize];
    ["Offset of field: EmpyreanAcceptabilityReport::arc_coverage_ok"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, arc_coverage_ok) - 73usize];
    ["Offset of field: EmpyreanAcceptabilityReport::arc_days_value"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, arc_days_value) - 80usize];
    ["Offset of field: EmpyreanAcceptabilityReport::arc_days_threshold"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, arc_days_threshold) - 88usize];
    ["Offset of field: EmpyreanAcceptabilityReport::fractional_sigma_a_ok"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, fractional_sigma_a_ok) - 96usize];
    ["Offset of field: EmpyreanAcceptabilityReport::fractional_sigma_a_value"]
        [::std::mem::offset_of!(EmpyreanAcceptabilityReport, fractional_sigma_a_value) - 104usize];
    ["Offset of field: EmpyreanAcceptabilityReport::fractional_sigma_a_threshold"][::std::mem::offset_of!(
        EmpyreanAcceptabilityReport,
        fractional_sigma_a_threshold
    ) - 112usize];
};
#[doc = " One per-station bias estimate from a Schur-eliminated nuisance fit.\n\n Mirrors [`scott::results::StationBias`]. Populated rows in the\n returned array correspond to stations that met the\n `min_obs_per_station` threshold; under-observed stations are absent.\n Timing fields are populated only when a `BiasKind::StationTiming`\n nuisance was active (currently no surface to enable it from the C\n ABI; reserved for a planned follow-up).\n\n `obs_code` is heap-allocated and owned by the parent array — freed\n by [`empyrean_od_result_free`] when the result is freed. Don't free\n it manually."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanStationBias {
    pub obs_code: *mut ::std::os::raw::c_char,
    #[doc = " Pre-rejection observation count from this station."]
    pub n_obs: usize,
    pub bias_ra_arcsec: f64,
    pub sigma_ra_arcsec: f64,
    pub bias_dec_arcsec: f64,
    pub sigma_dec_arcsec: f64,
    #[doc = " 1 when the timing bias is populated; 0 otherwise. Reserved for\n the planned `BiasKind::StationTiming` follow-up."]
    pub has_timing: u8,
    pub bias_timing_sec: f64,
    pub sigma_timing_sec: f64,
    #[doc = " Scalar significance: max of |bᵢ|/σᵢ across populated components."]
    pub significance: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanStationBias"][::std::mem::size_of::<EmpyreanStationBias>() - 80usize];
    ["Alignment of EmpyreanStationBias"][::std::mem::align_of::<EmpyreanStationBias>() - 8usize];
    ["Offset of field: EmpyreanStationBias::obs_code"]
        [::std::mem::offset_of!(EmpyreanStationBias, obs_code) - 0usize];
    ["Offset of field: EmpyreanStationBias::n_obs"]
        [::std::mem::offset_of!(EmpyreanStationBias, n_obs) - 8usize];
    ["Offset of field: EmpyreanStationBias::bias_ra_arcsec"]
        [::std::mem::offset_of!(EmpyreanStationBias, bias_ra_arcsec) - 16usize];
    ["Offset of field: EmpyreanStationBias::sigma_ra_arcsec"]
        [::std::mem::offset_of!(EmpyreanStationBias, sigma_ra_arcsec) - 24usize];
    ["Offset of field: EmpyreanStationBias::bias_dec_arcsec"]
        [::std::mem::offset_of!(EmpyreanStationBias, bias_dec_arcsec) - 32usize];
    ["Offset of field: EmpyreanStationBias::sigma_dec_arcsec"]
        [::std::mem::offset_of!(EmpyreanStationBias, sigma_dec_arcsec) - 40usize];
    ["Offset of field: EmpyreanStationBias::has_timing"]
        [::std::mem::offset_of!(EmpyreanStationBias, has_timing) - 48usize];
    ["Offset of field: EmpyreanStationBias::bias_timing_sec"]
        [::std::mem::offset_of!(EmpyreanStationBias, bias_timing_sec) - 56usize];
    ["Offset of field: EmpyreanStationBias::sigma_timing_sec"]
        [::std::mem::offset_of!(EmpyreanStationBias, sigma_timing_sec) - 64usize];
    ["Offset of field: EmpyreanStationBias::significance"]
        [::std::mem::offset_of!(EmpyreanStationBias, significance) - 72usize];
};
impl Default for EmpyreanStationBias {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Full solved-parameter covariance at the ABI-frozen width\n [`EMPYREAN_SOLVE_WIDTH`] (mirrors scott's `SolvedCovariance`\n tag-for-tag). The leading `width × width` block is meaningful; rows and\n columns beyond `width` are zero (RESERVED, not defaulted covariance).\n Consumers MUST read the slot tags to locate a parameter — the width\n alone is ambiguous (width 9 is Marsden OR a one-segment thrust). An\n absent tag carries [`EMPYREAN_SLOT_NONE`]."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanSolvedCovariance {
    #[doc = " Covariance at fixed storage width; leading `width×width` meaningful."]
    pub matrix: [[f64; 20usize]; 20usize],
    #[doc = " Real solved width — 6..=17 under scott v1.14.0 (`MAX_SOLVE_WIDTH`);\n the struct reserves storage to 20. The leading `width × width`\n block is meaningful."]
    pub width: u32,
    #[doc = " Slot of the first Marsden coefficient, or [`EMPYREAN_SLOT_NONE`]."]
    pub marsden_slot: u32,
    #[doc = " Slot of the DT scalar, or [`EMPYREAN_SLOT_NONE`]."]
    pub dt_slot: u32,
    #[doc = " Slot of the AMRAT scalar, or [`EMPYREAN_SLOT_NONE`]."]
    pub amrat_slot: u32,
    #[doc = " Slots of each fitted thrust Δv segment (3 wide each); entries\n `0..thrust_count` meaningful. Δv axes are INTEGRATION-frame\n components (see [`EmpyreanODResult::dv_frame`])."]
    pub thrust_slots: [[u32; 3usize]; 3usize],
    #[doc = " Number of fitted thrust segments (0..=3)."]
    pub thrust_count: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanSolvedCovariance"]
        [::std::mem::size_of::<EmpyreanSolvedCovariance>() - 3256usize];
    ["Alignment of EmpyreanSolvedCovariance"]
        [::std::mem::align_of::<EmpyreanSolvedCovariance>() - 8usize];
    ["Offset of field: EmpyreanSolvedCovariance::matrix"]
        [::std::mem::offset_of!(EmpyreanSolvedCovariance, matrix) - 0usize];
    ["Offset of field: EmpyreanSolvedCovariance::width"]
        [::std::mem::offset_of!(EmpyreanSolvedCovariance, width) - 3200usize];
    ["Offset of field: EmpyreanSolvedCovariance::marsden_slot"]
        [::std::mem::offset_of!(EmpyreanSolvedCovariance, marsden_slot) - 3204usize];
    ["Offset of field: EmpyreanSolvedCovariance::dt_slot"]
        [::std::mem::offset_of!(EmpyreanSolvedCovariance, dt_slot) - 3208usize];
    ["Offset of field: EmpyreanSolvedCovariance::amrat_slot"]
        [::std::mem::offset_of!(EmpyreanSolvedCovariance, amrat_slot) - 3212usize];
    ["Offset of field: EmpyreanSolvedCovariance::thrust_slots"]
        [::std::mem::offset_of!(EmpyreanSolvedCovariance, thrust_slots) - 3216usize];
    ["Offset of field: EmpyreanSolvedCovariance::thrust_count"]
        [::std::mem::offset_of!(EmpyreanSolvedCovariance, thrust_count) - 3252usize];
};
#[doc = " Per-band photometric statistics (mirrors scott's `BandStat`). Owned\n heap entry, freed by [`empyrean_od_result_free`]."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanBandStat {
    #[doc = " Photometric band tag (owned C string)."]
    pub band: *mut ::std::os::raw::c_char,
    #[doc = " Number of observations in this band."]
    pub n: usize,
    #[doc = " Band→V offset applied (mag)."]
    pub offset_applied: f64,
    #[doc = " Mean residual in V (mag)."]
    pub mean_residual: f64,
    #[doc = " RMS residual in V (mag)."]
    pub rms: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanBandStat"][::std::mem::size_of::<EmpyreanBandStat>() - 40usize];
    ["Alignment of EmpyreanBandStat"][::std::mem::align_of::<EmpyreanBandStat>() - 8usize];
    ["Offset of field: EmpyreanBandStat::band"]
        [::std::mem::offset_of!(EmpyreanBandStat, band) - 0usize];
    ["Offset of field: EmpyreanBandStat::n"][::std::mem::offset_of!(EmpyreanBandStat, n) - 8usize];
    ["Offset of field: EmpyreanBandStat::offset_applied"]
        [::std::mem::offset_of!(EmpyreanBandStat, offset_applied) - 16usize];
    ["Offset of field: EmpyreanBandStat::mean_residual"]
        [::std::mem::offset_of!(EmpyreanBandStat, mean_residual) - 24usize];
    ["Offset of field: EmpyreanBandStat::rms"]
        [::std::mem::offset_of!(EmpyreanBandStat, rms) - 32usize];
};
impl Default for EmpyreanBandStat {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " One model-ladder gate decision (mirrors scott's `GateRecord`). Owned\n heap entry, freed by [`empyrean_od_result_free`]."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanGateRecord {
    #[doc = " Model the gate evaluated (`EMPYREAN_PHOTOMETRY_MODEL_*`, fitted)."]
    pub model: i32,
    #[doc = " 1 if the model was admitted."]
    pub passed: u8,
    #[doc = " Human-readable gate reason (owned C string)."]
    pub reason: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanGateRecord"][::std::mem::size_of::<EmpyreanGateRecord>() - 16usize];
    ["Alignment of EmpyreanGateRecord"][::std::mem::align_of::<EmpyreanGateRecord>() - 8usize];
    ["Offset of field: EmpyreanGateRecord::model"]
        [::std::mem::offset_of!(EmpyreanGateRecord, model) - 0usize];
    ["Offset of field: EmpyreanGateRecord::passed"]
        [::std::mem::offset_of!(EmpyreanGateRecord, passed) - 4usize];
    ["Offset of field: EmpyreanGateRecord::reason"]
        [::std::mem::offset_of!(EmpyreanGateRecord, reason) - 8usize];
};
impl Default for EmpyreanGateRecord {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Post-OD photometric solution (mirrors scott's `PhotometryResult`).\n Present only when photometry was requested and ran\n ([`EmpyreanODResult::has_photometry`]). H carries honest σ via the\n [`covariance`](EmpyreanODPhotometryResult::covariance) block."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanODPhotometryResult {
    #[doc = " Fitted absolute magnitude H (mag)."]
    pub h: f64,
    #[doc = " First slope parameter (G / G12 / G1 by model)."]
    pub slope1: f64,
    #[doc = " Second slope parameter (G2 for HG1G2; unused otherwise)."]
    pub slope2: f64,
    #[doc = " 1 when [`covariance`](EmpyreanODPhotometryResult::covariance) is populated."]
    pub has_covariance: u8,
    #[doc = " Parameter covariance (H, slope1, slope2 order)."]
    pub covariance: [[f64; 3usize]; 3usize],
    #[doc = " Model actually fitted (`EMPYREAN_PHOTOMETRY_MODEL_*`; never Auto)."]
    pub model_used: i32,
    #[doc = " Reduced χ² of the photometric fit over its used magnitudes."]
    pub reduced_chi2: f64,
    #[doc = " 1 when a simplex constraint was active on the fitted slopes."]
    pub constraint_active: u8,
    #[doc = " Magnitudes used in the fit."]
    pub n_mags_used: usize,
    #[doc = " Magnitudes rejected by the photometric outlier pass."]
    pub n_mags_rejected_photometric: usize,
    #[doc = " Observations carrying no magnitude."]
    pub n_obs_without_mags: usize,
    #[doc = " Magnitudes drawn from astrometrically-selected observations."]
    pub n_mags_from_astrometric_selected: usize,
    #[doc = " Magnitudes drawn from astrometrically-rejected observations."]
    pub n_mags_from_astrometric_rejected: usize,
    #[doc = " Phase-angle coverage of the fitted magnitudes (deg)."]
    pub alpha_min_deg: f64,
    pub alpha_max_deg: f64,
    pub alpha_span_deg: f64,
    #[doc = " Owned per-band statistics array; freed by [`empyrean_od_result_free`]."]
    pub per_band: *mut EmpyreanBandStat,
    pub num_per_band: usize,
    #[doc = " Owned model-ladder gate records; freed by [`empyrean_od_result_free`]."]
    pub gates: *mut EmpyreanGateRecord,
    pub num_gates: usize,
    #[doc = " Magnitudes excluded from the fit because their photometric band
 has no adopted V-band conversion (unknown/unspecified band
 codes, comet total/nuclear magnitudes). Never silent: each
 exclusion is counted here and the distinct offending band codes
 are listed in `dropped_bands`. The observations' astrometry is
 unaffected."]
    pub n_mags_dropped_unconvertible: usize,
    #[doc = " Distinct band codes that were dropped (owned array of owned C
 strings, sorted). Freed by `empyrean_od_result_free`. Null when
 `num_dropped_bands == 0`."]
    pub dropped_bands: *mut *mut ::std::os::raw::c_char,
    #[doc = " Number of entries in `dropped_bands` (0 when null)."]
    pub num_dropped_bands: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanODPhotometryResult"]
        [::std::mem::size_of::<EmpyreanODPhotometryResult>() - 248usize];
    ["Alignment of EmpyreanODPhotometryResult"]
        [::std::mem::align_of::<EmpyreanODPhotometryResult>() - 8usize];
    ["Offset of field: EmpyreanODPhotometryResult::h"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, h) - 0usize];
    ["Offset of field: EmpyreanODPhotometryResult::slope1"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, slope1) - 8usize];
    ["Offset of field: EmpyreanODPhotometryResult::slope2"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, slope2) - 16usize];
    ["Offset of field: EmpyreanODPhotometryResult::has_covariance"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, has_covariance) - 24usize];
    ["Offset of field: EmpyreanODPhotometryResult::covariance"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, covariance) - 32usize];
    ["Offset of field: EmpyreanODPhotometryResult::model_used"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, model_used) - 104usize];
    ["Offset of field: EmpyreanODPhotometryResult::reduced_chi2"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, reduced_chi2) - 112usize];
    ["Offset of field: EmpyreanODPhotometryResult::constraint_active"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, constraint_active) - 120usize];
    ["Offset of field: EmpyreanODPhotometryResult::n_mags_used"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, n_mags_used) - 128usize];
    ["Offset of field: EmpyreanODPhotometryResult::n_mags_rejected_photometric"][::std::mem::offset_of!(
        EmpyreanODPhotometryResult,
        n_mags_rejected_photometric
    ) - 136usize];
    ["Offset of field: EmpyreanODPhotometryResult::n_obs_without_mags"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, n_obs_without_mags) - 144usize];
    ["Offset of field: EmpyreanODPhotometryResult::n_mags_from_astrometric_selected"][::std::mem::offset_of!(
        EmpyreanODPhotometryResult,
        n_mags_from_astrometric_selected
    ) - 152usize];
    ["Offset of field: EmpyreanODPhotometryResult::n_mags_from_astrometric_rejected"][::std::mem::offset_of!(
        EmpyreanODPhotometryResult,
        n_mags_from_astrometric_rejected
    ) - 160usize];
    ["Offset of field: EmpyreanODPhotometryResult::alpha_min_deg"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, alpha_min_deg) - 168usize];
    ["Offset of field: EmpyreanODPhotometryResult::alpha_max_deg"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, alpha_max_deg) - 176usize];
    ["Offset of field: EmpyreanODPhotometryResult::alpha_span_deg"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, alpha_span_deg) - 184usize];
    ["Offset of field: EmpyreanODPhotometryResult::per_band"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, per_band) - 192usize];
    ["Offset of field: EmpyreanODPhotometryResult::num_per_band"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, num_per_band) - 200usize];
    ["Offset of field: EmpyreanODPhotometryResult::gates"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, gates) - 208usize];
    ["Offset of field: EmpyreanODPhotometryResult::num_gates"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, num_gates) - 216usize];
    ["Offset of field: EmpyreanODPhotometryResult::n_mags_dropped_unconvertible"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, n_mags_dropped_unconvertible)
            - 224usize];
    ["Offset of field: EmpyreanODPhotometryResult::dropped_bands"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, dropped_bands) - 232usize];
    ["Offset of field: EmpyreanODPhotometryResult::num_dropped_bands"]
        [::std::mem::offset_of!(EmpyreanODPhotometryResult, num_dropped_bands) - 240usize];
};
impl Default for EmpyreanODPhotometryResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Mirrors scott's [`ODResult`](scott::od::ODResult). Carries the fitted\n orbit, the 6×6 (or 9×9 when non-grav was solved) formal covariance,\n the per-observation result array, the summary, the structured\n acceptability report, and the per-station nuisance-bias array\n when `fit_station_biases` was active.\n\n The fitted **absolute** non-gravitational model (when one was solved\n or carried) is exposed via [`has_non_grav`](EmpyreanODResult::has_non_grav)\n / [`non_grav`](EmpyreanODResult::non_grav) so the orbit can be re-fed into\n propagation / evaluate / refine without losing the force model. This is\n distinct from [`non_grav_delta`](EmpyreanODResult::non_grav_delta), which\n is the *cumulative correction* the fit applied and is kept for inspection."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanODResult {
    pub orbit: EmpyreanPropagatedState,
    pub observations: *mut EmpyreanObservationResult,
    pub num_observations: usize,
    pub summary: EmpyreanResidualSummary,
    pub iterations: u32,
    #[doc = " Convergence metric at the final DC iteration (Δx^T N Δx)."]
    pub update_norm: f64,
    #[doc = " Solver reached its stopping criterion (1 = yes).\n Equivalent to `acceptability.converged_ok`; kept for backwards\n compatibility with the v0.7.0 surface that pre-dated the\n structured acceptability report."]
    pub converged: u8,
    #[doc = " Fitted 6×6 state covariance in [`covariance_representation`]."]
    pub covariance: [[f64; 6usize]; 6usize],
    #[doc = " Coordinate basis the 6×6 / 9×9 covariance is reported in\n (`EMPYREAN_REPRESENTATION_*`)."]
    pub covariance_representation: i32,
    #[doc = " 1 when [`covariance_9x9`] is populated (non-grav was solved)."]
    pub has_covariance_9x9: u8,
    #[doc = " Full 9×9 covariance over (state, A1, A2, A3) when solving for non-grav."]
    pub covariance_9x9: [[f64; 9usize]; 9usize],
    #[doc = " 1 when [`non_grav_delta`] is populated."]
    pub has_non_grav_delta: u8,
    #[doc = " Cumulative non-grav parameter corrections (ΔA1, ΔA2, ΔA3) when solving for non-grav."]
    pub non_grav_delta: [f64; 3usize],
    #[doc = " 1 when [`non_grav`] carries a fitted/absolute non-gravitational model."]
    pub has_non_grav: u8,
    #[doc = " The fitted orbit's **absolute** non-gravitational model (A1/A2/A3 +\n g(r) exponents + optional thermal-lag `dt`). Re-feed this onto the\n orbit for propagation / evaluate / refine. Zeroed when the orbit is\n gravity-only (`has_non_grav = 0`)."]
    pub non_grav: EmpyreanNonGravParams,
    #[doc = " Number of rejection/refit passes performed."]
    pub rejection_passes: u32,
    #[doc = " Number of oppositions successfully fit."]
    pub num_oppositions_fit: u32,
    #[doc = " Force model tier actually used (0=Approximate, 1=Basic, 2=Standard)."]
    pub force_model_used: i32,
    #[doc = " Solve-for parameter set requested on the driving config\n (`EMPYREAN_SOLVE_FOR_*`). Together with `has_covariance_9x9`\n disambiguates Auto outcomes."]
    pub solve_for_used: i32,
    #[doc = " Structured fit-quality verdict. The `acceptable` flags can be\n checked directly; per-check values + thresholds are exposed for\n reporting and downstream sub-classification."]
    pub acceptability: EmpyreanAcceptabilityReport,
    #[doc = " Per-station fitted nuisance biases when [`EmpyreanODConfig::fit_station_biases`]\n was set. Owned heap allocation; freed by [`empyrean_od_result_free`].\n Null + `num_station_biases = 0` when no bias fit was configured."]
    pub station_biases: *mut EmpyreanStationBias,
    pub num_station_biases: usize,
    #[doc = " 1 when [`solved_covariance`](EmpyreanODResult::solved_covariance)\n is populated (any solved width > 6). 0 for a pure state-only fit."]
    pub has_solved_covariance: u8,
    #[doc = " Full tagged solved-parameter covariance at the frozen width. The\n go-forward field for ALL solved widths (including 9); the legacy\n `covariance_9x9` remains for one deprecation window."]
    pub solved_covariance: EmpyreanSolvedCovariance,
    #[doc = " 1 when [`dt_delta`](EmpyreanODResult::dt_delta) is populated (DT solved)."]
    pub has_dt_delta: u8,
    #[doc = " Cumulative non-grav time-delay correction ΔDT (days)."]
    pub dt_delta: f64,
    #[doc = " 1 when [`amrat_delta`](EmpyreanODResult::amrat_delta) is populated (AMRAT solved)."]
    pub has_amrat_delta: u8,
    #[doc = " Cumulative SRP AMRAT correction (m²/kg)."]
    pub amrat_delta: f64,
    #[doc = " Number of fitted thrust Δv segments (0..=3); 0 = no thrust solve."]
    pub thrust_delta_count: u32,
    #[doc = " Per-segment fitted Δv in m/s, expressed in\n [`dv_frame`](EmpyreanODResult::dv_frame). Entries\n `0..thrust_delta_count` meaningful."]
    pub thrust_delta_m_per_s: [[f64; 3usize]; 3usize],
    #[doc = " Integration frame the Δv components are expressed in (0=ICRF,\n 1=EclipticJ2000). Only meaningful when `thrust_delta_count > 0`."]
    pub dv_frame: i32,
    #[doc = " 1 when [`photometry`](EmpyreanODResult::photometry) carries a fitted H/G solution."]
    pub has_photometry: u8,
    #[doc = " Post-OD photometric solution when photometry was requested + ran.\n Owns its per-band / gate arrays (freed by `empyrean_od_result_free`)."]
    pub photometry: EmpyreanODPhotometryResult,
    #[doc = " 1 when [`srp`] carries a fitted/carried absolute SRP slot."]
    pub has_srp: u8,
    #[doc = " The fitted orbit's absolute SRP slot (AMRAT + Cr + optional AMRAT\n variance). Re-feed this onto the orbit (`has_srp = 1`) so a fitted orbit\n never silently drops its SRP force. Zeroed when `has_srp = 0`."]
    pub srp: EmpyreanSRPParams,
    #[doc = " Event-aware trust verdict on the delivered covariance
 (`EMPYREAN_COVARIANCE_TRUST_*`). `NOT_EVALUATED` (0) means the
 call path ran no gate — absence of a verdict is not trust."]
    pub covariance_trust: i32,
    #[doc = " Intervening-event kind (`EMPYREAN_TRUST_EVENT_*`); `NONE` unless
 `covariance_trust == ENCOUNTER_INTERVENES`."]
    pub trust_event_kind: i32,
    #[doc = " Event epoch (MJD TDB). NaN when no event."]
    pub trust_event_epoch_mjd_tdb: f64,
    #[doc = " Close-approach distance (AU). NaN unless
 `trust_event_kind == CLOSE_APPROACH`."]
    pub trust_event_distance_au: f64,
    #[doc = " Nonlinearity ratio at the crossing. NaN unless
 `trust_event_kind == HIGH_NONLINEARITY`."]
    pub trust_event_nonlinearity: f64,
    #[doc = " Threshold the nonlinearity exceeded. NaN unless
 `trust_event_kind == HIGH_NONLINEARITY`."]
    pub trust_event_threshold: f64,
    #[doc = " Name of the approached body (owned C string; freed by
 `empyrean_od_result_free`). Null unless
 `trust_event_kind == CLOSE_APPROACH`."]
    pub trust_event_body: *mut ::std::os::raw::c_char,
    #[doc = " Solved-for width N of the fit the verdict refers to. 0 when the
 verdict carries no width (`TRUSTED` / `NOT_EVALUATED`)."]
    pub trust_solved_width: u32,
    #[doc = " 1 when a second-order (state-only) correction can recover the
 encounter (solved width 6); 0 otherwise. Meaningful only for
 `ENCOUNTER_INTERVENES`."]
    pub trust_second_order_recoverable: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanODResult"][::std::mem::size_of::<EmpyreanODResult>() - 7600usize];
    ["Alignment of EmpyreanODResult"][::std::mem::align_of::<EmpyreanODResult>() - 8usize];
    ["Offset of field: EmpyreanODResult::orbit"]
        [::std::mem::offset_of!(EmpyreanODResult, orbit) - 0usize];
    ["Offset of field: EmpyreanODResult::observations"]
        [::std::mem::offset_of!(EmpyreanODResult, observations) - 2392usize];
    ["Offset of field: EmpyreanODResult::num_observations"]
        [::std::mem::offset_of!(EmpyreanODResult, num_observations) - 2400usize];
    ["Offset of field: EmpyreanODResult::summary"]
        [::std::mem::offset_of!(EmpyreanODResult, summary) - 2408usize];
    ["Offset of field: EmpyreanODResult::iterations"]
        [::std::mem::offset_of!(EmpyreanODResult, iterations) - 2552usize];
    ["Offset of field: EmpyreanODResult::update_norm"]
        [::std::mem::offset_of!(EmpyreanODResult, update_norm) - 2560usize];
    ["Offset of field: EmpyreanODResult::converged"]
        [::std::mem::offset_of!(EmpyreanODResult, converged) - 2568usize];
    ["Offset of field: EmpyreanODResult::covariance"]
        [::std::mem::offset_of!(EmpyreanODResult, covariance) - 2576usize];
    ["Offset of field: EmpyreanODResult::covariance_representation"]
        [::std::mem::offset_of!(EmpyreanODResult, covariance_representation) - 2864usize];
    ["Offset of field: EmpyreanODResult::has_covariance_9x9"]
        [::std::mem::offset_of!(EmpyreanODResult, has_covariance_9x9) - 2868usize];
    ["Offset of field: EmpyreanODResult::covariance_9x9"]
        [::std::mem::offset_of!(EmpyreanODResult, covariance_9x9) - 2872usize];
    ["Offset of field: EmpyreanODResult::has_non_grav_delta"]
        [::std::mem::offset_of!(EmpyreanODResult, has_non_grav_delta) - 3520usize];
    ["Offset of field: EmpyreanODResult::non_grav_delta"]
        [::std::mem::offset_of!(EmpyreanODResult, non_grav_delta) - 3528usize];
    ["Offset of field: EmpyreanODResult::has_non_grav"]
        [::std::mem::offset_of!(EmpyreanODResult, has_non_grav) - 3552usize];
    ["Offset of field: EmpyreanODResult::non_grav"]
        [::std::mem::offset_of!(EmpyreanODResult, non_grav) - 3560usize];
    ["Offset of field: EmpyreanODResult::rejection_passes"]
        [::std::mem::offset_of!(EmpyreanODResult, rejection_passes) - 3720usize];
    ["Offset of field: EmpyreanODResult::num_oppositions_fit"]
        [::std::mem::offset_of!(EmpyreanODResult, num_oppositions_fit) - 3724usize];
    ["Offset of field: EmpyreanODResult::force_model_used"]
        [::std::mem::offset_of!(EmpyreanODResult, force_model_used) - 3728usize];
    ["Offset of field: EmpyreanODResult::solve_for_used"]
        [::std::mem::offset_of!(EmpyreanODResult, solve_for_used) - 3732usize];
    ["Offset of field: EmpyreanODResult::acceptability"]
        [::std::mem::offset_of!(EmpyreanODResult, acceptability) - 3736usize];
    ["Offset of field: EmpyreanODResult::station_biases"]
        [::std::mem::offset_of!(EmpyreanODResult, station_biases) - 3856usize];
    ["Offset of field: EmpyreanODResult::num_station_biases"]
        [::std::mem::offset_of!(EmpyreanODResult, num_station_biases) - 3864usize];
    ["Offset of field: EmpyreanODResult::has_solved_covariance"]
        [::std::mem::offset_of!(EmpyreanODResult, has_solved_covariance) - 3872usize];
    ["Offset of field: EmpyreanODResult::solved_covariance"]
        [::std::mem::offset_of!(EmpyreanODResult, solved_covariance) - 3880usize];
    ["Offset of field: EmpyreanODResult::has_dt_delta"]
        [::std::mem::offset_of!(EmpyreanODResult, has_dt_delta) - 7136usize];
    ["Offset of field: EmpyreanODResult::dt_delta"]
        [::std::mem::offset_of!(EmpyreanODResult, dt_delta) - 7144usize];
    ["Offset of field: EmpyreanODResult::has_amrat_delta"]
        [::std::mem::offset_of!(EmpyreanODResult, has_amrat_delta) - 7152usize];
    ["Offset of field: EmpyreanODResult::amrat_delta"]
        [::std::mem::offset_of!(EmpyreanODResult, amrat_delta) - 7160usize];
    ["Offset of field: EmpyreanODResult::thrust_delta_count"]
        [::std::mem::offset_of!(EmpyreanODResult, thrust_delta_count) - 7168usize];
    ["Offset of field: EmpyreanODResult::thrust_delta_m_per_s"]
        [::std::mem::offset_of!(EmpyreanODResult, thrust_delta_m_per_s) - 7176usize];
    ["Offset of field: EmpyreanODResult::dv_frame"]
        [::std::mem::offset_of!(EmpyreanODResult, dv_frame) - 7248usize];
    ["Offset of field: EmpyreanODResult::has_photometry"]
        [::std::mem::offset_of!(EmpyreanODResult, has_photometry) - 7252usize];
    ["Offset of field: EmpyreanODResult::photometry"]
        [::std::mem::offset_of!(EmpyreanODResult, photometry) - 7256usize];
    ["Offset of field: EmpyreanODResult::has_srp"]
        [::std::mem::offset_of!(EmpyreanODResult, has_srp) - 7504usize];
    ["Offset of field: EmpyreanODResult::srp"]
        [::std::mem::offset_of!(EmpyreanODResult, srp) - 7512usize];
    ["Offset of field: EmpyreanODResult::covariance_trust"]
        [::std::mem::offset_of!(EmpyreanODResult, covariance_trust) - 7544usize];
    ["Offset of field: EmpyreanODResult::trust_event_kind"]
        [::std::mem::offset_of!(EmpyreanODResult, trust_event_kind) - 7548usize];
    ["Offset of field: EmpyreanODResult::trust_event_epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanODResult, trust_event_epoch_mjd_tdb) - 7552usize];
    ["Offset of field: EmpyreanODResult::trust_event_distance_au"]
        [::std::mem::offset_of!(EmpyreanODResult, trust_event_distance_au) - 7560usize];
    ["Offset of field: EmpyreanODResult::trust_event_nonlinearity"]
        [::std::mem::offset_of!(EmpyreanODResult, trust_event_nonlinearity) - 7568usize];
    ["Offset of field: EmpyreanODResult::trust_event_threshold"]
        [::std::mem::offset_of!(EmpyreanODResult, trust_event_threshold) - 7576usize];
    ["Offset of field: EmpyreanODResult::trust_event_body"]
        [::std::mem::offset_of!(EmpyreanODResult, trust_event_body) - 7584usize];
    ["Offset of field: EmpyreanODResult::trust_solved_width"]
        [::std::mem::offset_of!(EmpyreanODResult, trust_solved_width) - 7592usize];
    ["Offset of field: EmpyreanODResult::trust_second_order_recoverable"]
        [::std::mem::offset_of!(EmpyreanODResult, trust_second_order_recoverable) - 7596usize];
};
impl Default for EmpyreanODResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Result of orbit evaluation (residuals without fitting).\n\n Same per-observation surface as [`EmpyreanODResult`] (rejection +\n influence fields are NaN / `NOT_EVALUATED` because evaluate does\n not run rejection or influence passes), but no fitted orbit or\n acceptability report."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanEvaluateResult {
    pub observations: *mut EmpyreanObservationResult,
    pub num_observations: usize,
    pub summary: EmpyreanResidualSummary,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanEvaluateResult"][::std::mem::size_of::<EmpyreanEvaluateResult>() - 160usize];
    ["Alignment of EmpyreanEvaluateResult"]
        [::std::mem::align_of::<EmpyreanEvaluateResult>() - 8usize];
    ["Offset of field: EmpyreanEvaluateResult::observations"]
        [::std::mem::offset_of!(EmpyreanEvaluateResult, observations) - 0usize];
    ["Offset of field: EmpyreanEvaluateResult::num_observations"]
        [::std::mem::offset_of!(EmpyreanEvaluateResult, num_observations) - 8usize];
    ["Offset of field: EmpyreanEvaluateResult::summary"]
        [::std::mem::offset_of!(EmpyreanEvaluateResult, summary) - 16usize];
};
impl Default for EmpyreanEvaluateResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " A single planned (candidate) observation: an epoch plus either an optical or\n a radar measurement spec. Optical fields are read when `kind == 0`, radar\n fields when `kind == 1`; absent optional radar target properties use NaN\n (the link budget refuses, rather than silently defaults, a missing value)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanPlannedObservation {
    #[doc = " Planned (receive, for radar) epoch — MJD, TDB."]
    pub epoch_mjd_tdb: f64,
    #[doc = " 0 = optical, 1 = radar."]
    pub kind: u8,
    #[doc = " Optical: registered MPC station code (null-terminated UTF-8)."]
    pub optical_code: *const ::std::os::raw::c_char,
    #[doc = " Optical 1σ (RA·cosδ) uncertainty (arcsec)."]
    pub optical_sigma_ra_arcsec: f64,
    #[doc = " Optical 1σ Dec uncertainty (arcsec)."]
    pub optical_sigma_dec_arcsec: f64,
    #[doc = " Radar transmit dish preset: 0 = Goldstone DSS-14, 1 = Green Bank\n (receive-only), 2 = Arecibo (defunct — rejected loudly, never scheduled)."]
    pub radar_transmit_station: u8,
    #[doc = " Radar receive dish preset (same encoding; equal to transmit = monostatic)."]
    pub radar_receive_station: u8,
    #[doc = " Radar mode: 0 = Delay, 1 = Doppler, 2 = Both."]
    pub radar_mode: u8,
    #[doc = " Waveform bandwidth (Hz) — sets the delay (range) σ."]
    pub radar_bandwidth_hz: f64,
    #[doc = " Doppler frequency resolution (Hz) — sets the Doppler (range-rate) σ."]
    pub radar_freq_resolution_hz: f64,
    #[doc = " Supplied effective SNR (linear, not dB). NaN → compute from the link\n budget using the target properties + integration time below."]
    pub radar_snr: f64,
    #[doc = " Link-budget target absolute magnitude H (mag). NaN = absent."]
    pub radar_target_h_mag: f64,
    #[doc = " Link-budget target visual geometric albedo. NaN = absent."]
    pub radar_target_visual_albedo: f64,
    #[doc = " Link-budget target radar (OC) albedo. NaN = absent."]
    pub radar_target_radar_albedo: f64,
    #[doc = " Link-budget target effective diameter (km). NaN = absent."]
    pub radar_target_diameter_km: f64,
    #[doc = " Link-budget target rotation period (hours), caps coherent integration.\n NaN = absent."]
    pub radar_target_spin_period_hours: f64,
    #[doc = " Coherent integration time (s) for the link-budget SNR."]
    pub radar_integration_s: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanPlannedObservation"]
        [::std::mem::size_of::<EmpyreanPlannedObservation>() - 120usize];
    ["Alignment of EmpyreanPlannedObservation"]
        [::std::mem::align_of::<EmpyreanPlannedObservation>() - 8usize];
    ["Offset of field: EmpyreanPlannedObservation::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, epoch_mjd_tdb) - 0usize];
    ["Offset of field: EmpyreanPlannedObservation::kind"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, kind) - 8usize];
    ["Offset of field: EmpyreanPlannedObservation::optical_code"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, optical_code) - 16usize];
    ["Offset of field: EmpyreanPlannedObservation::optical_sigma_ra_arcsec"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, optical_sigma_ra_arcsec) - 24usize];
    ["Offset of field: EmpyreanPlannedObservation::optical_sigma_dec_arcsec"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, optical_sigma_dec_arcsec) - 32usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_transmit_station"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_transmit_station) - 40usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_receive_station"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_receive_station) - 41usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_mode"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_mode) - 42usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_bandwidth_hz"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_bandwidth_hz) - 48usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_freq_resolution_hz"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_freq_resolution_hz) - 56usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_snr"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_snr) - 64usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_target_h_mag"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_target_h_mag) - 72usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_target_visual_albedo"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_target_visual_albedo) - 80usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_target_radar_albedo"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_target_radar_albedo) - 88usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_target_diameter_km"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_target_diameter_km) - 96usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_target_spin_period_hours"][::std::mem::offset_of!(
        EmpyreanPlannedObservation,
        radar_target_spin_period_hours
    ) - 104usize];
    ["Offset of field: EmpyreanPlannedObservation::radar_integration_s"]
        [::std::mem::offset_of!(EmpyreanPlannedObservation, radar_integration_s) - 112usize];
};
impl Default for EmpyreanPlannedObservation {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Per-observatory assumptions: astrometric σ + observability filters."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanObservatoryConfig {
    #[doc = " MPC observatory code (null-terminated UTF-8)."]
    pub obs_code: *const ::std::os::raw::c_char,
    #[doc = " 1σ (RA·cosδ) astrometric uncertainty (arcsec)."]
    pub sigma_ra_arcsec: f64,
    #[doc = " 1σ Dec astrometric uncertainty (arcsec)."]
    pub sigma_dec_arcsec: f64,
    #[doc = " Limiting apparent magnitude."]
    pub max_apparent_mag: f64,
    #[doc = " Minimum solar elongation (degrees)."]
    pub min_elongation_deg: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanObservatoryConfig"]
        [::std::mem::size_of::<EmpyreanObservatoryConfig>() - 40usize];
    ["Alignment of EmpyreanObservatoryConfig"]
        [::std::mem::align_of::<EmpyreanObservatoryConfig>() - 8usize];
    ["Offset of field: EmpyreanObservatoryConfig::obs_code"]
        [::std::mem::offset_of!(EmpyreanObservatoryConfig, obs_code) - 0usize];
    ["Offset of field: EmpyreanObservatoryConfig::sigma_ra_arcsec"]
        [::std::mem::offset_of!(EmpyreanObservatoryConfig, sigma_ra_arcsec) - 8usize];
    ["Offset of field: EmpyreanObservatoryConfig::sigma_dec_arcsec"]
        [::std::mem::offset_of!(EmpyreanObservatoryConfig, sigma_dec_arcsec) - 16usize];
    ["Offset of field: EmpyreanObservatoryConfig::max_apparent_mag"]
        [::std::mem::offset_of!(EmpyreanObservatoryConfig, max_apparent_mag) - 24usize];
    ["Offset of field: EmpyreanObservatoryConfig::min_elongation_deg"]
        [::std::mem::offset_of!(EmpyreanObservatoryConfig, min_elongation_deg) - 32usize];
};
impl Default for EmpyreanObservatoryConfig {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Planning configuration: force model, integration tolerance, the\n per-observatory astrometric assumptions, and threading."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanPlanningConfig {
    #[doc = " Force-model tier: 0 = Approximate, 1 = Basic, 2 = Standard."]
    pub force_model: i32,
    #[doc = " GR15 / IAS15 integration tolerance."]
    pub epsilon: f64,
    #[doc = " Per-observatory config array."]
    pub observatories: *const EmpyreanObservatoryConfig,
    #[doc = " Number of entries in `observatories`."]
    pub num_observatories: usize,
    #[doc = " Threads for batch operations; -1 = all CPUs."]
    pub num_threads: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanPlanningConfig"][::std::mem::size_of::<EmpyreanPlanningConfig>() - 40usize];
    ["Alignment of EmpyreanPlanningConfig"]
        [::std::mem::align_of::<EmpyreanPlanningConfig>() - 8usize];
    ["Offset of field: EmpyreanPlanningConfig::force_model"]
        [::std::mem::offset_of!(EmpyreanPlanningConfig, force_model) - 0usize];
    ["Offset of field: EmpyreanPlanningConfig::epsilon"]
        [::std::mem::offset_of!(EmpyreanPlanningConfig, epsilon) - 8usize];
    ["Offset of field: EmpyreanPlanningConfig::observatories"]
        [::std::mem::offset_of!(EmpyreanPlanningConfig, observatories) - 16usize];
    ["Offset of field: EmpyreanPlanningConfig::num_observatories"]
        [::std::mem::offset_of!(EmpyreanPlanningConfig, num_observatories) - 24usize];
    ["Offset of field: EmpyreanPlanningConfig::num_threads"]
        [::std::mem::offset_of!(EmpyreanPlanningConfig, num_threads) - 32usize];
};
impl Default for EmpyreanPlanningConfig {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Covariance summary metrics (prior, posterior, or per-candidate cumulative)."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanCovarianceMetrics {
    #[doc = " RSS position 1σ (km)."]
    pub position_sigma_km: f64,
    #[doc = " RSS velocity 1σ (m/s) — the rendezvous-Δv-knowledge term."]
    pub velocity_sigma_m_s: f64,
    #[doc = " Semi-major axis of the 1σ position ellipsoid (km)."]
    pub semi_major_km: f64,
    #[doc = " Semi-minor axis of the 1σ position ellipsoid (km)."]
    pub semi_minor_km: f64,
    #[doc = " ln(det(Σ)) — D-optimality criterion."]
    pub log_det: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanCovarianceMetrics"]
        [::std::mem::size_of::<EmpyreanCovarianceMetrics>() - 40usize];
    ["Alignment of EmpyreanCovarianceMetrics"]
        [::std::mem::align_of::<EmpyreanCovarianceMetrics>() - 8usize];
    ["Offset of field: EmpyreanCovarianceMetrics::position_sigma_km"]
        [::std::mem::offset_of!(EmpyreanCovarianceMetrics, position_sigma_km) - 0usize];
    ["Offset of field: EmpyreanCovarianceMetrics::velocity_sigma_m_s"]
        [::std::mem::offset_of!(EmpyreanCovarianceMetrics, velocity_sigma_m_s) - 8usize];
    ["Offset of field: EmpyreanCovarianceMetrics::semi_major_km"]
        [::std::mem::offset_of!(EmpyreanCovarianceMetrics, semi_major_km) - 16usize];
    ["Offset of field: EmpyreanCovarianceMetrics::semi_minor_km"]
        [::std::mem::offset_of!(EmpyreanCovarianceMetrics, semi_minor_km) - 24usize];
    ["Offset of field: EmpyreanCovarianceMetrics::log_det"]
        [::std::mem::offset_of!(EmpyreanCovarianceMetrics, log_det) - 32usize];
};
#[doc = " One predicted sky-plane point of the plan's optical ephemeris: the\n target's predicted topocentric right ascension and declination\n (degrees, ICRF) at an optical candidate's epoch (MJD, TDB)."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanPlanEphemerisPoint {
    #[doc = " Epoch — MJD, TDB."]
    pub epoch_mjd_tdb: f64,
    #[doc = " Predicted topocentric right ascension (degrees, ICRF)."]
    pub ra_deg: f64,
    #[doc = " Predicted topocentric declination (degrees, ICRF)."]
    pub dec_deg: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanPlanEphemerisPoint"]
        [::std::mem::size_of::<EmpyreanPlanEphemerisPoint>() - 24usize];
    ["Alignment of EmpyreanPlanEphemerisPoint"]
        [::std::mem::align_of::<EmpyreanPlanEphemerisPoint>() - 8usize];
    ["Offset of field: EmpyreanPlanEphemerisPoint::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanPlanEphemerisPoint, epoch_mjd_tdb) - 0usize];
    ["Offset of field: EmpyreanPlanEphemerisPoint::ra_deg"]
        [::std::mem::offset_of!(EmpyreanPlanEphemerisPoint, ra_deg) - 8usize];
    ["Offset of field: EmpyreanPlanEphemerisPoint::dec_deg"]
        [::std::mem::offset_of!(EmpyreanPlanEphemerisPoint, dec_deg) - 16usize];
};
#[doc = " Per-candidate information-gain analysis."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanPlanCandidate {
    #[doc = " Index into the planned-observation list."]
    pub index: usize,
    #[doc = " Observatory / receive-station code (owned; freed by\n `empyrean_plan_result_free`)."]
    pub obs_code: *mut ::std::os::raw::c_char,
    #[doc = " 0 = optical, 1 = radar."]
    pub kind: u8,
    #[doc = " 1 if observable at this epoch (passes the filters / has positive SNR)."]
    pub observable: u8,
    #[doc = " Sky-plane along-track 1σ (arcsec) — optical geometry (NaN for radar)."]
    pub along_track_sigma_arcsec: f64,
    #[doc = " Sky-plane cross-track 1σ (arcsec)."]
    pub cross_track_sigma_arcsec: f64,
    #[doc = " Predicted RA·cosδ 1σ (arcsec)."]
    pub ra_sigma_arcsec: f64,
    #[doc = " Predicted Dec 1σ (arcsec)."]
    pub dec_sigma_arcsec: f64,
    #[doc = " Position angle of the sky-plane uncertainty ellipse (degrees)."]
    pub position_angle_deg: f64,
    #[doc = " Marginal covariance-volume reduction factor from this observation (≤ 1)."]
    pub marginal_volume_reduction: f64,
    #[doc = " Fractional position-σ improvement from this observation (∈ [0, 1])."]
    pub marginal_position_improvement: f64,
    #[doc = " Post-observation along-track 1σ (arcsec)."]
    pub post_along_track_sigma_arcsec: f64,
    #[doc = " Post-observation cross-track 1σ (arcsec)."]
    pub post_cross_track_sigma_arcsec: f64,
    #[doc = " Covariance metrics after folding this observation and all prior ones."]
    pub cumulative: EmpyreanCovarianceMetrics,
    #[doc = " Active solve-for width (6 = state-only)."]
    pub active_width: usize,
    #[doc = " Radar only: effective signal-to-noise ratio used for the\n delay/Doppler measurement uncertainty (linear power ratio, not\n dB). Always finite and positive for a radar candidate; NaN for\n an optical candidate."]
    pub radar_snr: f64,
    #[doc = " Radar only: one-way topocentric range to the target at the\n receive epoch (km), derived from the predicted round-trip delay.\n NaN for an optical candidate."]
    pub radar_range_km: f64,
    #[doc = " Radar only: human-readable notes recording assumptions made\n while deriving the SNR from the link budget. Owned,\n null-terminated UTF-8 strings, freed by\n `empyrean_plan_result_free`. Null/0 when there are no notes."]
    pub radar_provenance: *mut *mut ::std::os::raw::c_char,
    #[doc = " Number of entries in `radar_provenance` (0 when null)."]
    pub num_radar_provenance: usize,
    #[doc = " Radar only: measurement mode — 0 = delay, 1 = Doppler,\n 2 = both. -1 for an optical candidate."]
    pub radar_mode: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanPlanCandidate"][::std::mem::size_of::<EmpyreanPlanCandidate>() - 184usize];
    ["Alignment of EmpyreanPlanCandidate"]
        [::std::mem::align_of::<EmpyreanPlanCandidate>() - 8usize];
    ["Offset of field: EmpyreanPlanCandidate::index"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, index) - 0usize];
    ["Offset of field: EmpyreanPlanCandidate::obs_code"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, obs_code) - 8usize];
    ["Offset of field: EmpyreanPlanCandidate::kind"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, kind) - 16usize];
    ["Offset of field: EmpyreanPlanCandidate::observable"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, observable) - 17usize];
    ["Offset of field: EmpyreanPlanCandidate::along_track_sigma_arcsec"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, along_track_sigma_arcsec) - 24usize];
    ["Offset of field: EmpyreanPlanCandidate::cross_track_sigma_arcsec"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, cross_track_sigma_arcsec) - 32usize];
    ["Offset of field: EmpyreanPlanCandidate::ra_sigma_arcsec"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, ra_sigma_arcsec) - 40usize];
    ["Offset of field: EmpyreanPlanCandidate::dec_sigma_arcsec"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, dec_sigma_arcsec) - 48usize];
    ["Offset of field: EmpyreanPlanCandidate::position_angle_deg"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, position_angle_deg) - 56usize];
    ["Offset of field: EmpyreanPlanCandidate::marginal_volume_reduction"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, marginal_volume_reduction) - 64usize];
    ["Offset of field: EmpyreanPlanCandidate::marginal_position_improvement"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, marginal_position_improvement) - 72usize];
    ["Offset of field: EmpyreanPlanCandidate::post_along_track_sigma_arcsec"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, post_along_track_sigma_arcsec) - 80usize];
    ["Offset of field: EmpyreanPlanCandidate::post_cross_track_sigma_arcsec"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, post_cross_track_sigma_arcsec) - 88usize];
    ["Offset of field: EmpyreanPlanCandidate::cumulative"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, cumulative) - 96usize];
    ["Offset of field: EmpyreanPlanCandidate::active_width"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, active_width) - 136usize];
    ["Offset of field: EmpyreanPlanCandidate::radar_snr"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, radar_snr) - 144usize];
    ["Offset of field: EmpyreanPlanCandidate::radar_range_km"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, radar_range_km) - 152usize];
    ["Offset of field: EmpyreanPlanCandidate::radar_provenance"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, radar_provenance) - 160usize];
    ["Offset of field: EmpyreanPlanCandidate::num_radar_provenance"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, num_radar_provenance) - 168usize];
    ["Offset of field: EmpyreanPlanCandidate::radar_mode"]
        [::std::mem::offset_of!(EmpyreanPlanCandidate, radar_mode) - 176usize];
};
impl Default for EmpyreanPlanCandidate {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Result of a plan evaluation. The caller allocates the struct; the\n `orbit_id` string and the `candidates` array (with their `obs_code`\n strings) are heap-allocated here and must be released with\n [`empyrean_plan_result_free`]."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanPlanResult {
    #[doc = " Orbit identifier (owned)."]
    pub orbit_id: *mut ::std::os::raw::c_char,
    #[doc = " Prior (pre-observation) covariance metrics."]
    pub prior: EmpyreanCovarianceMetrics,
    #[doc = " Posterior (all candidates folded) covariance metrics."]
    pub posterior: EmpyreanCovarianceMetrics,
    #[doc = " Per-candidate analysis array (owned)."]
    pub candidates: *mut EmpyreanPlanCandidate,
    #[doc = " Number of entries in `candidates`."]
    pub num_candidates: usize,
    #[doc = " Active solve-for width (6 = state-only)."]
    pub active_width: usize,
    #[doc = " Predicted optical ephemeris, one point per optical candidate in\n chronological order; an optical candidate's `index` field gives\n its row in this array (radar candidates carry no sky-plane\n prediction). Owned; freed by `empyrean_plan_result_free`. Null\n with count 0 for a radar-only plan."]
    pub ephemeris: *mut EmpyreanPlanEphemerisPoint,
    #[doc = " Number of entries in `ephemeris` (0 when null)."]
    pub num_ephemeris: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanPlanResult"][::std::mem::size_of::<EmpyreanPlanResult>() - 128usize];
    ["Alignment of EmpyreanPlanResult"][::std::mem::align_of::<EmpyreanPlanResult>() - 8usize];
    ["Offset of field: EmpyreanPlanResult::orbit_id"]
        [::std::mem::offset_of!(EmpyreanPlanResult, orbit_id) - 0usize];
    ["Offset of field: EmpyreanPlanResult::prior"]
        [::std::mem::offset_of!(EmpyreanPlanResult, prior) - 8usize];
    ["Offset of field: EmpyreanPlanResult::posterior"]
        [::std::mem::offset_of!(EmpyreanPlanResult, posterior) - 48usize];
    ["Offset of field: EmpyreanPlanResult::candidates"]
        [::std::mem::offset_of!(EmpyreanPlanResult, candidates) - 88usize];
    ["Offset of field: EmpyreanPlanResult::num_candidates"]
        [::std::mem::offset_of!(EmpyreanPlanResult, num_candidates) - 96usize];
    ["Offset of field: EmpyreanPlanResult::active_width"]
        [::std::mem::offset_of!(EmpyreanPlanResult, active_width) - 104usize];
    ["Offset of field: EmpyreanPlanResult::ephemeris"]
        [::std::mem::offset_of!(EmpyreanPlanResult, ephemeris) - 112usize];
    ["Offset of field: EmpyreanPlanResult::num_ephemeris"]
        [::std::mem::offset_of!(EmpyreanPlanResult, num_ephemeris) - 120usize];
};
impl Default for EmpyreanPlanResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Flattened, owned form of `empyrean_core::propagation::TaggedCovariance`\n (villeneuve's provenance-tagged covariance). Self-describing: the 6×6\n matrix together with the co-located nominal state, how the covariance\n was derived, its definiteness, its basis, the solved-for parameters,\n and the functional it describes — so a consumer can never read a\n second-order CA ellipsoid as a linear one.\n\n NOTE on the `_cartesian` accessor's reachable range: that accessor\n classifies but never repairs (`quality` ∈ {POSITIVE_DEFINITE,\n INDEFINITE}), is always state-only (`solved_width == 6`,\n `target_functional == CARTESIAN_STATE`, `has_mean_shift_input == 0`),\n and resolves Monte-Carlo epochs to an error rather than a row. The\n constant fields are carried for the future element-space / off-grid /\n CA-window accessors that *do* vary them."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanTaggedCovariance {
    #[doc = " Epoch of this covariance (TDB)."]
    pub epoch_mjd_tdb: f64,
    #[doc = " Propagated nominal state [x, y, z, vx, vy, vz] (AU, AU/day),\n co-located engine-side. The CORRECTED mean is\n `state + (has_mean_shift_prop ? mean_shift_prop : 0)\n        + (has_mean_shift_input ? mean_shift_input : 0)`."]
    pub state: [f64; 6usize],
    #[doc = " The 6×6 covariance (AU², AU²/day, AU²/day² blocks)."]
    pub matrix: [[f64; 6usize]; 6usize],
    #[doc = " `EMPYREAN_COVARIANCE_KIND_*`."]
    pub kind: u8,
    #[doc = " RNG seed — valid iff `has_mc_seed == 1` (kind == MONTE_CARLO)."]
    pub mc_seed: u64,
    #[doc = " Disambiguates a real `mc_seed == 0` from \"no seed\". 0 on the\n `_cartesian` accessor (MC resolves to an error there)."]
    pub has_mc_seed: u8,
    #[doc = " Second-order propagation mean shift δμ_prop (zero at t₀).\n Zero-filled when `has_mean_shift_prop == 0`."]
    pub mean_shift_prop: [f64; 6usize],
    pub has_mean_shift_prop: u8,
    #[doc = " OD-estimator mean shift δμ₀ (nonzero at t₀). Zero-filled when\n `has_mean_shift_input == 0` (always 0 on the `_cartesian` accessor)."]
    pub mean_shift_input: [f64; 6usize],
    pub has_mean_shift_input: u8,
    #[doc = " `EMPYREAN_COVARIANCE_QUALITY_*`."]
    pub quality: u8,
    #[doc = " `min_eig` for INDEFINITE / REPAIRED; `f64::NAN` for\n POSITIVE_DEFINITE. **Read-only provenance** — `isnan`-guard before\n any arithmetic; never feed to a clamp."]
    pub quality_min_eig: f64,
    #[doc = " `EMPYREAN_REPRESENTATION_*` (always CARTESIAN=0 on this accessor)."]
    pub representation: i32,
    #[doc = " Frame, same encoding as `EmpyreanPropagatedState.frame`."]
    pub frame: i32,
    #[doc = " Origin NAIF id, same encoding as `EmpyreanPropagatedState.origin`."]
    pub origin: i32,
    #[doc = " [A1, A2, A3] non-grav solved flags (0/1). The returned 6×6 is the\n MARGINALIZED state block of a possibly-wider fit."]
    pub non_grav: [u8; 3usize],
    #[doc = " Thrust Δv segments solved for."]
    pub thrust_segments: u32,
    #[doc = " `TaggedCovariance::solved_width()` (6 / 9 / 12 / …) — the scalar\n IP consumers key on (6 on this accessor)."]
    pub solved_width: u32,
    #[doc = " `EMPYREAN_TARGET_FUNCTIONAL_*` (always CARTESIAN_STATE on this accessor)."]
    pub target_functional: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanTaggedCovariance"]
        [::std::mem::size_of::<EmpyreanTaggedCovariance>() - 520usize];
    ["Alignment of EmpyreanTaggedCovariance"]
        [::std::mem::align_of::<EmpyreanTaggedCovariance>() - 8usize];
    ["Offset of field: EmpyreanTaggedCovariance::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, epoch_mjd_tdb) - 0usize];
    ["Offset of field: EmpyreanTaggedCovariance::state"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, state) - 8usize];
    ["Offset of field: EmpyreanTaggedCovariance::matrix"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, matrix) - 56usize];
    ["Offset of field: EmpyreanTaggedCovariance::kind"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, kind) - 344usize];
    ["Offset of field: EmpyreanTaggedCovariance::mc_seed"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, mc_seed) - 352usize];
    ["Offset of field: EmpyreanTaggedCovariance::has_mc_seed"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, has_mc_seed) - 360usize];
    ["Offset of field: EmpyreanTaggedCovariance::mean_shift_prop"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, mean_shift_prop) - 368usize];
    ["Offset of field: EmpyreanTaggedCovariance::has_mean_shift_prop"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, has_mean_shift_prop) - 416usize];
    ["Offset of field: EmpyreanTaggedCovariance::mean_shift_input"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, mean_shift_input) - 424usize];
    ["Offset of field: EmpyreanTaggedCovariance::has_mean_shift_input"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, has_mean_shift_input) - 472usize];
    ["Offset of field: EmpyreanTaggedCovariance::quality"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, quality) - 473usize];
    ["Offset of field: EmpyreanTaggedCovariance::quality_min_eig"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, quality_min_eig) - 480usize];
    ["Offset of field: EmpyreanTaggedCovariance::representation"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, representation) - 488usize];
    ["Offset of field: EmpyreanTaggedCovariance::frame"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, frame) - 492usize];
    ["Offset of field: EmpyreanTaggedCovariance::origin"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, origin) - 496usize];
    ["Offset of field: EmpyreanTaggedCovariance::non_grav"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, non_grav) - 500usize];
    ["Offset of field: EmpyreanTaggedCovariance::thrust_segments"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, thrust_segments) - 504usize];
    ["Offset of field: EmpyreanTaggedCovariance::solved_width"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, solved_width) - 508usize];
    ["Offset of field: EmpyreanTaggedCovariance::target_functional"]
        [::std::mem::offset_of!(EmpyreanTaggedCovariance, target_functional) - 512usize];
};
#[doc = " Owned series of [`EmpyreanTaggedCovariance`], one entry per output\n epoch. Free with [`empyrean_tagged_covariance_series_free`]."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanTaggedCovarianceSeries {
    pub entries: *mut EmpyreanTaggedCovariance,
    pub num_entries: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanTaggedCovarianceSeries"]
        [::std::mem::size_of::<EmpyreanTaggedCovarianceSeries>() - 16usize];
    ["Alignment of EmpyreanTaggedCovarianceSeries"]
        [::std::mem::align_of::<EmpyreanTaggedCovarianceSeries>() - 8usize];
    ["Offset of field: EmpyreanTaggedCovarianceSeries::entries"]
        [::std::mem::offset_of!(EmpyreanTaggedCovarianceSeries, entries) - 0usize];
    ["Offset of field: EmpyreanTaggedCovarianceSeries::num_entries"]
        [::std::mem::offset_of!(EmpyreanTaggedCovarianceSeries, num_entries) - 8usize];
};
impl Default for EmpyreanTaggedCovarianceSeries {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Opaque handle to an `empyrean_core::determination::Session`.\n\n Owns observations, the mask state, and the fit history. Construct\n with [`empyrean_session_new`]; release with\n [`empyrean_session_free`]. The handle is **not** thread-safe — do\n not share between threads without external synchronization."]
pub type EmpyreanSession = Session;
#[doc = " Pairwise diagnostic returned by [`empyrean_session_diff`]."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanSessionDiff {
    #[doc = " Δ reduced χ² (positive ⇒ current fit is worse than prior)."]
    pub reduced_chi2_delta: f64,
    #[doc = " Δ iteration count."]
    pub iterations_delta: i64,
    #[doc = " Δ number of observations used (negative ⇒ observations were\n masked between prior and current)."]
    pub n_observations_delta: i64,
    #[doc = " Final update-norm convergence metric on the current fit."]
    pub update_norm_current: f64,
    #[doc = " Final update-norm convergence metric on the prior fit."]
    pub update_norm_prior: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanSessionDiff"][::std::mem::size_of::<EmpyreanSessionDiff>() - 40usize];
    ["Alignment of EmpyreanSessionDiff"][::std::mem::align_of::<EmpyreanSessionDiff>() - 8usize];
    ["Offset of field: EmpyreanSessionDiff::reduced_chi2_delta"]
        [::std::mem::offset_of!(EmpyreanSessionDiff, reduced_chi2_delta) - 0usize];
    ["Offset of field: EmpyreanSessionDiff::iterations_delta"]
        [::std::mem::offset_of!(EmpyreanSessionDiff, iterations_delta) - 8usize];
    ["Offset of field: EmpyreanSessionDiff::n_observations_delta"]
        [::std::mem::offset_of!(EmpyreanSessionDiff, n_observations_delta) - 16usize];
    ["Offset of field: EmpyreanSessionDiff::update_norm_current"]
        [::std::mem::offset_of!(EmpyreanSessionDiff, update_norm_current) - 24usize];
    ["Offset of field: EmpyreanSessionDiff::update_norm_prior"]
        [::std::mem::offset_of!(EmpyreanSessionDiff, update_norm_prior) - 32usize];
};
#[doc = " A single body state for the C API."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct EmpyreanState {
    #[doc = " Epoch as MJD TDB."]
    pub epoch_mjd_tdb: f64,
    #[doc = " Position (AU)."]
    pub x: f64,
    pub y: f64,
    pub z: f64,
    #[doc = " Velocity (AU/day)."]
    pub vx: f64,
    pub vy: f64,
    pub vz: f64,
    #[doc = " Reference frame (EMPYREAN_FRAME_*)."]
    pub frame: i32,
    #[doc = " Center body NAIF ID."]
    pub origin: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanState"][::std::mem::size_of::<EmpyreanState>() - 64usize];
    ["Alignment of EmpyreanState"][::std::mem::align_of::<EmpyreanState>() - 8usize];
    ["Offset of field: EmpyreanState::epoch_mjd_tdb"]
        [::std::mem::offset_of!(EmpyreanState, epoch_mjd_tdb) - 0usize];
    ["Offset of field: EmpyreanState::x"][::std::mem::offset_of!(EmpyreanState, x) - 8usize];
    ["Offset of field: EmpyreanState::y"][::std::mem::offset_of!(EmpyreanState, y) - 16usize];
    ["Offset of field: EmpyreanState::z"][::std::mem::offset_of!(EmpyreanState, z) - 24usize];
    ["Offset of field: EmpyreanState::vx"][::std::mem::offset_of!(EmpyreanState, vx) - 32usize];
    ["Offset of field: EmpyreanState::vy"][::std::mem::offset_of!(EmpyreanState, vy) - 40usize];
    ["Offset of field: EmpyreanState::vz"][::std::mem::offset_of!(EmpyreanState, vz) - 48usize];
    ["Offset of field: EmpyreanState::frame"]
        [::std::mem::offset_of!(EmpyreanState, frame) - 56usize];
    ["Offset of field: EmpyreanState::origin"]
        [::std::mem::offset_of!(EmpyreanState, origin) - 60usize];
};
#[doc = " Result containing an array of body states."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmpyreanStateResult {
    pub states: *mut EmpyreanState,
    pub num_states: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmpyreanStateResult"][::std::mem::size_of::<EmpyreanStateResult>() - 16usize];
    ["Alignment of EmpyreanStateResult"][::std::mem::align_of::<EmpyreanStateResult>() - 8usize];
    ["Offset of field: EmpyreanStateResult::states"]
        [::std::mem::offset_of!(EmpyreanStateResult, states) - 0usize];
    ["Offset of field: EmpyreanStateResult::num_states"]
        [::std::mem::offset_of!(EmpyreanStateResult, num_states) - 8usize];
};
impl Default for EmpyreanStateResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub struct EmpyreanLib {
    __library: ::libloading::Library,
    pub empyrean_last_error: unsafe extern "C" fn() -> *const ::std::os::raw::c_char,
    pub empyrean_context_new_minimal: unsafe extern "C" fn(
        de440_path: *const ::std::os::raw::c_char,
        gm_path: *const ::std::os::raw::c_char,
    ) -> *mut EmpyreanContext,
    pub empyrean_context_with_spk: unsafe extern "C" fn(
        ctx: *mut EmpyreanContext,
        spk_path: *const ::std::os::raw::c_char,
    ) -> i32,
    pub empyrean_context_from_data_dir:
        unsafe extern "C" fn(data_dir: *const ::std::os::raw::c_char) -> *mut EmpyreanContext,
    pub empyrean_context_free: unsafe extern "C" fn(ctx: *mut EmpyreanContext),
    pub empyrean_default_data_dir: unsafe extern "C" fn() -> *mut ::std::os::raw::c_char,
    pub empyrean_string_free: unsafe extern "C" fn(s: *mut ::std::os::raw::c_char),
    pub empyrean_version_string: unsafe extern "C" fn() -> *mut ::std::os::raw::c_char,
    pub empyrean_versions: unsafe extern "C" fn(out: *mut EmpyreanVersions) -> i32,
    pub empyrean_versions_free: unsafe extern "C" fn(versions: *mut EmpyreanVersions),
    pub empyrean_builtsystem_new: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        force_model: i32,
        frame: i32,
        encounter_timescale_divisor: f64,
        out: *mut *mut EmpyreanBuiltSystem,
    ) -> i32,
    pub empyrean_builtsystem_free: unsafe extern "C" fn(handle: *mut EmpyreanBuiltSystem),
    pub empyrean_builtsystem_propagate: unsafe extern "C" fn(
        handle: *const EmpyreanBuiltSystem,
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        times_ptr: *const f64,
        num_times: usize,
        config: *const EmpyreanPropagationConfig,
        result_out: *mut EmpyreanPropagationResult,
    ) -> i32,
    pub empyrean_builtsystem_generate_ephemeris: unsafe extern "C" fn(
        handle: *const EmpyreanBuiltSystem,
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        observers_ptr: *const EmpyreanObserver,
        num_observers: usize,
        config: *const EmpyreanEphemerisConfig,
        result_out: *mut EmpyreanEphemerisResult,
    ) -> i32,
    pub empyrean_builtsystem_describe: unsafe extern "C" fn(
        handle: *const EmpyreanBuiltSystem,
        out: *mut EmpyreanSystemDescription,
    ) -> i32,
    pub empyrean_builtsystem_description_free:
        unsafe extern "C" fn(desc: *mut EmpyreanSystemDescription),
    pub empyrean_generate_ephemeris: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        observers_ptr: *const EmpyreanObserver,
        num_observers: usize,
        config: *const EmpyreanEphemerisConfig,
        result_out: *mut EmpyreanEphemerisResult,
    ) -> i32,
    pub empyrean_ephemeris_result_free: unsafe extern "C" fn(result: *mut EmpyreanEphemerisResult),
    pub empyrean_compute_impact_probabilities: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        end_mjd_tdb: f64,
        methods_ptr: *const EmpyreanUncertaintyMethod,
        num_methods: usize,
        body_filter_naif: *const i32,
        num_body_filter: usize,
        result_out: *mut EmpyreanImpactProbabilitiesResult,
    ) -> i32,
    pub empyrean_compute_impact_probabilities_result_free:
        unsafe extern "C" fn(result: *mut EmpyreanImpactProbabilitiesResult),
    pub empyrean_compute_b_planes: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        end_mjd_tdb: f64,
        methods_ptr: *const EmpyreanUncertaintyMethod,
        num_methods: usize,
        body_filter_naif: *const i32,
        num_body_filter: usize,
        result_out: *mut EmpyreanBPlanesResult,
    ) -> i32,
    pub empyrean_compute_b_planes_result_free:
        unsafe extern "C" fn(result: *mut EmpyreanBPlanesResult),
    pub empyrean_orbits_batch_free: unsafe extern "C" fn(batch: *mut EmpyreanOrbitBatch),
    pub empyrean_orbits_read_parquet: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        out: *mut EmpyreanOrbitBatch,
    ) -> i32,
    pub empyrean_orbits_write_parquet: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        batch: *const EmpyreanOrbitBatch,
    ) -> i32,
    pub empyrean_orbits_read_json: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        out: *mut EmpyreanOrbitBatch,
    ) -> i32,
    pub empyrean_orbits_write_json: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        batch: *const EmpyreanOrbitBatch,
    ) -> i32,
    pub empyrean_orbits_read_csv: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        out: *mut EmpyreanOrbitBatch,
    ) -> i32,
    pub empyrean_orbits_write_csv: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        batch: *const EmpyreanOrbitBatch,
    ) -> i32,
    pub empyrean_ephemeris_write_parquet: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        entries_ptr: *const EmpyreanEphemerisEntry,
        num_entries: usize,
    ) -> i32,
    pub empyrean_ephemeris_write_json: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        entries_ptr: *const EmpyreanEphemerisEntry,
        num_entries: usize,
    ) -> i32,
    pub empyrean_ephemeris_write_csv: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        entries_ptr: *const EmpyreanEphemerisEntry,
        num_entries: usize,
    ) -> i32,
    pub empyrean_events_write_parquet: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        events_ptr: *const EmpyreanEvent,
        num_events: usize,
    ) -> i32,
    pub empyrean_events_write_json: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        events_ptr: *const EmpyreanEvent,
        num_events: usize,
    ) -> i32,
    pub empyrean_events_write_csv: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        events_ptr: *const EmpyreanEvent,
        num_events: usize,
    ) -> i32,
    pub empyrean_residuals_write_parquet: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        obs_ptr: *const EmpyreanObservationResult,
        num_obs: usize,
    ) -> i32,
    pub empyrean_residuals_write_json: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        obs_ptr: *const EmpyreanObservationResult,
        num_obs: usize,
    ) -> i32,
    pub empyrean_residuals_write_csv: unsafe extern "C" fn(
        path: *const ::std::os::raw::c_char,
        obs_ptr: *const EmpyreanObservationResult,
        num_obs: usize,
    ) -> i32,
    pub empyrean_eigenvector_max_6x6: unsafe extern "C" fn(
        matrix: *const [[f64; 6usize]; 6usize],
        eigenvalue_out: *mut f64,
        eigenvector_out: *mut [f64; 6usize],
    ) -> i32,
    pub empyrean_split_gaussian: unsafe extern "C" fn(
        mean: *const [f64; 6usize],
        covariance: *const [[f64; 6usize]; 6usize],
        k: usize,
        weights_out: *mut f64,
        means_out: *mut [f64; 6usize],
        covariances_out: *mut [[f64; 6usize]; 6usize],
    ) -> i32,
    pub empyrean_get_observers: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        obs_codes: *const *const ::std::os::raw::c_char,
        num_codes: usize,
        epochs_mjd_tdb: *const f64,
        num_epochs: usize,
        result_out: *mut EmpyreanObserverResult,
    ) -> i32,
    pub empyrean_observer_result_free: unsafe extern "C" fn(result: *mut EmpyreanObserverResult),
    pub empyrean_abi_version: unsafe extern "C" fn() -> u32,
    pub empyrean_read_ades: unsafe extern "C" fn(
        content: *const ::std::os::raw::c_char,
        observations_out: *mut *mut EmpyreanObservation,
        num_observations_out: *mut usize,
        radar_out: *mut *mut EmpyreanRadarObservation,
        num_radar_out: *mut usize,
    ) -> i32,
    pub empyrean_observations_from_array: unsafe extern "C" fn(
        input: *const EmpyreanObservation,
        num: usize,
        out_ptr: *mut *mut EmpyreanObservation,
        out_num: *mut usize,
    ) -> i32,
    pub empyrean_observations_free:
        unsafe extern "C" fn(observations: *mut EmpyreanObservation, num: usize),
    pub empyrean_radar_observations_from_array: unsafe extern "C" fn(
        input: *const EmpyreanRadarObservation,
        num: usize,
        out_ptr: *mut *mut EmpyreanRadarObservation,
        out_num: *mut usize,
    ) -> i32,
    pub empyrean_radar_observations_free:
        unsafe extern "C" fn(observations: *mut EmpyreanRadarObservation, num: usize),
    pub empyrean_determine: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        observations: *const EmpyreanObservation,
        num_observations: usize,
        radar: *const EmpyreanRadarObservation,
        num_radar: usize,
        initial_orbits: *const EmpyreanOrbit,
        num_initial_orbits: usize,
        config: *const EmpyreanODConfig,
        result_out: *mut EmpyreanODResult,
    ) -> i32,
    pub empyrean_od_result_free: unsafe extern "C" fn(result: *mut EmpyreanODResult),
    pub empyrean_evaluate: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        orbit: *const EmpyreanOrbit,
        observations: *const EmpyreanObservation,
        num_observations: usize,
        config: *const EmpyreanODConfig,
        result_out: *mut EmpyreanEvaluateResult,
    ) -> i32,
    pub empyrean_evaluate_result_free: unsafe extern "C" fn(result: *mut EmpyreanEvaluateResult),
    pub empyrean_refine: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        orbit: *const EmpyreanOrbit,
        observations: *const EmpyreanObservation,
        num_observations: usize,
        config: *const EmpyreanODConfig,
        result_out: *mut EmpyreanODResult,
    ) -> i32,
    pub empyrean_evaluate_plan: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        orbit: *const EmpyreanOrbit,
        orbit_id: *const ::std::os::raw::c_char,
        planned: *const EmpyreanPlannedObservation,
        num_planned: usize,
        config: *const EmpyreanPlanningConfig,
        result_out: *mut EmpyreanPlanResult,
    ) -> i32,
    pub empyrean_plan_result_free: unsafe extern "C" fn(result: *mut EmpyreanPlanResult),
    pub empyrean_propagate: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        times_ptr: *const f64,
        num_times: usize,
        config: *const EmpyreanPropagationConfig,
        result_out: *mut EmpyreanPropagationResult,
    ) -> i32,
    pub empyrean_propagation_result_free:
        unsafe extern "C" fn(result: *mut EmpyreanPropagationResult),
    pub empyrean_propagation_covariance_series_cartesian: unsafe extern "C" fn(
        result: *const EmpyreanPropagationResult,
        orbit_index: usize,
        out_series: *mut *mut EmpyreanTaggedCovarianceSeries,
    ) -> i32,
    pub empyrean_propagation_covariance_at_cartesian: unsafe extern "C" fn(
        result: *const EmpyreanPropagationResult,
        orbit_index: usize,
        epoch_index: usize,
        out: *mut EmpyreanTaggedCovariance,
    ) -> i32,
    pub empyrean_tagged_covariance_series_free:
        unsafe extern "C" fn(series: *mut EmpyreanTaggedCovarianceSeries),
    pub empyrean_query_sbdb: unsafe extern "C" fn(
        object_ids: *const *const ::std::os::raw::c_char,
        num_object_ids: usize,
        cache_dir: *const ::std::os::raw::c_char,
        out: *mut EmpyreanOrbitBatch,
    ) -> i32,
    pub empyrean_query_horizons: unsafe extern "C" fn(
        object_ids: *const *const ::std::os::raw::c_char,
        num_object_ids: usize,
        obs_code: *const ::std::os::raw::c_char,
        times_mjd_tdb: *const f64,
        num_times: usize,
        cache_dir: *const ::std::os::raw::c_char,
        out: *mut EmpyreanEphemerisResult,
    ) -> i32,
    pub empyrean_query_horizons_vectors: unsafe extern "C" fn(
        command: *const ::std::os::raw::c_char,
        epoch_mjd_tdb: f64,
        cache_dir: *const ::std::os::raw::c_char,
        out_pos: *mut f64,
        out_vel: *mut f64,
    ) -> i32,
    pub empyrean_query_observations: unsafe extern "C" fn(
        designations: *const *const ::std::os::raw::c_char,
        num_designations: usize,
        cache_dir: *const ::std::os::raw::c_char,
        out_ptr: *mut *mut EmpyreanObservation,
        out_num: *mut usize,
    ) -> i32,
    pub empyrean_query_radar: unsafe extern "C" fn(
        designations: *const *const ::std::os::raw::c_char,
        num_designations: usize,
        cache_dir: *const ::std::os::raw::c_char,
        out_ptr: *mut *mut EmpyreanRadarObservation,
        out_num: *mut usize,
    ) -> i32,
    pub empyrean_session_new: unsafe extern "C" fn(
        observations: *const EmpyreanObservation,
        num_observations: usize,
        config: *const EmpyreanODConfig,
    ) -> *mut EmpyreanSession,
    pub empyrean_session_free: unsafe extern "C" fn(session: *mut EmpyreanSession),
    pub empyrean_session_n_observations:
        unsafe extern "C" fn(session: *const EmpyreanSession) -> usize,
    pub empyrean_session_n_masked: unsafe extern "C" fn(session: *const EmpyreanSession) -> usize,
    pub empyrean_session_n_active: unsafe extern "C" fn(session: *const EmpyreanSession) -> usize,
    pub empyrean_session_mask:
        unsafe extern "C" fn(session: *mut EmpyreanSession, idx: usize) -> i32,
    pub empyrean_session_unmask:
        unsafe extern "C" fn(session: *mut EmpyreanSession, idx: usize) -> i32,
    pub empyrean_session_unmask_all: unsafe extern "C" fn(session: *mut EmpyreanSession) -> i32,
    pub empyrean_session_is_masked:
        unsafe extern "C" fn(session: *const EmpyreanSession, idx: usize) -> u8,
    pub empyrean_session_refine: unsafe extern "C" fn(
        session: *mut EmpyreanSession,
        ctx: *const EmpyreanContext,
        result_out: *mut EmpyreanODResult,
    ) -> i32,
    pub empyrean_session_history_len:
        unsafe extern "C" fn(session: *const EmpyreanSession) -> usize,
    pub empyrean_session_get_history: unsafe extern "C" fn(
        session: *const EmpyreanSession,
        idx: usize,
        result_out: *mut EmpyreanODResult,
    ) -> i32,
    pub empyrean_session_diff: unsafe extern "C" fn(
        session: *const EmpyreanSession,
        prior_idx: usize,
        diff_out: *mut EmpyreanSessionDiff,
    ) -> i32,
    pub empyrean_get_states: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        target_naif_id: i32,
        center_naif_id: i32,
        epochs_mjd_tdb: *const f64,
        num_epochs: usize,
        frame: i32,
        result_out: *mut EmpyreanStateResult,
    ) -> i32,
    pub empyrean_state_result_free: unsafe extern "C" fn(result: *mut EmpyreanStateResult),
    pub empyrean_iso_to_mjd: unsafe extern "C" fn(
        iso: *const ::std::os::raw::c_char,
        scale: i32,
        out_mjd: *mut f64,
    ) -> i32,
    pub empyrean_mjd_to_iso: unsafe extern "C" fn(
        mjd: f64,
        scale: i32,
        out_buf: *mut ::std::os::raw::c_char,
        buf_len: usize,
    ) -> i32,
    pub empyrean_transform_coordinates: unsafe extern "C" fn(
        ctx: *const EmpyreanContext,
        input: *const CoordinateState,
        target_representation: i32,
        target_frame: i32,
        target_origin: i32,
        output: *mut CoordinateState,
    ) -> i32,
}
impl EmpyreanLib {
    pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
    where
        P: AsRef<::std::ffi::OsStr>,
    {
        let library = ::libloading::Library::new(path)?;
        Self::from_library(library)
    }
    pub unsafe fn from_library<L>(library: L) -> Result<Self, ::libloading::Error>
    where
        L: Into<::libloading::Library>,
    {
        let __library = library.into();
        let empyrean_last_error = __library.get(b"empyrean_last_error\0").map(|sym| *sym)?;
        let empyrean_context_new_minimal = __library
            .get(b"empyrean_context_new_minimal\0")
            .map(|sym| *sym)?;
        let empyrean_context_with_spk = __library
            .get(b"empyrean_context_with_spk\0")
            .map(|sym| *sym)?;
        let empyrean_context_from_data_dir = __library
            .get(b"empyrean_context_from_data_dir\0")
            .map(|sym| *sym)?;
        let empyrean_context_free = __library.get(b"empyrean_context_free\0").map(|sym| *sym)?;
        let empyrean_default_data_dir = __library
            .get(b"empyrean_default_data_dir\0")
            .map(|sym| *sym)?;
        let empyrean_string_free = __library.get(b"empyrean_string_free\0").map(|sym| *sym)?;
        let empyrean_version_string = __library
            .get(b"empyrean_version_string\0")
            .map(|sym| *sym)?;
        let empyrean_versions = __library.get(b"empyrean_versions\0").map(|sym| *sym)?;
        let empyrean_versions_free = __library.get(b"empyrean_versions_free\0").map(|sym| *sym)?;
        let empyrean_builtsystem_new = __library
            .get(b"empyrean_builtsystem_new\0")
            .map(|sym| *sym)?;
        let empyrean_builtsystem_free = __library
            .get(b"empyrean_builtsystem_free\0")
            .map(|sym| *sym)?;
        let empyrean_builtsystem_propagate = __library
            .get(b"empyrean_builtsystem_propagate\0")
            .map(|sym| *sym)?;
        let empyrean_builtsystem_generate_ephemeris = __library
            .get(b"empyrean_builtsystem_generate_ephemeris\0")
            .map(|sym| *sym)?;
        let empyrean_builtsystem_describe = __library
            .get(b"empyrean_builtsystem_describe\0")
            .map(|sym| *sym)?;
        let empyrean_builtsystem_description_free = __library
            .get(b"empyrean_builtsystem_description_free\0")
            .map(|sym| *sym)?;
        let empyrean_generate_ephemeris = __library
            .get(b"empyrean_generate_ephemeris\0")
            .map(|sym| *sym)?;
        let empyrean_ephemeris_result_free = __library
            .get(b"empyrean_ephemeris_result_free\0")
            .map(|sym| *sym)?;
        let empyrean_compute_impact_probabilities = __library
            .get(b"empyrean_compute_impact_probabilities\0")
            .map(|sym| *sym)?;
        let empyrean_compute_impact_probabilities_result_free = __library
            .get(b"empyrean_compute_impact_probabilities_result_free\0")
            .map(|sym| *sym)?;
        let empyrean_compute_b_planes = __library
            .get(b"empyrean_compute_b_planes\0")
            .map(|sym| *sym)?;
        let empyrean_compute_b_planes_result_free = __library
            .get(b"empyrean_compute_b_planes_result_free\0")
            .map(|sym| *sym)?;
        let empyrean_orbits_batch_free = __library
            .get(b"empyrean_orbits_batch_free\0")
            .map(|sym| *sym)?;
        let empyrean_orbits_read_parquet = __library
            .get(b"empyrean_orbits_read_parquet\0")
            .map(|sym| *sym)?;
        let empyrean_orbits_write_parquet = __library
            .get(b"empyrean_orbits_write_parquet\0")
            .map(|sym| *sym)?;
        let empyrean_orbits_read_json = __library
            .get(b"empyrean_orbits_read_json\0")
            .map(|sym| *sym)?;
        let empyrean_orbits_write_json = __library
            .get(b"empyrean_orbits_write_json\0")
            .map(|sym| *sym)?;
        let empyrean_orbits_read_csv = __library
            .get(b"empyrean_orbits_read_csv\0")
            .map(|sym| *sym)?;
        let empyrean_orbits_write_csv = __library
            .get(b"empyrean_orbits_write_csv\0")
            .map(|sym| *sym)?;
        let empyrean_ephemeris_write_parquet = __library
            .get(b"empyrean_ephemeris_write_parquet\0")
            .map(|sym| *sym)?;
        let empyrean_ephemeris_write_json = __library
            .get(b"empyrean_ephemeris_write_json\0")
            .map(|sym| *sym)?;
        let empyrean_ephemeris_write_csv = __library
            .get(b"empyrean_ephemeris_write_csv\0")
            .map(|sym| *sym)?;
        let empyrean_events_write_parquet = __library
            .get(b"empyrean_events_write_parquet\0")
            .map(|sym| *sym)?;
        let empyrean_events_write_json = __library
            .get(b"empyrean_events_write_json\0")
            .map(|sym| *sym)?;
        let empyrean_events_write_csv = __library
            .get(b"empyrean_events_write_csv\0")
            .map(|sym| *sym)?;
        let empyrean_residuals_write_parquet = __library
            .get(b"empyrean_residuals_write_parquet\0")
            .map(|sym| *sym)?;
        let empyrean_residuals_write_json = __library
            .get(b"empyrean_residuals_write_json\0")
            .map(|sym| *sym)?;
        let empyrean_residuals_write_csv = __library
            .get(b"empyrean_residuals_write_csv\0")
            .map(|sym| *sym)?;
        let empyrean_eigenvector_max_6x6 = __library
            .get(b"empyrean_eigenvector_max_6x6\0")
            .map(|sym| *sym)?;
        let empyrean_split_gaussian = __library
            .get(b"empyrean_split_gaussian\0")
            .map(|sym| *sym)?;
        let empyrean_get_observers = __library.get(b"empyrean_get_observers\0").map(|sym| *sym)?;
        let empyrean_observer_result_free = __library
            .get(b"empyrean_observer_result_free\0")
            .map(|sym| *sym)?;
        let empyrean_abi_version = __library.get(b"empyrean_abi_version\0").map(|sym| *sym)?;
        let empyrean_read_ades = __library.get(b"empyrean_read_ades\0").map(|sym| *sym)?;
        let empyrean_observations_from_array = __library
            .get(b"empyrean_observations_from_array\0")
            .map(|sym| *sym)?;
        let empyrean_observations_free = __library
            .get(b"empyrean_observations_free\0")
            .map(|sym| *sym)?;
        let empyrean_radar_observations_from_array = __library
            .get(b"empyrean_radar_observations_from_array\0")
            .map(|sym| *sym)?;
        let empyrean_radar_observations_free = __library
            .get(b"empyrean_radar_observations_free\0")
            .map(|sym| *sym)?;
        let empyrean_determine = __library.get(b"empyrean_determine\0").map(|sym| *sym)?;
        let empyrean_od_result_free = __library
            .get(b"empyrean_od_result_free\0")
            .map(|sym| *sym)?;
        let empyrean_evaluate = __library.get(b"empyrean_evaluate\0").map(|sym| *sym)?;
        let empyrean_evaluate_result_free = __library
            .get(b"empyrean_evaluate_result_free\0")
            .map(|sym| *sym)?;
        let empyrean_refine = __library.get(b"empyrean_refine\0").map(|sym| *sym)?;
        let empyrean_evaluate_plan = __library.get(b"empyrean_evaluate_plan\0").map(|sym| *sym)?;
        let empyrean_plan_result_free = __library
            .get(b"empyrean_plan_result_free\0")
            .map(|sym| *sym)?;
        let empyrean_propagate = __library.get(b"empyrean_propagate\0").map(|sym| *sym)?;
        let empyrean_propagation_result_free = __library
            .get(b"empyrean_propagation_result_free\0")
            .map(|sym| *sym)?;
        let empyrean_propagation_covariance_series_cartesian = __library
            .get(b"empyrean_propagation_covariance_series_cartesian\0")
            .map(|sym| *sym)?;
        let empyrean_propagation_covariance_at_cartesian = __library
            .get(b"empyrean_propagation_covariance_at_cartesian\0")
            .map(|sym| *sym)?;
        let empyrean_tagged_covariance_series_free = __library
            .get(b"empyrean_tagged_covariance_series_free\0")
            .map(|sym| *sym)?;
        let empyrean_query_sbdb = __library.get(b"empyrean_query_sbdb\0").map(|sym| *sym)?;
        let empyrean_query_horizons = __library
            .get(b"empyrean_query_horizons\0")
            .map(|sym| *sym)?;
        let empyrean_query_horizons_vectors = __library
            .get(b"empyrean_query_horizons_vectors\0")
            .map(|sym| *sym)?;
        let empyrean_query_observations = __library
            .get(b"empyrean_query_observations\0")
            .map(|sym| *sym)?;
        let empyrean_query_radar = __library.get(b"empyrean_query_radar\0").map(|sym| *sym)?;
        let empyrean_session_new = __library.get(b"empyrean_session_new\0").map(|sym| *sym)?;
        let empyrean_session_free = __library.get(b"empyrean_session_free\0").map(|sym| *sym)?;
        let empyrean_session_n_observations = __library
            .get(b"empyrean_session_n_observations\0")
            .map(|sym| *sym)?;
        let empyrean_session_n_masked = __library
            .get(b"empyrean_session_n_masked\0")
            .map(|sym| *sym)?;
        let empyrean_session_n_active = __library
            .get(b"empyrean_session_n_active\0")
            .map(|sym| *sym)?;
        let empyrean_session_mask = __library.get(b"empyrean_session_mask\0").map(|sym| *sym)?;
        let empyrean_session_unmask = __library
            .get(b"empyrean_session_unmask\0")
            .map(|sym| *sym)?;
        let empyrean_session_unmask_all = __library
            .get(b"empyrean_session_unmask_all\0")
            .map(|sym| *sym)?;
        let empyrean_session_is_masked = __library
            .get(b"empyrean_session_is_masked\0")
            .map(|sym| *sym)?;
        let empyrean_session_refine = __library
            .get(b"empyrean_session_refine\0")
            .map(|sym| *sym)?;
        let empyrean_session_history_len = __library
            .get(b"empyrean_session_history_len\0")
            .map(|sym| *sym)?;
        let empyrean_session_get_history = __library
            .get(b"empyrean_session_get_history\0")
            .map(|sym| *sym)?;
        let empyrean_session_diff = __library.get(b"empyrean_session_diff\0").map(|sym| *sym)?;
        let empyrean_get_states = __library.get(b"empyrean_get_states\0").map(|sym| *sym)?;
        let empyrean_state_result_free = __library
            .get(b"empyrean_state_result_free\0")
            .map(|sym| *sym)?;
        let empyrean_iso_to_mjd = __library.get(b"empyrean_iso_to_mjd\0").map(|sym| *sym)?;
        let empyrean_mjd_to_iso = __library.get(b"empyrean_mjd_to_iso\0").map(|sym| *sym)?;
        let empyrean_transform_coordinates = __library
            .get(b"empyrean_transform_coordinates\0")
            .map(|sym| *sym)?;
        Ok(EmpyreanLib {
            __library,
            empyrean_last_error,
            empyrean_context_new_minimal,
            empyrean_context_with_spk,
            empyrean_context_from_data_dir,
            empyrean_context_free,
            empyrean_default_data_dir,
            empyrean_string_free,
            empyrean_version_string,
            empyrean_versions,
            empyrean_versions_free,
            empyrean_builtsystem_new,
            empyrean_builtsystem_free,
            empyrean_builtsystem_propagate,
            empyrean_builtsystem_generate_ephemeris,
            empyrean_builtsystem_describe,
            empyrean_builtsystem_description_free,
            empyrean_generate_ephemeris,
            empyrean_ephemeris_result_free,
            empyrean_compute_impact_probabilities,
            empyrean_compute_impact_probabilities_result_free,
            empyrean_compute_b_planes,
            empyrean_compute_b_planes_result_free,
            empyrean_orbits_batch_free,
            empyrean_orbits_read_parquet,
            empyrean_orbits_write_parquet,
            empyrean_orbits_read_json,
            empyrean_orbits_write_json,
            empyrean_orbits_read_csv,
            empyrean_orbits_write_csv,
            empyrean_ephemeris_write_parquet,
            empyrean_ephemeris_write_json,
            empyrean_ephemeris_write_csv,
            empyrean_events_write_parquet,
            empyrean_events_write_json,
            empyrean_events_write_csv,
            empyrean_residuals_write_parquet,
            empyrean_residuals_write_json,
            empyrean_residuals_write_csv,
            empyrean_eigenvector_max_6x6,
            empyrean_split_gaussian,
            empyrean_get_observers,
            empyrean_observer_result_free,
            empyrean_abi_version,
            empyrean_read_ades,
            empyrean_observations_from_array,
            empyrean_observations_free,
            empyrean_radar_observations_from_array,
            empyrean_radar_observations_free,
            empyrean_determine,
            empyrean_od_result_free,
            empyrean_evaluate,
            empyrean_evaluate_result_free,
            empyrean_refine,
            empyrean_evaluate_plan,
            empyrean_plan_result_free,
            empyrean_propagate,
            empyrean_propagation_result_free,
            empyrean_propagation_covariance_series_cartesian,
            empyrean_propagation_covariance_at_cartesian,
            empyrean_tagged_covariance_series_free,
            empyrean_query_sbdb,
            empyrean_query_horizons,
            empyrean_query_horizons_vectors,
            empyrean_query_observations,
            empyrean_query_radar,
            empyrean_session_new,
            empyrean_session_free,
            empyrean_session_n_observations,
            empyrean_session_n_masked,
            empyrean_session_n_active,
            empyrean_session_mask,
            empyrean_session_unmask,
            empyrean_session_unmask_all,
            empyrean_session_is_masked,
            empyrean_session_refine,
            empyrean_session_history_len,
            empyrean_session_get_history,
            empyrean_session_diff,
            empyrean_get_states,
            empyrean_state_result_free,
            empyrean_iso_to_mjd,
            empyrean_mjd_to_iso,
            empyrean_transform_coordinates,
        })
    }
    #[doc = " Return a pointer to the last error message (thread-local, null-terminated).\n\n The pointer is valid until the next call that sets an error on the same\n thread."]
    pub unsafe fn empyrean_last_error(&self) -> *const ::std::os::raw::c_char {
        (self.empyrean_last_error)()
    }
    #[doc = " Create a **minimal** `EmpyreanContext` from a DE440 SPK file and a\n GM TPC file.\n\n Loads ONLY the planetary ephemeris and gravitational parameters —\n no Earth/Moon BPC kernels, no SB441-N16 asteroid perturbers, no\n MPC observatory codes, no Earth gravity field. This is sufficient\n for coordinate transforms and basic propagation under the\n `Approximate` force model, but is **not** enough for production\n orbit propagation, orbit determination, or topocentric ephemeris\n generation. Most callers should use\n [`empyrean_context_from_data_dir`] instead, which loads the full\n Standard-tier kernel set (downloading any missing files).\n\n Use [`empyrean_context_with_spk`] to chain additional SPK kernels\n (e.g. SB441-N16) onto a context built by this function.\n\n Returns a heap-allocated pointer on success, or null on error.\n Call `empyrean_last_error()` to retrieve the error message when null is\n returned.  The caller owns the returned pointer and must free it with\n `empyrean_context_free()`."]
    pub unsafe fn empyrean_context_new_minimal(
        &self,
        de440_path: *const ::std::os::raw::c_char,
        gm_path: *const ::std::os::raw::c_char,
    ) -> *mut EmpyreanContext {
        (self.empyrean_context_new_minimal)(de440_path, gm_path)
    }
    #[doc = " Load an additional SPK kernel into an existing context, in place.\n\n Useful for layering SB441-N16 asteroid perturbers or spacecraft\n SPK kernels (JWST, Gaia, custom probes) on top of a context built\n by [`empyrean_context_new_minimal`] or [`empyrean_context_from_data_dir`].\n The merged context picks up the new kernel's body coverage on top\n of what was already loaded.\n\n Returns 0 on success; negative error code on failure. The context\n pointer remains valid and unchanged when this function returns\n non-zero — failure does not invalidate `ctx`."]
    pub unsafe fn empyrean_context_with_spk(
        &self,
        ctx: *mut EmpyreanContext,
        spk_path: *const ::std::os::raw::c_char,
    ) -> i32 {
        (self.empyrean_context_with_spk)(ctx, spk_path)
    }
    #[doc = " Create a new `EmpyreanContext` from a data directory.\n\n Loads the full Standard-tier kernel set (DE440, SB441-N16, Earth/Moon\n BPCs, GM, MPC observatory codes) from `data_dir`, downloading any\n missing files. Pass null for `data_dir` to use the platform data\n directory (`~/.local/share/empyrean/data` on Linux,\n `~/Library/Application Support/empyrean/data` on macOS).\n\n Returns a heap-allocated pointer on success, or null on error.\n Call `empyrean_last_error()` to retrieve the error message when null is\n returned. The caller owns the returned pointer and must free it with\n `empyrean_context_free()`."]
    pub unsafe fn empyrean_context_from_data_dir(
        &self,
        data_dir: *const ::std::os::raw::c_char,
    ) -> *mut EmpyreanContext {
        (self.empyrean_context_from_data_dir)(data_dir)
    }
    #[doc = " Free an `EmpyreanContext` previously returned by `empyrean_context_new()`.\n\n Passing null is a no-op."]
    pub unsafe fn empyrean_context_free(&self, ctx: *mut EmpyreanContext) {
        (self.empyrean_context_free)(ctx)
    }
    #[doc = " Return the platform XDG-compliant default data directory as a\n heap-allocated, NUL-terminated UTF-8 string.\n\n Mirrors villeneuve's [`DataManager::new`] resolution: honors\n `EMPYREAN_DATA_DIR` first, then falls back to `dirs::data_dir()` —\n `~/.local/share/empyrean/data/` on Linux, `~/Library/Application\n Support/empyrean/data/` on macOS, `%APPDATA%\\empyrean\\data\\` on\n Windows. Cheap (no filesystem I/O).\n\n Returns null on failure (non-UTF-8 path, NUL byte in path, panic).\n Call `empyrean_last_error()` for details.\n\n **The caller owns the returned pointer and must release it with\n [`empyrean_string_free`].**"]
    pub unsafe fn empyrean_default_data_dir(&self) -> *mut ::std::os::raw::c_char {
        (self.empyrean_default_data_dir)()
    }
    #[doc = " Free a string returned by an empyrean C API function (e.g.,\n [`empyrean_default_data_dir`], [`empyrean_version_string`]).\n\n Passing null is a no-op. Passing any pointer not obtained from an\n empyrean string-returning function is undefined behavior."]
    pub unsafe fn empyrean_string_free(&self, s: *mut ::std::os::raw::c_char) {
        (self.empyrean_string_free)(s)
    }
    #[doc = " Multi-line version report — `empyrean-core <ver>\\nvilleneuve <ver>\\n…`.\n\n Mirrors [`empyrean_core::version_string`]. Useful for `--version`-style\n output and for verifying the build provenance of a deployed cdylib.\n Returns null on allocation failure (extremely unlikely — the strings\n are short and `&'static` underneath); call `empyrean_last_error()` if\n it does.\n\n **The caller owns the returned pointer and must release it with\n [`empyrean_string_free`].**"]
    pub unsafe fn empyrean_version_string(&self) -> *mut ::std::os::raw::c_char {
        (self.empyrean_version_string)()
    }
    #[doc = " Populate `out` with the per-crate versions of the empyrean stack.\n\n Returns 0 on success, non-zero on failure (`empyrean_last_error()`\n has the details). On failure `out` is left zero-initialized — no\n allocation needs freeing.\n\n **The caller owns the strings inside `out` and must release the\n whole struct with [`empyrean_versions_free`] when done.**"]
    pub unsafe fn empyrean_versions(&self, out: *mut EmpyreanVersions) -> i32 {
        (self.empyrean_versions)(out)
    }
    #[doc = " Free the version strings inside `versions` (each was heap-allocated\n by a previous successful [`empyrean_versions`] call). After this\n returns, `versions` itself is zero-initialized — safe to drop on\n the caller's stack.\n\n Passing null is a no-op. Calling this twice on the same struct, or\n passing a struct that wasn't populated by [`empyrean_versions`], is\n undefined behavior."]
    pub unsafe fn empyrean_versions_free(&self, versions: *mut EmpyreanVersions) {
        (self.empyrean_versions_free)(versions)
    }
    #[doc = " Assemble a reusable force-model handle for `(force_model, frame)` from\n `ctx`, freezing `encounter_timescale_divisor` into its key.\n\n - `force_model`: tier code (0=Approximate, 1=Basic, 2=Standard).\n - `frame`: output/integration frame code (0=ICRF, 1=EclipticJ2000, 2=ITRF93).\n - `encounter_timescale_divisor`: pass `0.0` to freeze the engine default;\n   any positive value freezes that divisor into the key *before* it is\n   used to validate calls.\n - `out`: receives the heap-allocated handle on success.\n\n The handle snapshots `ctx`'s kernel manifest at construction so\n [`empyrean_builtsystem_describe`] is self-contained. After you load any\n additional kernel into `ctx`, rebuild the handle — a stale handle is\n rejected loudly by every forward-model call, never silently reused.\n\n Returns [`EMPYREAN_BUILTSYSTEM_OK`] on success; on error, `out` is left\n untouched and `empyrean_last_error()` carries the message. The caller\n owns the returned handle and must free it with\n [`empyrean_builtsystem_free`]."]
    pub unsafe fn empyrean_builtsystem_new(
        &self,
        ctx: *const EmpyreanContext,
        force_model: i32,
        frame: i32,
        encounter_timescale_divisor: f64,
        out: *mut *mut EmpyreanBuiltSystem,
    ) -> i32 {
        (self.empyrean_builtsystem_new)(ctx, force_model, frame, encounter_timescale_divisor, out)
    }
    #[doc = " Free a handle previously returned by [`empyrean_builtsystem_new`].\n Passing null is a no-op."]
    pub unsafe fn empyrean_builtsystem_free(&self, handle: *mut EmpyreanBuiltSystem) {
        (self.empyrean_builtsystem_free)(handle)
    }
    #[doc = " Propagate `orbits` to `times` through the pre-built handle.\n\n Signature parallels the one-shot\n [`empyrean_propagate`](crate::propagate::empyrean_propagate) but takes\n `(handle, ctx, ...)`. Before dispatch the identity guard runs: the handle\n must have been built from `ctx`'s ephemeris data\n ([`EMPYREAN_BUILTSYSTEM_DATA_MISMATCH`]); the config must match the frozen\n key ([`EMPYREAN_BUILTSYSTEM_KEY_MISMATCH_FRAME`] /\n `_FORCE_MODEL` / `_DIVISOR`); and the data must be unmutated since build\n ([`EMPYREAN_BUILTSYSTEM_STALE`]). On pass, the result is bit-identical to\n the one-shot with the same config.\n\n On success populates `result_out`; free it with\n [`empyrean_propagation_result_free`](crate::propagate::empyrean_propagation_result_free)."]
    pub unsafe fn empyrean_builtsystem_propagate(
        &self,
        handle: *const EmpyreanBuiltSystem,
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        times_ptr: *const f64,
        num_times: usize,
        config: *const EmpyreanPropagationConfig,
        result_out: *mut EmpyreanPropagationResult,
    ) -> i32 {
        (self.empyrean_builtsystem_propagate)(
            handle, ctx, orbits_ptr, num_orbits, times_ptr, num_times, config, result_out,
        )
    }
    #[doc = " Generate predicted ephemeris for `orbits` and `observers` through the\n pre-built handle.\n\n Signature parallels the one-shot\n [`empyrean_generate_ephemeris`](crate::ephemeris::empyrean_generate_ephemeris)\n but takes `(handle, ctx, ...)`. Runs the same identity guard as\n [`empyrean_builtsystem_propagate`] before dispatch; on pass the result is\n bit-identical to the one-shot. Note the C-ABI ephemeris config carries no\n divisor knob, so a handle frozen at a non-default divisor is rejected here\n with [`EMPYREAN_BUILTSYSTEM_KEY_MISMATCH_DIVISOR`] rather than served under\n the wrong dynamics — build the handle with the default divisor for\n ephemeris reuse.\n\n On success populates `result_out`; free it with\n [`empyrean_ephemeris_result_free`](crate::ephemeris::empyrean_ephemeris_result_free)."]
    pub unsafe fn empyrean_builtsystem_generate_ephemeris(
        &self,
        handle: *const EmpyreanBuiltSystem,
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        observers_ptr: *const EmpyreanObserver,
        num_observers: usize,
        config: *const EmpyreanEphemerisConfig,
        result_out: *mut EmpyreanEphemerisResult,
    ) -> i32 {
        (self.empyrean_builtsystem_generate_ephemeris)(
            handle,
            ctx,
            orbits_ptr,
            num_orbits,
            observers_ptr,
            num_observers,
            config,
            result_out,
        )
    }
    #[doc = " Populate `out` with a full reproducibility summary of the handle's frozen\n force model and its captured kernel manifest.\n\n Every field is populated from the system description and the manifest\n snapshot — no field is left defaulted. Returns\n [`EMPYREAN_BUILTSYSTEM_OK`] on success. The caller owns the heap arrays\n inside `out` and must release them with\n [`empyrean_builtsystem_description_free`]."]
    pub unsafe fn empyrean_builtsystem_describe(
        &self,
        handle: *const EmpyreanBuiltSystem,
        out: *mut EmpyreanSystemDescription,
    ) -> i32 {
        (self.empyrean_builtsystem_describe)(handle, out)
    }
    #[doc = " Free the heap arrays inside a description populated by\n [`empyrean_builtsystem_describe`] (the perturber-id array and the kernel\n records with their C strings). After this returns `desc` is\n zero-initialized — safe to drop on the caller's stack. Passing null is a\n no-op."]
    pub unsafe fn empyrean_builtsystem_description_free(
        &self,
        desc: *mut EmpyreanSystemDescription,
    ) {
        (self.empyrean_builtsystem_description_free)(desc)
    }
    #[doc = " Generate predicted ephemeris for orbits and observers.\n\n Returns 0 on success, negative error code on failure.\n On success, `result_out` is populated with ephemeris entries:\n `num_orbits * num_observers` rows, orbit-major, and within each orbit\n in **observer-input order** (sensitivity rows follow the same order).\n Each observer carries its own epoch, so positional pairing against\n the input observers is safe within an orbit block.\n The caller must free the result with `empyrean_ephemeris_result_free()`."]
    pub unsafe fn empyrean_generate_ephemeris(
        &self,
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        observers_ptr: *const EmpyreanObserver,
        num_observers: usize,
        config: *const EmpyreanEphemerisConfig,
        result_out: *mut EmpyreanEphemerisResult,
    ) -> i32 {
        (self.empyrean_generate_ephemeris)(
            ctx,
            orbits_ptr,
            num_orbits,
            observers_ptr,
            num_observers,
            config,
            result_out,
        )
    }
    #[doc = " Free an ephemeris result previously returned by `empyrean_generate_ephemeris()`."]
    pub unsafe fn empyrean_ephemeris_result_free(&self, result: *mut EmpyreanEphemerisResult) {
        (self.empyrean_ephemeris_result_free)(result)
    }
    #[doc = " Run [`empyrean_core::impact::compute_impact_probabilities`] over a\n caller-supplied set of [`UncertaintyMethod`] variants and return\n the flattened IP records tagged by method.\n\n Caller is responsible for freeing the result via\n [`empyrean_compute_impact_probabilities_result_free`].\n\n # Returns\n `0` on success, negative on failure (see [`crate::set_last_error`]).\n\n # Safety\n All non-null pointer arguments must point to valid arrays of the\n indicated length for the duration of the call. The output struct\n is allocated by the caller; pointer fields inside it are allocated\n here and owned by the result."]
    pub unsafe fn empyrean_compute_impact_probabilities(
        &self,
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        end_mjd_tdb: f64,
        methods_ptr: *const EmpyreanUncertaintyMethod,
        num_methods: usize,
        body_filter_naif: *const i32,
        num_body_filter: usize,
        result_out: *mut EmpyreanImpactProbabilitiesResult,
    ) -> i32 {
        (self.empyrean_compute_impact_probabilities)(
            ctx,
            orbits_ptr,
            num_orbits,
            end_mjd_tdb,
            methods_ptr,
            num_methods,
            body_filter_naif,
            num_body_filter,
            result_out,
        )
    }
    #[doc = " Free the records array allocated by\n [`empyrean_compute_impact_probabilities`]. After calling, the\n struct's `records` is reset to null and `num_records` to 0."]
    pub unsafe fn empyrean_compute_impact_probabilities_result_free(
        &self,
        result: *mut EmpyreanImpactProbabilitiesResult,
    ) {
        (self.empyrean_compute_impact_probabilities_result_free)(result)
    }
    #[doc = " Run [`empyrean_core::impact::compute_b_planes`] over a caller-\n supplied set of [`UncertaintyMethod`] variants and return the\n flattened B-plane records tagged by method.\n\n Caller is responsible for freeing the result via\n [`empyrean_compute_b_planes_result_free`].\n\n # Safety\n Same contract as\n [`empyrean_compute_impact_probabilities`]."]
    pub unsafe fn empyrean_compute_b_planes(
        &self,
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        end_mjd_tdb: f64,
        methods_ptr: *const EmpyreanUncertaintyMethod,
        num_methods: usize,
        body_filter_naif: *const i32,
        num_body_filter: usize,
        result_out: *mut EmpyreanBPlanesResult,
    ) -> i32 {
        (self.empyrean_compute_b_planes)(
            ctx,
            orbits_ptr,
            num_orbits,
            end_mjd_tdb,
            methods_ptr,
            num_methods,
            body_filter_naif,
            num_body_filter,
            result_out,
        )
    }
    #[doc = " Free the records array allocated by [`empyrean_compute_b_planes`]."]
    pub unsafe fn empyrean_compute_b_planes_result_free(&self, result: *mut EmpyreanBPlanesResult) {
        (self.empyrean_compute_b_planes_result_free)(result)
    }
    #[doc = " Free a batch previously returned by an `empyrean_orbits_read_*`\n function. Passing null is a no-op."]
    pub unsafe fn empyrean_orbits_batch_free(&self, batch: *mut EmpyreanOrbitBatch) {
        (self.empyrean_orbits_batch_free)(batch)
    }
    #[doc = " Read an orbits parquet file. Caller frees the result with\n [`empyrean_orbits_batch_free`]."]
    pub unsafe fn empyrean_orbits_read_parquet(
        &self,
        path: *const ::std::os::raw::c_char,
        out: *mut EmpyreanOrbitBatch,
    ) -> i32 {
        (self.empyrean_orbits_read_parquet)(path, out)
    }
    #[doc = " Write an orbit batch to a parquet file."]
    pub unsafe fn empyrean_orbits_write_parquet(
        &self,
        path: *const ::std::os::raw::c_char,
        batch: *const EmpyreanOrbitBatch,
    ) -> i32 {
        (self.empyrean_orbits_write_parquet)(path, batch)
    }
    #[doc = " Read an orbits JSON file (array of orbit-row objects). Caller frees\n with [`empyrean_orbits_batch_free`]."]
    pub unsafe fn empyrean_orbits_read_json(
        &self,
        path: *const ::std::os::raw::c_char,
        out: *mut EmpyreanOrbitBatch,
    ) -> i32 {
        (self.empyrean_orbits_read_json)(path, out)
    }
    #[doc = " Write an orbit batch to JSON."]
    pub unsafe fn empyrean_orbits_write_json(
        &self,
        path: *const ::std::os::raw::c_char,
        batch: *const EmpyreanOrbitBatch,
    ) -> i32 {
        (self.empyrean_orbits_write_json)(path, batch)
    }
    #[doc = " Read an orbits CSV file.\n\n CSV does not carry covariance (use parquet for covariance round-trip)."]
    pub unsafe fn empyrean_orbits_read_csv(
        &self,
        path: *const ::std::os::raw::c_char,
        out: *mut EmpyreanOrbitBatch,
    ) -> i32 {
        (self.empyrean_orbits_read_csv)(path, out)
    }
    #[doc = " Write an orbit batch to CSV."]
    pub unsafe fn empyrean_orbits_write_csv(
        &self,
        path: *const ::std::os::raw::c_char,
        batch: *const EmpyreanOrbitBatch,
    ) -> i32 {
        (self.empyrean_orbits_write_csv)(path, batch)
    }
    #[doc = " Write ephemeris entries to parquet using the villeneuve schema."]
    pub unsafe fn empyrean_ephemeris_write_parquet(
        &self,
        path: *const ::std::os::raw::c_char,
        entries_ptr: *const EmpyreanEphemerisEntry,
        num_entries: usize,
    ) -> i32 {
        (self.empyrean_ephemeris_write_parquet)(path, entries_ptr, num_entries)
    }
    #[doc = " Write ephemeris entries to JSON."]
    pub unsafe fn empyrean_ephemeris_write_json(
        &self,
        path: *const ::std::os::raw::c_char,
        entries_ptr: *const EmpyreanEphemerisEntry,
        num_entries: usize,
    ) -> i32 {
        (self.empyrean_ephemeris_write_json)(path, entries_ptr, num_entries)
    }
    #[doc = " Write ephemeris entries to CSV."]
    pub unsafe fn empyrean_ephemeris_write_csv(
        &self,
        path: *const ::std::os::raw::c_char,
        entries_ptr: *const EmpyreanEphemerisEntry,
        num_entries: usize,
    ) -> i32 {
        (self.empyrean_ephemeris_write_csv)(path, entries_ptr, num_entries)
    }
    #[doc = " Write events to parquet."]
    pub unsafe fn empyrean_events_write_parquet(
        &self,
        path: *const ::std::os::raw::c_char,
        events_ptr: *const EmpyreanEvent,
        num_events: usize,
    ) -> i32 {
        (self.empyrean_events_write_parquet)(path, events_ptr, num_events)
    }
    #[doc = " Write events to JSON."]
    pub unsafe fn empyrean_events_write_json(
        &self,
        path: *const ::std::os::raw::c_char,
        events_ptr: *const EmpyreanEvent,
        num_events: usize,
    ) -> i32 {
        (self.empyrean_events_write_json)(path, events_ptr, num_events)
    }
    #[doc = " Write events to CSV."]
    pub unsafe fn empyrean_events_write_csv(
        &self,
        path: *const ::std::os::raw::c_char,
        events_ptr: *const EmpyreanEvent,
        num_events: usize,
    ) -> i32 {
        (self.empyrean_events_write_csv)(path, events_ptr, num_events)
    }
    #[doc = " Write OD residuals to parquet."]
    pub unsafe fn empyrean_residuals_write_parquet(
        &self,
        path: *const ::std::os::raw::c_char,
        obs_ptr: *const EmpyreanObservationResult,
        num_obs: usize,
    ) -> i32 {
        (self.empyrean_residuals_write_parquet)(path, obs_ptr, num_obs)
    }
    #[doc = " Write OD residuals to JSON."]
    pub unsafe fn empyrean_residuals_write_json(
        &self,
        path: *const ::std::os::raw::c_char,
        obs_ptr: *const EmpyreanObservationResult,
        num_obs: usize,
    ) -> i32 {
        (self.empyrean_residuals_write_json)(path, obs_ptr, num_obs)
    }
    #[doc = " Write OD residuals to CSV."]
    pub unsafe fn empyrean_residuals_write_csv(
        &self,
        path: *const ::std::os::raw::c_char,
        obs_ptr: *const EmpyreanObservationResult,
        num_obs: usize,
    ) -> i32 {
        (self.empyrean_residuals_write_csv)(path, obs_ptr, num_obs)
    }
    #[doc = " Find the dominant eigenvalue and eigenvector of a 6x6 symmetric matrix.\n\n Returns 0 on success. `eigenvalue_out` receives the eigenvalue,\n `eigenvector_out` receives the 6-element eigenvector."]
    pub unsafe fn empyrean_eigenvector_max_6x6(
        &self,
        matrix: *const [[f64; 6usize]; 6usize],
        eigenvalue_out: *mut f64,
        eigenvector_out: *mut [f64; 6usize],
    ) -> i32 {
        (self.empyrean_eigenvector_max_6x6)(matrix, eigenvalue_out, eigenvector_out)
    }
    #[doc = " Split a 6D Gaussian into K weighted components along the dominant\n eigenvector of the covariance.\n\n `weights_out`, `means_out`, `covariances_out` must point to arrays\n of size K, K×6, and K×6×6 respectively. Returns 0 on success."]
    pub unsafe fn empyrean_split_gaussian(
        &self,
        mean: *const [f64; 6usize],
        covariance: *const [[f64; 6usize]; 6usize],
        k: usize,
        weights_out: *mut f64,
        means_out: *mut [f64; 6usize],
        covariances_out: *mut [[f64; 6usize]; 6usize],
    ) -> i32 {
        (self.empyrean_split_gaussian)(mean, covariance, k, weights_out, means_out, covariances_out)
    }
    #[doc = " Compute observer states for given observatory codes and epochs.\n\n Returns 0 on success, negative error code on failure.\n On success, `result_out` is populated with observer states.\n The caller must free the result with `empyrean_observer_result_free()`."]
    pub unsafe fn empyrean_get_observers(
        &self,
        ctx: *const EmpyreanContext,
        obs_codes: *const *const ::std::os::raw::c_char,
        num_codes: usize,
        epochs_mjd_tdb: *const f64,
        num_epochs: usize,
        result_out: *mut EmpyreanObserverResult,
    ) -> i32 {
        (self.empyrean_get_observers)(
            ctx,
            obs_codes,
            num_codes,
            epochs_mjd_tdb,
            num_epochs,
            result_out,
        )
    }
    #[doc = " Free an observer result previously returned by `empyrean_get_observers()`.\n\n Passing a zeroed/null result is a no-op."]
    pub unsafe fn empyrean_observer_result_free(&self, result: *mut EmpyreanObserverResult) {
        (self.empyrean_observer_result_free)(result)
    }
    #[doc = " Runtime accessor for [`EMPYREAN_ABI_VERSION`] — lets a dynamically\n linked consumer confirm the loaded library's frozen-shape contract\n matches what it compiled against."]
    pub unsafe fn empyrean_abi_version(&self) -> u32 {
        (self.empyrean_abi_version)()
    }
    #[doc = " Read ADES PSV / MPC80 data from a string and pack into the C array.\n\n `path_or_content` is a null-terminated UTF-8 string with the ADES\n content directly (not a file path)."]
    pub unsafe fn empyrean_read_ades(
        &self,
        content: *const ::std::os::raw::c_char,
        observations_out: *mut *mut EmpyreanObservation,
        num_observations_out: *mut usize,
        radar_out: *mut *mut EmpyreanRadarObservation,
        num_radar_out: *mut usize,
    ) -> i32 {
        (self.empyrean_read_ades)(
            content,
            observations_out,
            num_observations_out,
            radar_out,
            num_radar_out,
        )
    }
    #[doc = " Free an observation array previously returned by `empyrean_read_ades()`.\n Copy a caller-owned array of [`EmpyreanObservation`] into a fresh\n allocation that matches the layout produced by\n [`empyrean_read_ades`].\n\n The strings on the input observations (`perm_id` / `prov_id` /\n `obs_time`) are duplicated into freshly-allocated `CString`s so the\n returned array owns its own memory independent of the input.\n\n On success populates `*out_ptr` with the new array and `*out_num`\n with its length, both freeable with [`empyrean_observations_free`].\n\n Returns 0 on success; negative error code on failure."]
    pub unsafe fn empyrean_observations_from_array(
        &self,
        input: *const EmpyreanObservation,
        num: usize,
        out_ptr: *mut *mut EmpyreanObservation,
        out_num: *mut usize,
    ) -> i32 {
        (self.empyrean_observations_from_array)(input, num, out_ptr, out_num)
    }
    pub unsafe fn empyrean_observations_free(
        &self,
        observations: *mut EmpyreanObservation,
        num: usize,
    ) {
        (self.empyrean_observations_free)(observations, num)
    }
    #[doc = " Copy a caller-owned array of [`EmpyreanRadarObservation`] into a fresh\n allocation matching the layout produced by [`empyrean_read_ades`].\n\n The nullable `*mut c_char` fields (`perm_id` / `prov_id` / `trk_sub` /\n `obs_time` / `remarks`) are duplicated into freshly-allocated\n `CString`s so the returned array owns its own memory independent of the\n input. All scalar fields (including the ADES-native delay/Doppler\n values) are copied verbatim — no unit conversion, nothing zeroed.\n\n On success populates `*out_ptr` with the new array and `*out_num` with\n its length, both freeable with [`empyrean_radar_observations_free`].\n\n Returns 0 on success; negative error code on failure."]
    pub unsafe fn empyrean_radar_observations_from_array(
        &self,
        input: *const EmpyreanRadarObservation,
        num: usize,
        out_ptr: *mut *mut EmpyreanRadarObservation,
        out_num: *mut usize,
    ) -> i32 {
        (self.empyrean_radar_observations_from_array)(input, num, out_ptr, out_num)
    }
    #[doc = " Free a radar observation array previously returned by\n [`empyrean_read_ades`] or [`empyrean_radar_observations_from_array`]."]
    pub unsafe fn empyrean_radar_observations_free(
        &self,
        observations: *mut EmpyreanRadarObservation,
        num: usize,
    ) {
        (self.empyrean_radar_observations_free)(observations, num)
    }
    #[doc = " Run the full orbit determination pipeline.\n\n When `num_initial_orbits > 0`, the supplied orbits are used as DC\n seeds (one per ADES object_id encountered in `observations`,\n matched by orbit index). Pass `null, 0` to let the IOD pipeline\n produce its own seeds."]
    pub unsafe fn empyrean_determine(
        &self,
        ctx: *const EmpyreanContext,
        observations: *const EmpyreanObservation,
        num_observations: usize,
        radar: *const EmpyreanRadarObservation,
        num_radar: usize,
        initial_orbits: *const EmpyreanOrbit,
        num_initial_orbits: usize,
        config: *const EmpyreanODConfig,
        result_out: *mut EmpyreanODResult,
    ) -> i32 {
        (self.empyrean_determine)(
            ctx,
            observations,
            num_observations,
            radar,
            num_radar,
            initial_orbits,
            num_initial_orbits,
            config,
            result_out,
        )
    }
    #[doc = " Free an OD result previously returned by `empyrean_determine()` or `empyrean_refine()`."]
    pub unsafe fn empyrean_od_result_free(&self, result: *mut EmpyreanODResult) {
        (self.empyrean_od_result_free)(result)
    }
    #[doc = " Evaluate residuals for a single orbit against observations."]
    pub unsafe fn empyrean_evaluate(
        &self,
        ctx: *const EmpyreanContext,
        orbit: *const EmpyreanOrbit,
        observations: *const EmpyreanObservation,
        num_observations: usize,
        config: *const EmpyreanODConfig,
        result_out: *mut EmpyreanEvaluateResult,
    ) -> i32 {
        (self.empyrean_evaluate)(
            ctx,
            orbit,
            observations,
            num_observations,
            config,
            result_out,
        )
    }
    #[doc = " Free an evaluate result previously returned by `empyrean_evaluate()`."]
    pub unsafe fn empyrean_evaluate_result_free(&self, result: *mut EmpyreanEvaluateResult) {
        (self.empyrean_evaluate_result_free)(result)
    }
    #[doc = " Refine a single orbit estimate with new observations using a\n Bayesian prior."]
    pub unsafe fn empyrean_refine(
        &self,
        ctx: *const EmpyreanContext,
        orbit: *const EmpyreanOrbit,
        observations: *const EmpyreanObservation,
        num_observations: usize,
        config: *const EmpyreanODConfig,
        result_out: *mut EmpyreanODResult,
    ) -> i32 {
        (self.empyrean_refine)(
            ctx,
            orbit,
            observations,
            num_observations,
            config,
            result_out,
        )
    }
    #[doc = " Evaluate an observation plan: how much each candidate observation would\n tighten the prior orbit covariance.\n\n `orbit` must carry a 6×6 Cartesian covariance (e.g. a `determine` result).\n `planned` is an array of `num_planned` candidate observations. `orbit_id`\n may be null (defaults to `\"orbit_0\"`). On success populates `*result_out`\n (caller-allocated); free with [`empyrean_plan_result_free`].\n\n Returns 0 on success, -1 for a null/invalid argument, -3 if planning fails\n (missing/singular prior covariance, an infeasible or invalid candidate, an\n ephemeris-generation error), -99 on an internal panic. The error message is\n retrievable via `empyrean_last_error()`."]
    pub unsafe fn empyrean_evaluate_plan(
        &self,
        ctx: *const EmpyreanContext,
        orbit: *const EmpyreanOrbit,
        orbit_id: *const ::std::os::raw::c_char,
        planned: *const EmpyreanPlannedObservation,
        num_planned: usize,
        config: *const EmpyreanPlanningConfig,
        result_out: *mut EmpyreanPlanResult,
    ) -> i32 {
        (self.empyrean_evaluate_plan)(
            ctx,
            orbit,
            orbit_id,
            planned,
            num_planned,
            config,
            result_out,
        )
    }
    #[doc = " Free the heap allocations inside a plan result populated by\n [`empyrean_evaluate_plan`]. Does not free the caller-allocated struct."]
    pub unsafe fn empyrean_plan_result_free(&self, result: *mut EmpyreanPlanResult) {
        (self.empyrean_plan_result_free)(result)
    }
    #[doc = " Propagate orbits to the requested target times.\n\n Returns 0 on success, negative error code on failure.\n On success, `result_out` is populated with the propagated states.\n The caller must free the result with `empyrean_propagation_result_free()`.\n\n States are flat in orbit-major order; within each orbit, rows are in\n **ascending epoch order, always** (engine guarantee since villeneuve\n v1.18.0), regardless of request order. Positional pairing against an\n ascending, duplicate-free request grid is exact; for any other\n request shape, join on `epoch_mjd_tdb`."]
    pub unsafe fn empyrean_propagate(
        &self,
        ctx: *const EmpyreanContext,
        orbits_ptr: *const EmpyreanOrbit,
        num_orbits: usize,
        times_ptr: *const f64,
        num_times: usize,
        config: *const EmpyreanPropagationConfig,
        result_out: *mut EmpyreanPropagationResult,
    ) -> i32 {
        (self.empyrean_propagate)(
            ctx, orbits_ptr, num_orbits, times_ptr, num_times, config, result_out,
        )
    }
    #[doc = " Free a propagation result previously returned by `empyrean_propagate()`."]
    pub unsafe fn empyrean_propagation_result_free(&self, result: *mut EmpyreanPropagationResult) {
        (self.empyrean_propagation_result_free)(result)
    }
    #[doc = " Resolved-kind tagged covariance at every output epoch for one orbit,\n Cartesian basis. On success `out_series` owns the array; free with\n [`empyrean_tagged_covariance_series_free`]. On error `out_series` is\n left null and the detail is on `empyrean_last_error()`.\n\n # Safety\n `result` must be a valid pointer returned by `empyrean_propagate`;\n `out_series` must be a valid pointer to write the result into."]
    pub unsafe fn empyrean_propagation_covariance_series_cartesian(
        &self,
        result: *const EmpyreanPropagationResult,
        orbit_index: usize,
        out_series: *mut *mut EmpyreanTaggedCovarianceSeries,
    ) -> i32 {
        (self.empyrean_propagation_covariance_series_cartesian)(result, orbit_index, out_series)
    }
    #[doc = " Resolved-kind tagged covariance at a single `(orbit_index,\n epoch_index)`, Cartesian basis (the gm-free point query). `out` is\n written on success.\n\n # Safety\n `result` and `out` must be valid pointers; `result` from `empyrean_propagate`."]
    pub unsafe fn empyrean_propagation_covariance_at_cartesian(
        &self,
        result: *const EmpyreanPropagationResult,
        orbit_index: usize,
        epoch_index: usize,
        out: *mut EmpyreanTaggedCovariance,
    ) -> i32 {
        (self.empyrean_propagation_covariance_at_cartesian)(result, orbit_index, epoch_index, out)
    }
    #[doc = " Free a series returned by\n [`empyrean_propagation_covariance_series_cartesian`].\n\n # Safety\n `series` must be null or a pointer returned by that accessor, freed once."]
    pub unsafe fn empyrean_tagged_covariance_series_free(
        &self,
        series: *mut EmpyreanTaggedCovarianceSeries,
    ) {
        (self.empyrean_tagged_covariance_series_free)(series)
    }
    #[doc = " Query the JPL Small-Body Database for one or more orbits.\n\n `object_ids` is an array of `num_object_ids` null-terminated UTF-8\n designations / names / SPK IDs (e.g. `\"apophis\"`, `\"99942\"`,\n `\"2024 YR4\"`, `\"67P\"`). `cache_dir` may be null to skip caching, or\n a directory path where SBDB JSON responses are cached on disk.\n\n On success the populated [`EmpyreanOrbitBatch`] must be released with\n [`empyrean_orbits_batch_free`](crate::io::empyrean_orbits_batch_free)."]
    pub unsafe fn empyrean_query_sbdb(
        &self,
        object_ids: *const *const ::std::os::raw::c_char,
        num_object_ids: usize,
        cache_dir: *const ::std::os::raw::c_char,
        out: *mut EmpyreanOrbitBatch,
    ) -> i32 {
        (self.empyrean_query_sbdb)(object_ids, num_object_ids, cache_dir, out)
    }
    #[doc = " Query JPL Horizons for predicted ephemeris records.\n\n `object_ids` is an array of `num_object_ids` null-terminated UTF-8\n designations / names / SPK IDs. `obs_code` is the MPC observatory\n code as a null-terminated string. `times_mjd_tdb` carries\n `num_times` epochs in MJD TDB.\n\n On success populates an [`EmpyreanEphemerisResult`] with one entry\n per `(object_id × epoch)`. Free with\n [`empyrean_ephemeris_result_free`](crate::ephemeris::empyrean_ephemeris_result_free).\n\n All angular values are converted to **degrees** at the FFI boundary\n (Horizons natively returns radians)."]
    pub unsafe fn empyrean_query_horizons(
        &self,
        object_ids: *const *const ::std::os::raw::c_char,
        num_object_ids: usize,
        obs_code: *const ::std::os::raw::c_char,
        times_mjd_tdb: *const f64,
        num_times: usize,
        cache_dir: *const ::std::os::raw::c_char,
        out: *mut EmpyreanEphemerisResult,
    ) -> i32 {
        (self.empyrean_query_horizons)(
            object_ids,
            num_object_ids,
            obs_code,
            times_mjd_tdb,
            num_times,
            cache_dir,
            out,
        )
    }
    #[doc = " Query JPL Horizons for a Cartesian state vector at a single epoch.\n\n `command` is the Horizons COMMAND string as a null-terminated UTF-8\n string (e.g. `\"99942;\"`, `\"DES=C/2019 Q4;\"`). `epoch_mjd_tdb` is\n the epoch in MJD TDB. `cache_dir` may be null to skip caching, or\n a directory path where Horizons JSON responses are cached on disk.\n\n On success writes the position (AU) to `out_pos` (length 3) and the\n velocity (AU/day) to `out_vel` (length 3) — both solar-system\n barycenter (SSB) centered, ICRF."]
    pub unsafe fn empyrean_query_horizons_vectors(
        &self,
        command: *const ::std::os::raw::c_char,
        epoch_mjd_tdb: f64,
        cache_dir: *const ::std::os::raw::c_char,
        out_pos: *mut f64,
        out_vel: *mut f64,
    ) -> i32 {
        (self.empyrean_query_horizons_vectors)(command, epoch_mjd_tdb, cache_dir, out_pos, out_vel)
    }
    #[doc = " Query the MPC observations API for ADES records of one or more\n designations.\n\n `designations` is an array of `num_designations` null-terminated\n UTF-8 designations (e.g. `\"99942\"`, `\"2024 YR4\"`, `\"67P\"`). The\n MPC API returns ADES_DF JSON; this function parses each row into\n the C-ABI [`EmpyreanObservation`] struct, filling the full ADES\n schema (perm_id / prov_id / trk_sub / mode / sys / ctr / pos1-3 /\n rms_corr / mag / rms_mag / band / ast_cat / phot_cat / phot_ap /\n log_snr / seeing / exp / rms_fit / n_stars / notes / remarks) when\n present in the JSON.\n\n On success `*out_ptr` carries a heap-allocated array of length\n `*out_num`. Free with\n [`empyrean_observations_free`](crate::od::empyrean_observations_free)."]
    pub unsafe fn empyrean_query_observations(
        &self,
        designations: *const *const ::std::os::raw::c_char,
        num_designations: usize,
        cache_dir: *const ::std::os::raw::c_char,
        out_ptr: *mut *mut EmpyreanObservation,
        out_num: *mut usize,
    ) -> i32 {
        (self.empyrean_query_observations)(
            designations,
            num_designations,
            cache_dir,
            out_ptr,
            out_num,
        )
    }
    #[doc = " Query the JPL `sb_radar` API for delay/Doppler radar astrometry of one\n or more designations.\n\n `designations` is an array of `num_designations` null-terminated UTF-8\n designations (e.g. `\"99942\"`, `\"2024 YR4\"`). Asteroid radar astrometry\n is a JPL SSD product — it is **not** served by the MPC observations API\n (`empyrean_query_observations` returns only optical / occultation\n records), so radar ships as its own live-query entry point. JPL\n `sb_radar` JSON records are converted to ADES-native scott\n `RadarObservation`s and packed into the C-ABI\n [`EmpyreanRadarObservation`] struct (the same layout\n [`empyrean_read_ades`](crate::od::empyrean_read_ades) emits): the delay\n value is in seconds, its σ in microseconds, Doppler in Hz, frequency in\n MHz, and the `com` flag is a tri-state i8. `cache_dir` may be null to\n skip caching, or a directory path where `sb_radar` JSON responses are\n cached on disk.\n\n An object with no radar astrometry contributes no records (it is not an\n error). A JPL record that fails to parse (missing required field, or an\n unrecognised DSN station code) is rejected loudly rather than silently\n dropped — the whole call fails so no radar quietly goes missing.\n\n On success `*out_ptr` carries a heap-allocated array of length\n `*out_num`. Free with\n [`empyrean_radar_observations_free`](crate::od::empyrean_radar_observations_free)."]
    pub unsafe fn empyrean_query_radar(
        &self,
        designations: *const *const ::std::os::raw::c_char,
        num_designations: usize,
        cache_dir: *const ::std::os::raw::c_char,
        out_ptr: *mut *mut EmpyreanRadarObservation,
        out_num: *mut usize,
    ) -> i32 {
        (self.empyrean_query_radar)(designations, num_designations, cache_dir, out_ptr, out_num)
    }
    #[doc = " Construct a new orbit-determination session over a fixed\n observation set.\n\n Returns a heap-allocated handle on success, or null on error.\n The caller owns the returned pointer and must free it with\n [`empyrean_session_free`]."]
    pub unsafe fn empyrean_session_new(
        &self,
        observations: *const EmpyreanObservation,
        num_observations: usize,
        config: *const EmpyreanODConfig,
    ) -> *mut EmpyreanSession {
        (self.empyrean_session_new)(observations, num_observations, config)
    }
    #[doc = " Free a session previously returned by [`empyrean_session_new`].\n Passing null is a no-op."]
    pub unsafe fn empyrean_session_free(&self, session: *mut EmpyreanSession) {
        (self.empyrean_session_free)(session)
    }
    #[doc = " Total number of observations in the session (masked or not).\n Returns 0 if `session` is null."]
    pub unsafe fn empyrean_session_n_observations(&self, session: *const EmpyreanSession) -> usize {
        (self.empyrean_session_n_observations)(session)
    }
    #[doc = " Number of observations currently masked."]
    pub unsafe fn empyrean_session_n_masked(&self, session: *const EmpyreanSession) -> usize {
        (self.empyrean_session_n_masked)(session)
    }
    #[doc = " Number of observations active (not masked) in the next refine."]
    pub unsafe fn empyrean_session_n_active(&self, session: *const EmpyreanSession) -> usize {
        (self.empyrean_session_n_active)(session)
    }
    #[doc = " Mask the observation at `idx`. Returns 0 on success, -1 on null\n or out-of-bounds."]
    pub unsafe fn empyrean_session_mask(&self, session: *mut EmpyreanSession, idx: usize) -> i32 {
        (self.empyrean_session_mask)(session, idx)
    }
    #[doc = " Unmask the observation at `idx`. Returns 0 on success, -1 on null\n or out-of-bounds."]
    pub unsafe fn empyrean_session_unmask(&self, session: *mut EmpyreanSession, idx: usize) -> i32 {
        (self.empyrean_session_unmask)(session, idx)
    }
    #[doc = " Clear all masks. Returns 0 on success, -1 on null."]
    pub unsafe fn empyrean_session_unmask_all(&self, session: *mut EmpyreanSession) -> i32 {
        (self.empyrean_session_unmask_all)(session)
    }
    #[doc = " Whether the observation at `idx` is masked. Returns 1 = masked,\n 0 = active, 255 (-1 cast) on null/out-of-bounds."]
    pub unsafe fn empyrean_session_is_masked(
        &self,
        session: *const EmpyreanSession,
        idx: usize,
    ) -> u8 {
        (self.empyrean_session_is_masked)(session, idx)
    }
    #[doc = " Run an OD refine using the current mask state.\n\n On the first call, runs the full IOD → DC pipeline. On subsequent\n calls, uses the previously-fit orbit as the IOD seed (skipping the\n IOD step). Pushes the new fit onto the session's history.\n\n On success populates `result_out` with the latest fit. The caller\n must free `result_out` with [`empyrean_od_result_free`](crate::od::empyrean_od_result_free)."]
    pub unsafe fn empyrean_session_refine(
        &self,
        session: *mut EmpyreanSession,
        ctx: *const EmpyreanContext,
        result_out: *mut EmpyreanODResult,
    ) -> i32 {
        (self.empyrean_session_refine)(session, ctx, result_out)
    }
    #[doc = " Number of fits in the session history."]
    pub unsafe fn empyrean_session_history_len(&self, session: *const EmpyreanSession) -> usize {
        (self.empyrean_session_history_len)(session)
    }
    #[doc = " Copy the i-th history entry into `result_out`. Returns 0 on\n success, -1 on null/out-of-bounds. Caller frees `result_out` with\n [`empyrean_od_result_free`](crate::od::empyrean_od_result_free)."]
    pub unsafe fn empyrean_session_get_history(
        &self,
        session: *const EmpyreanSession,
        idx: usize,
        result_out: *mut EmpyreanODResult,
    ) -> i32 {
        (self.empyrean_session_get_history)(session, idx, result_out)
    }
    #[doc = " Diff the current fit against an earlier history entry. Returns 0\n on success, -1 if there is no current fit or `prior_idx` is out\n of bounds."]
    pub unsafe fn empyrean_session_diff(
        &self,
        session: *const EmpyreanSession,
        prior_idx: usize,
        diff_out: *mut EmpyreanSessionDiff,
    ) -> i32 {
        (self.empyrean_session_diff)(session, prior_idx, diff_out)
    }
    #[doc = " Query body states relative to a center body at given epochs.\n\n Returns 0 on success, negative error code on failure.\n On success, `result_out` is populated with body states.\n The caller must free the result with `empyrean_state_result_free()`."]
    pub unsafe fn empyrean_get_states(
        &self,
        ctx: *const EmpyreanContext,
        target_naif_id: i32,
        center_naif_id: i32,
        epochs_mjd_tdb: *const f64,
        num_epochs: usize,
        frame: i32,
        result_out: *mut EmpyreanStateResult,
    ) -> i32 {
        (self.empyrean_get_states)(
            ctx,
            target_naif_id,
            center_naif_id,
            epochs_mjd_tdb,
            num_epochs,
            frame,
            result_out,
        )
    }
    #[doc = " Free a state result previously returned by `empyrean_get_states()`.\n\n Passing a zeroed/null result is a no-op."]
    pub unsafe fn empyrean_state_result_free(&self, result: *mut EmpyreanStateResult) {
        (self.empyrean_state_result_free)(result)
    }
    #[doc = " Parse an ISO 8601 UTC string (e.g. ``\"2024-08-01T00:00:00.000Z\"``)\n to MJD in the requested target scale.\n\n `scale` is `0` for UTC, `1` for TDB.\n\n On success writes the MJD value to `*out_mjd` and returns 0.\n On failure returns a negative code; consult\n [`empyrean_last_error`](crate::empyrean_last_error)."]
    pub unsafe fn empyrean_iso_to_mjd(
        &self,
        iso: *const ::std::os::raw::c_char,
        scale: i32,
        out_mjd: *mut f64,
    ) -> i32 {
        (self.empyrean_iso_to_mjd)(iso, scale, out_mjd)
    }
    #[doc = " Format an MJD value (in the given scale) as an ISO 8601 UTC string.\n\n `scale` is `0` for UTC, `1` for TDB. Writes a null-terminated\n string of length ≤ `buf_len-1` into `out_buf`. A 32-byte buffer is\n always sufficient (typical output is 24 bytes:\n ``\"2024-08-01T00:00:00.000Z\"``).\n\n Returns 0 on success; negative on failure."]
    pub unsafe fn empyrean_mjd_to_iso(
        &self,
        mjd: f64,
        scale: i32,
        out_buf: *mut ::std::os::raw::c_char,
        buf_len: usize,
    ) -> i32 {
        (self.empyrean_mjd_to_iso)(mjd, scale, out_buf, buf_len)
    }
    #[doc = " Transform a coordinate state to a new representation, frame, and/or origin.\n\n Returns 0 on success or a negative error code on failure.\n Call `empyrean_last_error()` to retrieve the error message on failure."]
    pub unsafe fn empyrean_transform_coordinates(
        &self,
        ctx: *const EmpyreanContext,
        input: *const CoordinateState,
        target_representation: i32,
        target_frame: i32,
        target_origin: i32,
        output: *mut CoordinateState,
    ) -> i32 {
        (self.empyrean_transform_coordinates)(
            ctx,
            input,
            target_representation,
            target_frame,
            target_origin,
            output,
        )
    }
}