@zodiacs/engine 0.1.1-rc.15 → 1.0.0
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.
- package/CHANGELOG.md +891 -0
- package/LICENSING.md +192 -12
- package/NOTICE +96 -2
- package/README.md +296 -66
- package/dist/{api-CoB_kqE3.d.ts → api-WbxJ4Wj-.d.ts} +15 -10
- package/dist/ayanamsa--YQ46fET.d.ts +134 -0
- package/dist/calc.d.ts +390 -0
- package/dist/calc.js +1039 -0
- package/dist/chunk-47ERTK5X.js +27 -0
- package/dist/chunk-7TRLIFFI.js +56 -0
- package/dist/chunk-A3U2ZS2W.js +29 -0
- package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
- package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
- package/dist/{chunk-OYGRVGXD.js → chunk-CHSYDKBL.js} +3 -3
- package/dist/{chunk-ZHVI3KWJ.js → chunk-DMGHYCDI.js} +4 -4
- package/dist/{chunk-CWI4YUDL.js → chunk-FTX3JDJA.js} +21 -18
- package/dist/{chunk-MFF3VKO3.js → chunk-OG4OYTJJ.js} +47 -42
- package/dist/{chunk-ZZPITHQS.js → chunk-SRXBTP5H.js} +199 -65
- package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
- package/dist/chunk-WS3TDSP3.js +474 -0
- package/dist/chunk-YIITY7Q7.js +483 -0
- package/dist/crossings.d.ts +8 -7
- package/dist/crossings.js +1 -1
- package/dist/deltat.d.ts +28 -3
- package/dist/deltat.js +1 -1
- package/dist/geo.d.ts +33 -12
- package/dist/geo.js +17 -458
- package/dist/{internal-math-BbktkHCc.d.ts → houses-CFERsAlK.d.ts} +14 -160
- package/dist/houses-extra.d.ts +95 -0
- package/dist/houses-extra.js +339 -0
- package/dist/index.d.ts +34 -48
- package/dist/index.js +31 -23
- package/dist/internal-math-DJJ8BYex.d.ts +174 -0
- package/dist/internal-math.d.ts +3 -2
- package/dist/internal-math.js +2 -2
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +5 -5
- package/dist/receipt.d.ts +2 -243
- package/dist/receipt.js +78 -37
- package/dist/reference-span-CILpclrz.d.ts +40 -0
- package/dist/rulers-Dla6h_Sm.d.ts +15 -0
- package/dist/sky.d.ts +173 -0
- package/dist/sky.js +379 -0
- package/dist/techniques.d.ts +453 -0
- package/dist/techniques.js +823 -0
- package/dist/timing.d.ts +113 -17
- package/dist/timing.js +98 -64
- package/dist/{types-BsWaqwU_.d.ts → types-B-yb_tGL.d.ts} +23 -11
- package/dist/vedic.d.ts +42 -124
- package/dist/vedic.js +44 -458
- package/dist/window.d.ts +180 -0
- package/dist/window.js +960 -0
- package/dist/zone-history-ghdyO0Sc.d.ts +268 -0
- package/package.json +25 -3
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import { N as NatalSource } from './api-WbxJ4Wj-.js';
|
|
2
|
+
import { d as Chart, H as HouseSystem, D as DateInput, B as BodyName, f as AspectType, Z as ZodiacSign, E as Element, k as Sect } from './types-B-yb_tGL.js';
|
|
3
|
+
import './deltat.js';
|
|
4
|
+
import './crossings.js';
|
|
5
|
+
|
|
6
|
+
/** `"outside-reference-span"`: the ephemeris was read outside 1800–2200 (`REFERENCE_SPAN`). */
|
|
7
|
+
type TechniqueFlag = "outside-reference-span";
|
|
8
|
+
/** Latitude in [−90, 90] and longitude east in [−180, 180], degrees. */
|
|
9
|
+
interface GeoPlace {
|
|
10
|
+
readonly latitude: number;
|
|
11
|
+
readonly longitude: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Half-width of the solar return search around its date, days. */
|
|
15
|
+
declare const SOLAR_RETURN_WINDOW_DAYS: number;
|
|
16
|
+
/** How far back `mostRecentSolarReturnInstant` searches, days. */
|
|
17
|
+
declare const SOLAR_RETURN_LOOKBACK_DAYS: number;
|
|
18
|
+
/** Coarse step of the solar return search, days. */
|
|
19
|
+
declare const SOLAR_RETURN_STEP_DAYS: number;
|
|
20
|
+
/** How far the lunar return search runs, days. */
|
|
21
|
+
declare const LUNAR_RETURN_HORIZON_DAYS: number;
|
|
22
|
+
/** Coarse step of the lunar return search, days. */
|
|
23
|
+
declare const LUNAR_RETURN_STEP_DAYS: number;
|
|
24
|
+
/** The solar return nearest the date, or the latest at or before it. */
|
|
25
|
+
type SolarReturnSelection = "nearest" | "most-recent";
|
|
26
|
+
interface ReturnOptions {
|
|
27
|
+
/** Where the chart is cast: the natal place by default; null for no angles or houses. */
|
|
28
|
+
location?: GeoPlace | null | undefined;
|
|
29
|
+
/** The natal chart's by default. */
|
|
30
|
+
houseSystem?: HouseSystem | undefined;
|
|
31
|
+
}
|
|
32
|
+
interface SolarReturnOptions extends ReturnOptions {
|
|
33
|
+
/** `"nearest"` by default. */
|
|
34
|
+
selection?: SolarReturnSelection | undefined;
|
|
35
|
+
}
|
|
36
|
+
/** A solar or lunar return: the instant the body is back on its natal longitude, and the chart then. */
|
|
37
|
+
interface ReturnChart {
|
|
38
|
+
readonly body: "Sun" | "Moon";
|
|
39
|
+
/** The body's longitude in the natal chart, degrees. */
|
|
40
|
+
readonly natalLongitude: number;
|
|
41
|
+
/** When the transiting body is back on it, UTC on the engine's time basis. */
|
|
42
|
+
readonly instant: Date;
|
|
43
|
+
/** The chart at `instant`, with a known time, at `location`. */
|
|
44
|
+
readonly chart: Chart;
|
|
45
|
+
readonly location: GeoPlace | null;
|
|
46
|
+
/** From the natal instant and the ends of the searched window. */
|
|
47
|
+
readonly flags: readonly TechniqueFlag[];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A solar or lunar return, under its first name.
|
|
51
|
+
*
|
|
52
|
+
* @deprecated Use ReturnChart, the same type: `@zodiacs/engine/timing`'s PlanetaryReturn is another one.
|
|
53
|
+
*/
|
|
54
|
+
type PlanetaryReturn = ReturnChart;
|
|
55
|
+
interface SolarReturn extends ReturnChart {
|
|
56
|
+
readonly body: "Sun";
|
|
57
|
+
readonly selection: SolarReturnSelection;
|
|
58
|
+
}
|
|
59
|
+
interface LunarReturn extends ReturnChart {
|
|
60
|
+
readonly body: "Moon";
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* When the apparent Sun is at `natalSunLongitude`, nearest `near`: the
|
|
64
|
+
* crossing solver at 1-day steps over ±200 days; a tie goes to the earlier.
|
|
65
|
+
*/
|
|
66
|
+
declare function solarReturnInstant(natalSunLongitude: number, near: DateInput): Date;
|
|
67
|
+
/** The latest instant at or before `at` when the apparent Sun is at `natalSunLongitude`, within 370 days. */
|
|
68
|
+
declare function mostRecentSolarReturnInstant(natalSunLongitude: number, at: DateInput): Date;
|
|
69
|
+
/**
|
|
70
|
+
* The first instant in (after, after + 40 days] when the apparent Moon is at
|
|
71
|
+
* `natalMoonLongitude`: the crossing solver at 6-hour steps.
|
|
72
|
+
*/
|
|
73
|
+
declare function lunarReturnInstant(natalMoonLongitude: number, after: DateInput): Date;
|
|
74
|
+
/**
|
|
75
|
+
* The solar return of a natal chart or birth nearest `date` (or the latest at
|
|
76
|
+
* or before it), and its chart. The natal Sun is the chart's own.
|
|
77
|
+
*/
|
|
78
|
+
declare function solarReturn(natal: NatalSource, date: DateInput, options?: SolarReturnOptions): SolarReturn;
|
|
79
|
+
/**
|
|
80
|
+
* The first lunar return after `after` (within 40 days) of a natal chart or
|
|
81
|
+
* birth, and its chart. Needs a known birth time not flagged `dst-gap` or
|
|
82
|
+
* `dst-fold`, and `after` no earlier than the birth.
|
|
83
|
+
*/
|
|
84
|
+
declare function lunarReturn(natal: NatalSource, after: DateInput, options?: ReturnOptions): LunarReturn;
|
|
85
|
+
|
|
86
|
+
/** A body's composite longitude, degrees in [0, 360). */
|
|
87
|
+
interface CompositePosition {
|
|
88
|
+
readonly body: BodyName;
|
|
89
|
+
readonly lon: number;
|
|
90
|
+
}
|
|
91
|
+
/** An aspect between composite positions: they have no speeds, so no motion. */
|
|
92
|
+
interface CompositeAspect {
|
|
93
|
+
readonly a: BodyName;
|
|
94
|
+
readonly b: BodyName;
|
|
95
|
+
readonly type: AspectType;
|
|
96
|
+
readonly orb: number;
|
|
97
|
+
}
|
|
98
|
+
interface CompositeChart {
|
|
99
|
+
readonly bodies: readonly CompositePosition[];
|
|
100
|
+
readonly aspects: readonly CompositeAspect[];
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The composite positions of the bodies in both lists, in the first list's
|
|
104
|
+
* order: each pair's midpoint on the shorter arc; for exact opposites, the one
|
|
105
|
+
* 90° east of the first list's longitude.
|
|
106
|
+
*/
|
|
107
|
+
declare function compositeMidpoints(first: readonly {
|
|
108
|
+
body: BodyName;
|
|
109
|
+
lon: number;
|
|
110
|
+
}[], second: readonly {
|
|
111
|
+
body: BodyName;
|
|
112
|
+
lon: number;
|
|
113
|
+
}[]): readonly CompositePosition[];
|
|
114
|
+
/** The major aspects among the composite Sun to Pluto, with the natal orbs of `ASPECTS`, by orb. */
|
|
115
|
+
declare function compositeAspects(points: readonly CompositePosition[]): readonly CompositeAspect[];
|
|
116
|
+
/** The composite of two charts or births: every body's midpoint and their aspects. No angles or houses. */
|
|
117
|
+
declare function compositeChart(first: NatalSource, second: NatalSource): CompositeChart;
|
|
118
|
+
/**
|
|
119
|
+
* `"coordinates"`: the mean latitude and the longitude halfway along the
|
|
120
|
+
* shorter arc. `"great-circle"`: halfway along the great circle.
|
|
121
|
+
*
|
|
122
|
+
* @experimental The conventions of a Davison chart here (the place's default,
|
|
123
|
+
* the house system, a known time only when both are known) may change in a
|
|
124
|
+
* minor release.
|
|
125
|
+
*/
|
|
126
|
+
type DavisonPlaceConvention = "coordinates" | "great-circle";
|
|
127
|
+
/**
|
|
128
|
+
* Options for davisonChart.
|
|
129
|
+
*
|
|
130
|
+
* @experimental The conventions of a Davison chart here (the place's default,
|
|
131
|
+
* the house system, a known time only when both are known) may change in a
|
|
132
|
+
* minor release.
|
|
133
|
+
*/
|
|
134
|
+
interface DavisonOptions {
|
|
135
|
+
/** `"coordinates"` by default. */
|
|
136
|
+
place?: DavisonPlaceConvention | undefined;
|
|
137
|
+
/** The first chart's by default. */
|
|
138
|
+
houseSystem?: HouseSystem | undefined;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* A Davison chart, with the instant and the place it was cast for.
|
|
142
|
+
*
|
|
143
|
+
* @experimental The conventions of a Davison chart here (the place's default,
|
|
144
|
+
* the house system, a known time only when both are known) may change in a
|
|
145
|
+
* minor release.
|
|
146
|
+
*/
|
|
147
|
+
interface DavisonChart {
|
|
148
|
+
/** The mean of the two births' UTC instants, rounded down to the millisecond. */
|
|
149
|
+
readonly instant: Date;
|
|
150
|
+
/** Null unless both births have a place. */
|
|
151
|
+
readonly location: GeoPlace | null;
|
|
152
|
+
readonly place: DavisonPlaceConvention;
|
|
153
|
+
/** Its time is known only when both births' are. */
|
|
154
|
+
readonly chart: Chart;
|
|
155
|
+
readonly flags: readonly TechniqueFlag[];
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* The midpoint of two places. A place outside latitudes −90 to 90 and
|
|
159
|
+
* longitudes −180 to 180, or a convention not named, throws a RangeError, and
|
|
160
|
+
* so do antipodes, which have no great-circle midpoint.
|
|
161
|
+
*
|
|
162
|
+
* @experimental The conventions of a Davison chart here (the place's default,
|
|
163
|
+
* the house system, a known time only when both are known) may change in a
|
|
164
|
+
* minor release.
|
|
165
|
+
*/
|
|
166
|
+
declare function davisonPlace(first: GeoPlace, second: GeoPlace, convention?: DavisonPlaceConvention): GeoPlace;
|
|
167
|
+
/**
|
|
168
|
+
* The Davison chart of two charts or births (Davison, 1977): a chart for the
|
|
169
|
+
* midpoint in time and the midpoint in space of the two births.
|
|
170
|
+
*
|
|
171
|
+
* @experimental The conventions of a Davison chart here (the place's default,
|
|
172
|
+
* the house system, a known time only when both are known) may change in a
|
|
173
|
+
* minor release.
|
|
174
|
+
*/
|
|
175
|
+
declare function davisonChart(first: NatalSource, second: NatalSource, options?: DavisonOptions): DavisonChart;
|
|
176
|
+
|
|
177
|
+
/** A body whose aspect to the Moon can end a void period. */
|
|
178
|
+
type VoidBody = "Sun" | "Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn" | "Uranus" | "Neptune" | "Pluto";
|
|
179
|
+
/** `"modern"`: the Sun and the eight planets. `"traditional"`: the Sun to Saturn. */
|
|
180
|
+
type VoidBodies = "modern" | "traditional";
|
|
181
|
+
declare const VOID_BODIES: Readonly<Record<VoidBodies, readonly VoidBody[]>>;
|
|
182
|
+
/**
|
|
183
|
+
* A void period runs from the Moon's last exact aspect in a sign (one of
|
|
184
|
+
* `aspects`, in ecliptic longitude, to one of the chosen bodies) to its entry
|
|
185
|
+
* into the next sign; with none, from its entry into the sign. No orbs, no
|
|
186
|
+
* latitude, no nodes, angles or points; an aspect perfected in the next sign
|
|
187
|
+
* does not count.
|
|
188
|
+
*/
|
|
189
|
+
declare const VOID_OF_COURSE_CONVENTION: Readonly<{
|
|
190
|
+
name: "last-exact-ptolemaic-aspect-to-sign-exit";
|
|
191
|
+
aspects: readonly ["conjunction", "sextile", "square", "trine", "opposition"];
|
|
192
|
+
defaultBodies: VoidBodies;
|
|
193
|
+
source: "Lilly, Christian Astrology (1647), p. 112";
|
|
194
|
+
}>;
|
|
195
|
+
interface MoonIngress {
|
|
196
|
+
readonly at: Date;
|
|
197
|
+
readonly sign: ZodiacSign;
|
|
198
|
+
}
|
|
199
|
+
interface MoonAspect {
|
|
200
|
+
readonly at: Date;
|
|
201
|
+
readonly body: VoidBody;
|
|
202
|
+
readonly aspect: AspectType;
|
|
203
|
+
/** The Moon's longitude at `at`, degrees. */
|
|
204
|
+
readonly moonLon: number;
|
|
205
|
+
}
|
|
206
|
+
interface VoidOfCourseWindow {
|
|
207
|
+
/** The last aspect in the sign, or the entry into it when `lastAspect` is null. */
|
|
208
|
+
readonly from: Date;
|
|
209
|
+
/** The entry into `nextSign`. */
|
|
210
|
+
readonly to: Date;
|
|
211
|
+
readonly lastAspect: MoonAspect | null;
|
|
212
|
+
readonly sign: ZodiacSign;
|
|
213
|
+
readonly nextSign: ZodiacSign;
|
|
214
|
+
}
|
|
215
|
+
interface VoidOfCourseStatus {
|
|
216
|
+
readonly at: Date;
|
|
217
|
+
readonly isVoid: boolean;
|
|
218
|
+
/** The period in progress at `at`. */
|
|
219
|
+
readonly current: VoidOfCourseWindow | null;
|
|
220
|
+
/** The next period to begin after `at`. */
|
|
221
|
+
readonly next: VoidOfCourseWindow | null;
|
|
222
|
+
}
|
|
223
|
+
interface VoidOfCourseOptions {
|
|
224
|
+
/** `"modern"` by default. */
|
|
225
|
+
bodies?: VoidBodies | undefined;
|
|
226
|
+
}
|
|
227
|
+
/** The longest window the scans accept, days. A minor release may accept a longer one. */
|
|
228
|
+
declare const VOID_OF_COURSE_MAX_DAYS: number;
|
|
229
|
+
/** Every entry of the apparent Moon into a sign in (from, to], in time order (6-hour steps). */
|
|
230
|
+
declare function moonIngresses(from: DateInput, to: DateInput): readonly MoonIngress[];
|
|
231
|
+
/** Every exact Ptolemaic aspect of the Moon to the chosen bodies in (from, to]: 3-hour samples, 26 bisections. */
|
|
232
|
+
declare function moonAspects(from: DateInput, to: DateInput, options?: VoidOfCourseOptions): readonly MoonAspect[];
|
|
233
|
+
/** Every void period whose ending ingress falls in (from, to], under VOID_OF_COURSE_CONVENTION. */
|
|
234
|
+
declare function voidOfCourseWindows(from: DateInput, to: DateInput, options?: VoidOfCourseOptions): readonly VoidOfCourseWindow[];
|
|
235
|
+
/** Whether the Moon is void of course at `at`, the period in progress and the next. */
|
|
236
|
+
declare function voidOfCourseAt(at: DateInput, options?: VoidOfCourseOptions): VoidOfCourseStatus;
|
|
237
|
+
|
|
238
|
+
declare const PATTERN_BODIES: readonly ["Sun", "Moon", "Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto"];
|
|
239
|
+
type PatternBody = (typeof PATTERN_BODIES)[number];
|
|
240
|
+
type PatternKind = "grand-trine" | "t-square" | "grand-cross" | "kite";
|
|
241
|
+
/** A position; bodies other than the Sun to Pluto are ignored. */
|
|
242
|
+
interface PatternPoint {
|
|
243
|
+
readonly body: string;
|
|
244
|
+
readonly lon: number;
|
|
245
|
+
}
|
|
246
|
+
/** An aspect record, as a chart's `aspects` hold them. */
|
|
247
|
+
interface PatternEdgeInput {
|
|
248
|
+
readonly a: string;
|
|
249
|
+
readonly b: string;
|
|
250
|
+
readonly type: AspectType;
|
|
251
|
+
readonly orb: number;
|
|
252
|
+
/** `aspect:<a>-<type>-<b>` by default. */
|
|
253
|
+
readonly sourceId?: string | undefined;
|
|
254
|
+
}
|
|
255
|
+
/** An aspect of a pattern, its bodies in `PATTERN_BODIES` order. */
|
|
256
|
+
interface PatternEdge {
|
|
257
|
+
readonly a: PatternBody;
|
|
258
|
+
readonly b: PatternBody;
|
|
259
|
+
readonly type: AspectType;
|
|
260
|
+
readonly orb: number;
|
|
261
|
+
/** The orb limit that admitted it. */
|
|
262
|
+
readonly limit: number;
|
|
263
|
+
/** `<a>|<b>|<type>`. */
|
|
264
|
+
readonly key: string;
|
|
265
|
+
readonly sourceIds: readonly string[];
|
|
266
|
+
}
|
|
267
|
+
interface AspectPattern {
|
|
268
|
+
/** `<kind>:<members>`, and the roles of a T-square, grand cross or kite. */
|
|
269
|
+
readonly id: string;
|
|
270
|
+
readonly kind: PatternKind;
|
|
271
|
+
readonly members: readonly PatternBody[];
|
|
272
|
+
readonly edges: readonly PatternEdge[];
|
|
273
|
+
readonly oppositions: readonly (readonly [PatternBody, PatternBody])[];
|
|
274
|
+
/** T-square: the body square both ends of the opposition. */
|
|
275
|
+
readonly apex?: PatternBody;
|
|
276
|
+
/** Kite: its grand trine; `axisVertex`, the trine body opposed by `opposedVertex`, the fourth. */
|
|
277
|
+
readonly triangle?: readonly PatternBody[];
|
|
278
|
+
readonly axisVertex?: PatternBody;
|
|
279
|
+
readonly opposedVertex?: PatternBody;
|
|
280
|
+
}
|
|
281
|
+
interface AspectPatterns {
|
|
282
|
+
/** The Sun to Pluto, normalized, in `PATTERN_BODIES` order. */
|
|
283
|
+
readonly points: readonly {
|
|
284
|
+
readonly body: PatternBody;
|
|
285
|
+
readonly lon: number;
|
|
286
|
+
}[];
|
|
287
|
+
/** Every pattern, sorted by id. */
|
|
288
|
+
readonly patterns: readonly AspectPattern[];
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* The grand trines, T-squares, grand crosses and kites (Hand, 1981) that the
|
|
292
|
+
* aspect records form among the Sun to Pluto. Every aspect of a pattern must
|
|
293
|
+
* be among the records, each checked with `matchAspect`; none is inferred.
|
|
294
|
+
* Malformed or contradictory input throws RangeError.
|
|
295
|
+
*/
|
|
296
|
+
declare function aspectPatterns(points: readonly PatternPoint[], aspects: readonly PatternEdgeInput[]): AspectPatterns;
|
|
297
|
+
/** The aspect patterns of a chart or birth, from its own bodies and aspects. */
|
|
298
|
+
declare function chartAspectPatterns(natal: NatalSource): AspectPatterns;
|
|
299
|
+
/** `roots`: the patterns inside no other. `included[id]`: those inside `id`. */
|
|
300
|
+
interface PatternContainment {
|
|
301
|
+
readonly roots: readonly AspectPattern[];
|
|
302
|
+
readonly included: Readonly<Record<string, readonly AspectPattern[]>>;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* A pattern lies inside another with fewer members, all of them and all its
|
|
306
|
+
* aspects the other's: a grand cross holds four T-squares. Sorted by size,
|
|
307
|
+
* kind, then id.
|
|
308
|
+
*/
|
|
309
|
+
declare function patternContainment(patterns: readonly AspectPattern[]): PatternContainment;
|
|
310
|
+
|
|
311
|
+
type ClassicalPlanet = "Sun" | "Moon" | "Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn";
|
|
312
|
+
/** A planet's condition in a sign as `dignityFor` names it. */
|
|
313
|
+
type SignDignity = "domicile" | "exaltation" | "detriment" | "fall";
|
|
314
|
+
/** The five essential dignities, in the order Lilly names them (p. 112). */
|
|
315
|
+
type EssentialDignity = "domicile" | "exaltation" | "triplicity" | "term" | "face";
|
|
316
|
+
type Debility = "detriment" | "fall";
|
|
317
|
+
declare const CLASSICAL_PLANETS: readonly ClassicalPlanet[];
|
|
318
|
+
/**
|
|
319
|
+
* Each sign's domicile ruler (Tetrabiblos I.17): the same rulers as
|
|
320
|
+
* `@zodiacs/engine/timing`'s TRADITIONAL_RULERS and `@zodiacs/engine/vedic`'s
|
|
321
|
+
* SIGN_LORDS. Each entry point carries its own copy, so that none imports
|
|
322
|
+
* another; a test keeps the three equal.
|
|
323
|
+
*/
|
|
324
|
+
declare const DOMICILE_RULERS: Readonly<Record<ZodiacSign, ClassicalPlanet>>;
|
|
325
|
+
/** Each planet's exaltation (Tetrabiblos I.19); its fall is the opposite sign. */
|
|
326
|
+
declare const EXALTATIONS: Readonly<Record<ClassicalPlanet, ZodiacSign>>;
|
|
327
|
+
/** The Dorothean triplicity lords (Dorotheus I.1.3). */
|
|
328
|
+
declare const TRIPLICITY_LORDS: Readonly<Record<Element, {
|
|
329
|
+
readonly day: ClassicalPlanet;
|
|
330
|
+
readonly night: ClassicalPlanet;
|
|
331
|
+
readonly participating: ClassicalPlanet;
|
|
332
|
+
}>>;
|
|
333
|
+
/** The Egyptian terms (Tetrabiblos I.20): each sign's five lords, with the degree each term ends at. */
|
|
334
|
+
declare const EGYPTIAN_TERMS: Readonly<Record<ZodiacSign, readonly (readonly [ClassicalPlanet, number])[]>>;
|
|
335
|
+
/** The Chaldean faces: the lord of each ten degrees from 0° Aries, 36 in all (al-Bīrūnī §451). */
|
|
336
|
+
declare const CHALDEAN_FACES: readonly ClassicalPlanet[];
|
|
337
|
+
/** True for the seven classical planets. */
|
|
338
|
+
declare function hasClassicalDignities(planet: BodyName): boolean;
|
|
339
|
+
/** A planet's conditions in a sign, in the order domicile, exaltation, detriment, fall; none for the outer planets and nodes. */
|
|
340
|
+
declare function dignitiesFor(planet: BodyName, sign: ZodiacSign): readonly SignDignity[];
|
|
341
|
+
/** One condition: exaltation or fall where either holds (Mercury in Virgo is exalted), else domicile or detriment, else null. */
|
|
342
|
+
declare function dignityFor(planet: BodyName, sign: ZodiacSign): SignDignity | null;
|
|
343
|
+
/** A term or face: its lord, and its degrees within the sign, `from` inclusive, `to` exclusive. */
|
|
344
|
+
interface DignitySpan {
|
|
345
|
+
readonly planet: ClassicalPlanet;
|
|
346
|
+
readonly from: number;
|
|
347
|
+
readonly to: number;
|
|
348
|
+
}
|
|
349
|
+
interface DignityRulers {
|
|
350
|
+
readonly lon: number;
|
|
351
|
+
readonly sign: ZodiacSign;
|
|
352
|
+
readonly domicile: ClassicalPlanet;
|
|
353
|
+
readonly exaltation: ClassicalPlanet | null;
|
|
354
|
+
readonly triplicity: {
|
|
355
|
+
readonly element: Element;
|
|
356
|
+
readonly day: ClassicalPlanet;
|
|
357
|
+
readonly night: ClassicalPlanet;
|
|
358
|
+
readonly participating: ClassicalPlanet;
|
|
359
|
+
};
|
|
360
|
+
readonly term: DignitySpan;
|
|
361
|
+
readonly face: DignitySpan;
|
|
362
|
+
/** The planet in detriment, and the one in fall, here. */
|
|
363
|
+
readonly detriment: ClassicalPlanet;
|
|
364
|
+
readonly fall: ClassicalPlanet | null;
|
|
365
|
+
}
|
|
366
|
+
/** Who holds each essential dignity and debility at an ecliptic longitude, degrees. */
|
|
367
|
+
declare function dignityRulersAt(longitude: number): DignityRulers;
|
|
368
|
+
interface PlanetDignities {
|
|
369
|
+
readonly planet: ClassicalPlanet;
|
|
370
|
+
readonly lon: number;
|
|
371
|
+
readonly sign: ZodiacSign;
|
|
372
|
+
readonly sect: Sect;
|
|
373
|
+
/** In the order domicile, exaltation, triplicity, term, face. */
|
|
374
|
+
readonly dignities: readonly EssentialDignity[];
|
|
375
|
+
readonly debilities: readonly Debility[];
|
|
376
|
+
/** No essential dignity (Lilly, p. 112). */
|
|
377
|
+
readonly peregrine: boolean;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* A classical planet's essential dignities at a longitude in a day or night
|
|
381
|
+
* chart. Triplicity counts the lord of the chart's sect, as Lilly's reception
|
|
382
|
+
* by triplicity does ("if the Question or Nativity be by day", p. 112), not
|
|
383
|
+
* the participating lord.
|
|
384
|
+
*/
|
|
385
|
+
declare function essentialDignities(planet: ClassicalPlanet, longitude: number, sect: Sect): PlanetDignities;
|
|
386
|
+
interface ReceptionOptions {
|
|
387
|
+
/** `["domicile", "exaltation"]` by default. */
|
|
388
|
+
dignities?: readonly EssentialDignity[] | undefined;
|
|
389
|
+
/** Required for reception by triplicity. */
|
|
390
|
+
sect?: Sect | undefined;
|
|
391
|
+
}
|
|
392
|
+
/** Two planets each in the other's dignity. */
|
|
393
|
+
interface MutualReception {
|
|
394
|
+
readonly a: ClassicalPlanet;
|
|
395
|
+
readonly b: ClassicalPlanet;
|
|
396
|
+
/** The dignities `a` has where `b` is. */
|
|
397
|
+
readonly aReceivesB: readonly EssentialDignity[];
|
|
398
|
+
/** The dignities `b` has where `a` is. */
|
|
399
|
+
readonly bReceivesA: readonly EssentialDignity[];
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Every pair of classical planets "in each others dignity" (Lilly, p. 112),
|
|
403
|
+
* by the dignities named. Other bodies are ignored.
|
|
404
|
+
*/
|
|
405
|
+
declare function mutualReceptions(positions: readonly {
|
|
406
|
+
readonly body: BodyName;
|
|
407
|
+
readonly lon: number;
|
|
408
|
+
}[], options?: ReceptionOptions): readonly MutualReception[];
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* A date in every time zone runs from 00:00 at UTC+14 to 24:00 at UTC−12. In
|
|
412
|
+
* tzdata 2025c every offset lies within these bounds, but in Alaska before
|
|
413
|
+
* 1867-10-19 and in the Philippines and Micronesia before 1845.
|
|
414
|
+
*/
|
|
415
|
+
declare const EVERY_ZONE_OFFSETS: Readonly<{
|
|
416
|
+
readonly earliestHours: 14;
|
|
417
|
+
readonly latestHours: -12;
|
|
418
|
+
}>;
|
|
419
|
+
/** The longest span `moonSignsBetween` accepts, days. A minor release may accept a longer one. */
|
|
420
|
+
declare const MOON_SIGN_MAX_SPAN_DAYS: number;
|
|
421
|
+
interface MoonSignCandidates {
|
|
422
|
+
/** YYYY-MM-DD, Gregorian. */
|
|
423
|
+
readonly date: string;
|
|
424
|
+
/** Null for every time zone. */
|
|
425
|
+
readonly timeZone: string | null;
|
|
426
|
+
/** The date's first instant, and its last: 1 ms before the next date. */
|
|
427
|
+
readonly from: Date;
|
|
428
|
+
readonly to: Date;
|
|
429
|
+
/** Every sign the Moon is in during [from, to], in order. */
|
|
430
|
+
readonly signs: readonly ZodiacSign[];
|
|
431
|
+
/** The sign when there is one; otherwise null. */
|
|
432
|
+
readonly sign: ZodiacSign | null;
|
|
433
|
+
readonly flags: readonly TechniqueFlag[];
|
|
434
|
+
}
|
|
435
|
+
interface MoonSignOptions {
|
|
436
|
+
/** The IANA zone the date is read in; without it, every time zone. */
|
|
437
|
+
timeZone?: string | undefined;
|
|
438
|
+
/** The birthplace, degrees east, for its own mean time (as `resolveLocalToUtc`). */
|
|
439
|
+
longitude?: number | undefined;
|
|
440
|
+
}
|
|
441
|
+
/** Every sign the apparent Moon is in during [from, to], at most 20 days, in order. */
|
|
442
|
+
declare function moonSignsBetween(from: DateInput, to: DateInput): readonly ZodiacSign[];
|
|
443
|
+
/**
|
|
444
|
+
* The Moon signs possible over a civil date with an unknown birth time. With
|
|
445
|
+
* `timeZone`, from local midnight to local midnight, read as
|
|
446
|
+
* `resolveLocalToUtc` (`@zodiacs/engine/geo`) reads them; before 1970, await
|
|
447
|
+
* its `prepareLocalTime` first, or it throws geo's ZoneHistoryNotLoadedError,
|
|
448
|
+
* an Error and not a RangeError. Without, in every time zone: `sign` is set
|
|
449
|
+
* only when the Moon held it the whole date everywhere.
|
|
450
|
+
*/
|
|
451
|
+
declare function moonSignCandidates(date: string, options?: MoonSignOptions): MoonSignCandidates;
|
|
452
|
+
|
|
453
|
+
export { type AspectPattern, type AspectPatterns, CHALDEAN_FACES, CLASSICAL_PLANETS, type ClassicalPlanet, type CompositeAspect, type CompositeChart, type CompositePosition, DOMICILE_RULERS, type DavisonChart, type DavisonOptions, type DavisonPlaceConvention, type Debility, type DignityRulers, type DignitySpan, EGYPTIAN_TERMS, EVERY_ZONE_OFFSETS, EXALTATIONS, type EssentialDignity, type GeoPlace, LUNAR_RETURN_HORIZON_DAYS, LUNAR_RETURN_STEP_DAYS, type LunarReturn, MOON_SIGN_MAX_SPAN_DAYS, type MoonAspect, type MoonIngress, type MoonSignCandidates, type MoonSignOptions, type MutualReception, PATTERN_BODIES, type PatternBody, type PatternContainment, type PatternEdge, type PatternEdgeInput, type PatternKind, type PatternPoint, type PlanetDignities, type PlanetaryReturn, type ReceptionOptions, type ReturnChart, type ReturnOptions, SOLAR_RETURN_LOOKBACK_DAYS, SOLAR_RETURN_STEP_DAYS, SOLAR_RETURN_WINDOW_DAYS, type SignDignity, type SolarReturn, type SolarReturnOptions, type SolarReturnSelection, TRIPLICITY_LORDS, type TechniqueFlag, VOID_BODIES, VOID_OF_COURSE_CONVENTION, VOID_OF_COURSE_MAX_DAYS, type VoidBodies, type VoidBody, type VoidOfCourseOptions, type VoidOfCourseStatus, type VoidOfCourseWindow, aspectPatterns, chartAspectPatterns, compositeAspects, compositeChart, compositeMidpoints, davisonChart, davisonPlace, dignitiesFor, dignityFor, dignityRulersAt, essentialDignities, hasClassicalDignities, lunarReturn, lunarReturnInstant, moonAspects, moonIngresses, moonSignCandidates, moonSignsBetween, mostRecentSolarReturnInstant, mutualReceptions, patternContainment, solarReturn, solarReturnInstant, voidOfCourseAt, voidOfCourseWindows };
|