@zodiacs/engine 0.1.1-rc.14 → 0.1.1-rc.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +797 -6
  2. package/LICENSING.md +354 -21
  3. package/NOTICE +166 -9
  4. package/README.md +327 -84
  5. package/dist/api-VOW6Umy5.d.ts +197 -0
  6. package/dist/calc.d.ts +279 -0
  7. package/dist/calc.js +853 -0
  8. package/dist/{chunk-NAJ735VN.js → chunk-2OWGBT3O.js} +1 -1
  9. package/dist/{chunk-4OSOCZY2.js → chunk-4NV4ZEFZ.js} +21 -6
  10. package/dist/chunk-A3U2ZS2W.js +29 -0
  11. package/dist/chunk-I7O5EGFV.js +25 -0
  12. package/dist/chunk-KFTJMMG7.js +61 -0
  13. package/dist/chunk-KHBLFXFG.js +227 -0
  14. package/dist/chunk-L6ZHWJZ6.js +355 -0
  15. package/dist/chunk-N4B5JNMA.js +473 -0
  16. package/dist/chunk-O3NJRGJ2.js +56 -0
  17. package/dist/{chunk-RETEVD4F.js → chunk-WOU7JVD3.js} +293 -154
  18. package/dist/crossings.d.ts +1 -1
  19. package/dist/deltat.d.ts +8 -8
  20. package/dist/geo.d.ts +137 -8
  21. package/dist/geo.js +28 -166
  22. package/dist/houses-extra.d.ts +81 -0
  23. package/dist/houses-extra.js +337 -0
  24. package/dist/houses-q1O2GGp4.d.ts +128 -0
  25. package/dist/index.d.ts +8 -201
  26. package/dist/index.js +38 -315
  27. package/dist/internal-math-CmJ9xtaW.d.ts +160 -0
  28. package/dist/internal-math.d.ts +3 -2
  29. package/dist/internal-math.js +2 -2
  30. package/dist/internal.d.ts +2 -1
  31. package/dist/internal.js +4 -4
  32. package/dist/receipt.d.ts +74 -29
  33. package/dist/receipt.js +194 -33
  34. package/dist/rulers-9wljfVaO.d.ts +10 -0
  35. package/dist/sky.d.ts +158 -0
  36. package/dist/sky.js +377 -0
  37. package/dist/techniques.d.ts +410 -0
  38. package/dist/techniques.js +830 -0
  39. package/dist/timing.d.ts +473 -0
  40. package/dist/timing.js +904 -0
  41. package/dist/{types-CeafogFp.d.ts → types-B4MCoCCS.d.ts} +35 -4
  42. package/dist/tzdb-2025c-00-6GVG6RYL.js +6 -0
  43. package/dist/tzdb-2025c-01-CEYMG3LE.js +6 -0
  44. package/dist/tzdb-2025c-02-NWQJCVUU.js +6 -0
  45. package/dist/tzdb-2025c-03-PLHP6VH4.js +6 -0
  46. package/dist/tzdb-2025c-04-MEKUJA6M.js +6 -0
  47. package/dist/tzdb-2025c-05-3K5YKZBL.js +6 -0
  48. package/dist/tzdb-2025c-06-L2VV5XJV.js +6 -0
  49. package/dist/tzdb-2025c-07-H3GLGJGY.js +6 -0
  50. package/dist/tzdb-2025c-08-DA7QQIGD.js +6 -0
  51. package/dist/tzdb-2025c-09-MTXIO3QL.js +6 -0
  52. package/dist/tzdb-2025c-10-ASL4UW5C.js +6 -0
  53. package/dist/tzdb-2025c-11-EQEOANYB.js +6 -0
  54. package/dist/tzdb-2025c-12-NKCCXJ5G.js +6 -0
  55. package/dist/tzdb-2025c-13-DYTF3UC7.js +6 -0
  56. package/dist/tzdb-2025c-14-C25H45R5.js +6 -0
  57. package/dist/tzdb-2025c-15-7OYYZWRY.js +6 -0
  58. package/dist/vedic.d.ts +393 -0
  59. package/dist/vedic.js +930 -0
  60. package/dist/window.d.ts +178 -0
  61. package/dist/window.js +961 -0
  62. package/package.json +31 -3
  63. package/dist/chunk-GFT24GFR.js +0 -25
  64. package/dist/internal-math-BE2hcSHd.d.ts +0 -271
@@ -0,0 +1,393 @@
1
+ import { T as TimeScaleName, h as TimeScale, D as DateInput, B as BodyName, H as HouseSystem, e as ChartFlag, d as Chart, f as BirthInput, Z as ZodiacSign } from './types-B4MCoCCS.js';
2
+ import { DeltaT } from './deltat.js';
3
+
4
+ /** The precession model of an epoch value: the engine's IAU 2006, Newcomb's (Kinoshita 1975) or IAU 1976. */
5
+ type AyanamsaPrecessionModel = "engine" | "newcomb" | "iau1976";
6
+ /** The built-in ayanamsas: the keys of AYANAMSAS. */
7
+ type AyanamsaName = "lahiri" | "fagan-bradley" | "krishnamurti" | "raman" | "yukteswar" | "true-chitra" | "true-revati" | "true-pushya" | "galactic-center";
8
+ interface Definition {
9
+ readonly name: string;
10
+ readonly label: string;
11
+ /** Short citation; docs/vedic.md has the full one. */
12
+ readonly source: string;
13
+ }
14
+ /**
15
+ * A mean `value` (degrees) at TT Julian date `epochTT`, computed with
16
+ * `model`'s precession. The engine holds the zodiac where that model puts it
17
+ * at J2000.0 and carries it with its own; with an older model its value at
18
+ * the epoch differs from `value`.
19
+ */
20
+ interface EpochAyanamsa extends Definition {
21
+ readonly kind: "epoch";
22
+ readonly epochTT: number;
23
+ readonly value: number;
24
+ readonly model: AyanamsaPrecessionModel;
25
+ }
26
+ /** `value` degrees at `epochTT` plus `rate` arcseconds per Julian year (365.25 days of TT). */
27
+ interface LinearAyanamsa extends Definition {
28
+ readonly kind: "linear";
29
+ readonly epochTT: number;
30
+ readonly value: number;
31
+ readonly rate: number;
32
+ }
33
+ /** A catalogue star, ICRS, with its space motion. */
34
+ interface CatalogueStar {
35
+ readonly name: string;
36
+ /** Right ascension and declination at `epochTT`, degrees. */
37
+ readonly ra: number;
38
+ readonly dec: number;
39
+ readonly epochTT: number;
40
+ /** Proper motion, mas/yr; `pmRa` is μα·cos δ. */
41
+ readonly pmRa: number;
42
+ readonly pmDec: number;
43
+ /** Parallax, mas (0: at infinity). */
44
+ readonly parallax: number;
45
+ /** Radial velocity, km/s. */
46
+ readonly radialVelocity: number;
47
+ }
48
+ /** The star's apparent geocentric place sits at sidereal `longitude` degrees at every instant. */
49
+ interface StarAyanamsa extends Definition {
50
+ readonly kind: "star";
51
+ readonly star: CatalogueStar;
52
+ readonly longitude: number;
53
+ }
54
+ /** A definition; functions accept only AYANAMSAS entries and userAyanamsa results. */
55
+ type AyanamsaDefinition = EpochAyanamsa | LinearAyanamsa | StarAyanamsa;
56
+ /** The built-in definitions. docs/vedic.md cites each in full. */
57
+ declare const AYANAMSAS: Readonly<Record<AyanamsaName, AyanamsaDefinition>>;
58
+ /** Input to userAyanamsa. */
59
+ interface UserAyanamsaInput {
60
+ /** Lowercase identifier, at most 64 characters, not a built-in name; default "user". */
61
+ readonly name?: string;
62
+ /** When `value` holds: a TT Julian date within the Date range, or a UTC instant, read on the engine's time basis. */
63
+ readonly epoch: DateInput | {
64
+ readonly julianDateTT: number;
65
+ };
66
+ /** The mean ayanamsa at `epoch` as `model` computes it, degrees, in [−360, 360]. */
67
+ readonly value: number;
68
+ /** Arcseconds per Julian year, in [−3600, 3600]: a linear ayanamsa. */
69
+ readonly rate?: number;
70
+ /**
71
+ * Without `rate`: the model `value` was computed with, default "engine"
72
+ * (`value` then holds at `epoch`); an older model's zodiac is held at
73
+ * J2000.0, as for the built-ins.
74
+ */
75
+ readonly model?: AyanamsaPrecessionModel;
76
+ }
77
+ /** A caller's ayanamsa, frozen. Refuses a built-in name, both `rate` and `model`, and out-of-range values. */
78
+ declare function userAyanamsa(input: UserAyanamsaInput): AyanamsaDefinition;
79
+ /** An ayanamsa at an instant; made only by `ayanamsa`. Degrees throughout. */
80
+ interface AyanamsaValue {
81
+ /** The definition's name. */
82
+ readonly ayanamsa: string;
83
+ /** The instant as given, ISO 8601, on the scale `timeScale.input` names (UTC unless the options say otherwise). */
84
+ readonly utc: string;
85
+ /** How the instant became UT1 and TT, as a chart's `timeScale` (docs/time.md). */
86
+ readonly timeScale: TimeScale;
87
+ readonly julianDateTT: number;
88
+ /** The ΔT (TT − UT1) the instant was read with: its time basis's, or the pin. */
89
+ readonly deltaT: DeltaT;
90
+ /** Referred to the mean equinox and ecliptic of date, in (−180, 180]. */
91
+ readonly mean: number;
92
+ /** The engine's nutation in longitude Δψ. */
93
+ readonly nutation: number;
94
+ /** mean + nutation: subtract it from the engine's tropical longitudes. */
95
+ readonly true: number;
96
+ /** "outside-reference-span" when the instant, or an epoch definition's epoch, is outside REFERENCE_SPAN. */
97
+ readonly flags: readonly "outside-reference-span"[];
98
+ }
99
+ /** Options for ayanamsa. */
100
+ interface AyanamsaOptions {
101
+ /** A fixed ΔT (TT − UT1) in seconds, as BirthInput.deltaT; the engine's time basis when absent. */
102
+ readonly deltaT?: number;
103
+ /** The scale the instant is on, as BirthInput.timeScale: "utc" (default), "ut1" or "tt". */
104
+ readonly timeScale?: TimeScaleName;
105
+ }
106
+ /**
107
+ * The mean and true ayanamsa of a definition at an instant, read as a chart
108
+ * reads its own: on the engine's time basis, or a pinned ΔT, and refused
109
+ * outside EPHEMERIS_SPAN. `true` adds the engine's nutation in longitude (IAU
110
+ * 2000B, all 77 terms), which cancels from sidereal longitudes.
111
+ */
112
+ declare function ayanamsa(definition: AyanamsaName | AyanamsaDefinition, at: DateInput, options?: AyanamsaOptions): AyanamsaValue;
113
+
114
+ /**
115
+ * A sidereal longitude of date, frozen. Only siderealLongitude,
116
+ * declareSiderealLongitude and siderealChart make one; copies are refused.
117
+ */
118
+ interface SiderealLongitude {
119
+ readonly frame: "sidereal";
120
+ /** Sidereal longitude of date, degrees in [0, 360). */
121
+ readonly lon: number;
122
+ /** The ayanamsa's name, or the label a declared value was given. */
123
+ readonly ayanamsa: string;
124
+ /** The true ayanamsa subtracted, degrees; null for a declared value. */
125
+ readonly trueAyanamsa: number | null;
126
+ /** The tropical longitude of date it came from; null for a declared value. */
127
+ readonly tropical: number | null;
128
+ /**
129
+ * The instant, ISO 8601 UTC; null for a declared value given none. For an
130
+ * ayanamsa read on UT1 or TT (a chart given on either), the UTC instant of
131
+ * its time basis, as the timing entry reads the chart.
132
+ */
133
+ readonly utc: string | null;
134
+ }
135
+ /**
136
+ * tropical − true ayanamsa, in [0, 360). `tropicalLongitude` must be an
137
+ * apparent longitude of date for the ayanamsa's own instant and clock; that
138
+ * cannot be checked here.
139
+ */
140
+ declare function siderealLongitude(tropicalLongitude: number, ayanamsa: AyanamsaValue): SiderealLongitude;
141
+ /** The label, and optionally the instant, of a declared sidereal value. */
142
+ interface SiderealDeclaration {
143
+ /** A label for the zodiac the value is in: nonempty, trimmed, at most 80 characters. */
144
+ readonly ayanamsa: string;
145
+ /** Its instant, needed only by the dasha functions. */
146
+ readonly at?: DateInput;
147
+ }
148
+ /**
149
+ * A longitude the caller asserts is already sidereal (from another program,
150
+ * a table, a test). The engine cannot check the claim; it records the label.
151
+ */
152
+ declare function declareSiderealLongitude(longitude: number, declaration: SiderealDeclaration): SiderealLongitude;
153
+ /** A chart body's sidereal longitude. */
154
+ interface SiderealBody extends SiderealLongitude {
155
+ readonly body: BodyName;
156
+ }
157
+ /** siderealChart's result, frozen. */
158
+ interface SiderealChart {
159
+ /** The ayanamsa's name. */
160
+ readonly ayanamsa: string;
161
+ /** The ayanamsa at the chart's instant and on its clock. */
162
+ readonly ayanamsaValue: AyanamsaValue;
163
+ /** The chart's twelve bodies, in its order. */
164
+ readonly bodies: readonly SiderealBody[];
165
+ /** Null when the chart has no angles. */
166
+ readonly ascendant: SiderealLongitude | null;
167
+ readonly midheaven: SiderealLongitude | null;
168
+ /** The chart's house system as computed, after any polar fallback; null without houses. */
169
+ readonly houseSystem: HouseSystem | null;
170
+ /** House cusps, first house first; null without houses. Whole-sign cusps start at the sidereal ascendant's sign. */
171
+ readonly cusps: readonly SiderealLongitude[] | null;
172
+ /** The chart's flags, and the ayanamsa's. */
173
+ readonly flags: readonly ChartFlag[];
174
+ }
175
+
176
+ /**
177
+ * The chart's bodies, angles and cusps as sidereal longitudes, with the
178
+ * ayanamsa at the chart's instant on its ΔT clock. The ayanamsa is checked
179
+ * first; a supplied Chart is checked as `transits` checks one. Whole-sign
180
+ * cusps are rebuilt from the sidereal ascendant's sign.
181
+ */
182
+ declare function siderealChart(natal: Chart | BirthInput, ayanamsa: AyanamsaName | AyanamsaDefinition): SiderealChart;
183
+
184
+ /** The nine lords in Vimshottari order, from Ketu, Ashwini's lord. */
185
+ declare const VIMSHOTTARI_LORDS: readonly ["Ketu", "Venus", "Sun", "Moon", "Mars", "Rahu", "Jupiter", "Saturn", "Mercury"];
186
+ /** A Vimshottari lord. */
187
+ type VimshottariLord = (typeof VIMSHOTTARI_LORDS)[number];
188
+ /** Mahadasha years, BPHS 46.15; they total 120. */
189
+ declare const VIMSHOTTARI_YEARS: Readonly<Record<VimshottariLord, number>>;
190
+ /** The 27 nakshatras of 13°20′ from 0° sidereal Aries. */
191
+ declare const NAKSHATRAS: readonly ["Ashwini", "Bharani", "Krittika", "Rohini", "Mrigashira", "Ardra", "Punarvasu", "Pushya", "Ashlesha", "Magha", "Purva Phalguni", "Uttara Phalguni", "Hasta", "Chitra", "Swati", "Vishakha", "Anuradha", "Jyeshtha", "Mula", "Purva Ashadha", "Uttara Ashadha", "Shravana", "Dhanishta", "Shatabhisha", "Purva Bhadrapada", "Uttara Bhadrapada", "Revati"];
192
+ /** A nakshatra's name. */
193
+ type NakshatraName = (typeof NAKSHATRAS)[number];
194
+ /** nakshatraOf's result, frozen. */
195
+ interface NakshatraPosition {
196
+ /** 0 for Ashwini through 26 for Revati. */
197
+ readonly index: number;
198
+ readonly name: NakshatraName;
199
+ readonly lord: VimshottariLord;
200
+ readonly pada: 1 | 2 | 3 | 4;
201
+ /** Where the nakshatra starts, sidereal degrees (index × 40/3). */
202
+ readonly start: number;
203
+ /** The fraction of the nakshatra traversed, in [0, 1). */
204
+ readonly elapsed: number;
205
+ }
206
+ /**
207
+ * The nakshatra and pada of a sidereal longitude, placed exactly on the
208
+ * double's binary value: on a boundary, the part that begins there. Most
209
+ * boundaries are not doubles; 93 + 20/60 lies below 93°20′ (Punarvasu).
210
+ */
211
+ declare function nakshatraOf(position: SiderealLongitude): NakshatraPosition;
212
+
213
+ /** The sixteen vargas of BPHS 6.2–4. */
214
+ type VargaName = "D1" | "D2" | "D3" | "D4" | "D7" | "D9" | "D10" | "D12" | "D16" | "D20" | "D24" | "D27" | "D30" | "D40" | "D45" | "D60";
215
+ /** "parashari" is BPHS's rule; "cyclic" (parivritti, D2 and D3 only) counts the parts on from Aries. */
216
+ type VargaScheme = "parashari" | "cyclic";
217
+ /** A VARGAS entry, frozen. */
218
+ interface VargaDefinition {
219
+ readonly name: VargaName;
220
+ readonly title: string;
221
+ readonly divisions: number;
222
+ /** The Parashari rule in words, with its verse. */
223
+ readonly rule: string;
224
+ /** Schemes this engine computes. */
225
+ readonly schemes: readonly VargaScheme[];
226
+ /** Named variants known from later practice that are not implemented. */
227
+ readonly notImplemented: readonly string[];
228
+ }
229
+ /** The sixteen Parashari vargas, their rules, schemes and unimplemented variants. */
230
+ declare const VARGAS: readonly VargaDefinition[];
231
+ /** vargaOf's result, frozen. */
232
+ interface VargaPosition {
233
+ readonly varga: VargaName;
234
+ readonly scheme: VargaScheme;
235
+ /** Which part of the natal sign, from 1 (the D30 has five, of 5°, 5°, 8°, 7°, 5°). */
236
+ readonly part: number;
237
+ readonly sign: ZodiacSign;
238
+ /** 0 for Aries through 11 for Pisces. */
239
+ readonly signIndex: number;
240
+ }
241
+ /**
242
+ * The sign a sidereal longitude occupies in varga `varga`, by the Parashari
243
+ * rule or, for D2 and D3, the cyclic count (BPHS 6.6–7). An unknown varga or
244
+ * scheme, or an unimplemented variant, is a RangeError.
245
+ */
246
+ declare function vargaOf(position: SiderealLongitude, varga: VargaName, scheme?: VargaScheme): VargaPosition;
247
+
248
+ /** Traditional sign rulers, Aries to Pisces (BPHS 4, Santhanam 1984). */
249
+ declare const SIGN_LORDS: readonly ["Mars", "Venus", "Mercury", "Moon", "Sun", "Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Saturn", "Jupiter"];
250
+ /** A traditional sign ruler. */
251
+ type SignLord = (typeof SIGN_LORDS)[number];
252
+ /** One of the 249 numbered KP subs, frozen. */
253
+ interface KpSub {
254
+ /** 1 to 249 from 0° Aries. */
255
+ readonly number: number;
256
+ readonly sign: ZodiacSign;
257
+ readonly signLord: SignLord;
258
+ readonly star: NakshatraName;
259
+ readonly starLord: VimshottariLord;
260
+ readonly subLord: VimshottariLord;
261
+ /** Sidereal degrees; start inclusive, end exclusive. */
262
+ readonly start: number;
263
+ readonly end: number;
264
+ }
265
+ /** The 249 KP subs from 0° Aries, frozen. */
266
+ declare const KP_SUBS: readonly KpSub[];
267
+ /** kpLordsOf's result, frozen. */
268
+ interface KpLords {
269
+ readonly sub: KpSub;
270
+ readonly sign: ZodiacSign;
271
+ readonly signLord: SignLord;
272
+ readonly star: NakshatraName;
273
+ readonly starLord: VimshottariLord;
274
+ readonly subLord: VimshottariLord;
275
+ readonly subSubLord: VimshottariLord;
276
+ }
277
+ /**
278
+ * The sign lord, star lord, sub-lord and sub-sub-lord of a sidereal
279
+ * longitude, with its numbered sub; a longitude on a boundary takes the part
280
+ * that starts there. It uses whatever ayanamsa the argument carries.
281
+ */
282
+ declare function kpLordsOf(position: SiderealLongitude): KpLords;
283
+
284
+ /** The dasha systems implemented. */
285
+ type DashaSystem = "vimshottari" | "yogini" | "ashtottari";
286
+ /** A dasha year's length by name; DASHA_YEAR_DAYS gives its days. */
287
+ type DashaYearLength = "julian" | "tropical" | "savana";
288
+ /** Days in a dasha year: Julian (default), tropical, and the 360-day savana year. */
289
+ declare const DASHA_YEAR_DAYS: Readonly<Record<DashaYearLength, number>>;
290
+ /** The names of Vimshottari levels 1 to 5. */
291
+ declare const DASHA_LEVELS: readonly ["mahadasha", "antardasha", "pratyantardasha", "sookshmadasha", "pranadasha"];
292
+ /** A level's name. */
293
+ type DashaLevelName = (typeof DASHA_LEVELS)[number];
294
+ /** Yogini dasha (BPHS 46.195–199): yogini, planet, years. */
295
+ declare const YOGINIS: readonly Readonly<{
296
+ name: string;
297
+ planet: string;
298
+ years: number;
299
+ }>[];
300
+ /** Ashtottari lords in order, with their years (BPHS 46.17–20). */
301
+ declare const ASHTOTTARI_YEARS: Readonly<{
302
+ readonly Sun: 6;
303
+ readonly Moon: 15;
304
+ readonly Mars: 8;
305
+ readonly Mercury: 17;
306
+ readonly Saturn: 10;
307
+ readonly Jupiter: 19;
308
+ readonly Rahu: 12;
309
+ readonly Venus: 21;
310
+ }>;
311
+ /** A dasha period, frozen; only the dasha functions make one. */
312
+ interface DashaPeriod {
313
+ readonly system: DashaSystem;
314
+ readonly level: 1 | 2 | 3 | 4 | 5;
315
+ readonly levelName: DashaLevelName;
316
+ /** Lords from the mahadasha down to this period. */
317
+ readonly lords: readonly string[];
318
+ readonly lord: string;
319
+ /**
320
+ * ISO 8601 UTC, the boundaries rounded to the millisecond. The period runs
321
+ * from `start` (inclusive) to `end` (exclusive); vimshottariAt uses these.
322
+ */
323
+ readonly start: string;
324
+ readonly end: string;
325
+ /** The unrounded boundaries, milliseconds since 1970-01-01T00:00Z. */
326
+ readonly startMs: number;
327
+ readonly endMs: number;
328
+ /** Length in dasha years. */
329
+ readonly years: number;
330
+ }
331
+ /** Options for the dasha functions. */
332
+ interface DashaOptions {
333
+ /** "julian" (365.25 days, the default), "tropical" (365.2422) or "savana" (360). */
334
+ readonly yearLength?: DashaYearLength;
335
+ }
336
+ /** A dasha system's result, frozen. */
337
+ interface DashaResult {
338
+ readonly system: DashaSystem;
339
+ readonly yearLength: DashaYearLength;
340
+ readonly yearDays: number;
341
+ /** The Moon's instant, taken as the birth instant, ISO 8601 UTC. */
342
+ readonly birth: string;
343
+ /** The Moon's sidereal longitude and its ayanamsa label. */
344
+ readonly moon: number;
345
+ readonly ayanamsa: string;
346
+ /** The mahadasha running at birth and the years of it still to run. */
347
+ readonly balance: {
348
+ readonly lord: string;
349
+ readonly years: number;
350
+ };
351
+ /** Consecutive mahadashas from the one running at birth, which starts before birth. */
352
+ readonly mahadashas: readonly DashaPeriod[];
353
+ }
354
+ /**
355
+ * Vimshottari mahadashas (BPHS 46.12–16), 120 years from the birth
356
+ * nakshatra's lord, whose untraversed fraction is the balance; the first
357
+ * starts before birth. `moon` must carry its instant.
358
+ */
359
+ declare function vimshottariDasha(moon: SiderealLongitude, options?: DashaOptions): DashaResult;
360
+ /**
361
+ * The nine sub-periods of a Vimshottari period of levels 1–4 (BPHS 51.1–2),
362
+ * from its own lord, each period years × its years / 120.
363
+ */
364
+ declare function dashaSubperiods(period: DashaPeriod): readonly DashaPeriod[];
365
+ /** Options for vimshottariAt. */
366
+ interface DashaAtOptions extends DashaOptions {
367
+ /** How many levels to descend, 1 (mahadasha) to 5 (prana); default 5. */
368
+ readonly levels?: number;
369
+ }
370
+ /**
371
+ * The Vimshottari periods running at `at`, mahadasha first, down to
372
+ * `levels`, compared with the periods' `start` and `end`: a period's own
373
+ * `start` finds it. Outside the 120 years, a RangeError.
374
+ */
375
+ declare function vimshottariAt(moon: SiderealLongitude, at: DateInput, options?: DashaAtOptions): readonly DashaPeriod[];
376
+ /** Options for yoginiDasha and ashtottariDasha. */
377
+ interface CycleOptions extends DashaOptions {
378
+ /** Complete cycles of mahadashas to list, 1 to 10; default 1. */
379
+ readonly cycles?: number;
380
+ }
381
+ /**
382
+ * Yogini mahadashas (BPHS 46.195–199): the nakshatra's number plus 3,
383
+ * remainder by 8, gives the yogini at birth; 36 years a cycle.
384
+ */
385
+ declare function yoginiDasha(moon: SiderealLongitude, options?: CycleOptions): DashaResult;
386
+ /**
387
+ * Ashtottari mahadashas (BPHS 46.17–22): 28 nakshatras with Abhijit, from
388
+ * Ardra in groups of 4, 3, 4, 3, …, each an equal share of its lord's years;
389
+ * 108 years a cycle. When it applies (46.17–23) is for the caller to decide.
390
+ */
391
+ declare function ashtottariDasha(moon: SiderealLongitude, options?: CycleOptions): DashaResult;
392
+
393
+ export { ASHTOTTARI_YEARS, AYANAMSAS, type AyanamsaDefinition, type AyanamsaName, type AyanamsaOptions, type AyanamsaPrecessionModel, type AyanamsaValue, type CatalogueStar, type CycleOptions, DASHA_LEVELS, DASHA_YEAR_DAYS, type DashaAtOptions, type DashaLevelName, type DashaOptions, type DashaPeriod, type DashaResult, type DashaSystem, type DashaYearLength, type EpochAyanamsa, KP_SUBS, type KpLords, type KpSub, type LinearAyanamsa, NAKSHATRAS, type NakshatraName, type NakshatraPosition, SIGN_LORDS, type SiderealBody, type SiderealChart, type SiderealDeclaration, type SiderealLongitude, type SignLord, type StarAyanamsa, type UserAyanamsaInput, VARGAS, VIMSHOTTARI_LORDS, VIMSHOTTARI_YEARS, type VargaDefinition, type VargaName, type VargaPosition, type VargaScheme, type VimshottariLord, YOGINIS, ashtottariDasha, ayanamsa, dashaSubperiods, declareSiderealLongitude, kpLordsOf, nakshatraOf, siderealChart, siderealLongitude, userAyanamsa, vargaOf, vimshottariAt, vimshottariDasha, yoginiDasha };