@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.
- package/CHANGELOG.md +797 -6
- package/LICENSING.md +354 -21
- package/NOTICE +166 -9
- package/README.md +327 -84
- package/dist/api-VOW6Umy5.d.ts +197 -0
- package/dist/calc.d.ts +279 -0
- package/dist/calc.js +853 -0
- package/dist/{chunk-NAJ735VN.js → chunk-2OWGBT3O.js} +1 -1
- package/dist/{chunk-4OSOCZY2.js → chunk-4NV4ZEFZ.js} +21 -6
- package/dist/chunk-A3U2ZS2W.js +29 -0
- package/dist/chunk-I7O5EGFV.js +25 -0
- package/dist/chunk-KFTJMMG7.js +61 -0
- package/dist/chunk-KHBLFXFG.js +227 -0
- package/dist/chunk-L6ZHWJZ6.js +355 -0
- package/dist/chunk-N4B5JNMA.js +473 -0
- package/dist/chunk-O3NJRGJ2.js +56 -0
- package/dist/{chunk-RETEVD4F.js → chunk-WOU7JVD3.js} +293 -154
- package/dist/crossings.d.ts +1 -1
- package/dist/deltat.d.ts +8 -8
- package/dist/geo.d.ts +137 -8
- package/dist/geo.js +28 -166
- package/dist/houses-extra.d.ts +81 -0
- package/dist/houses-extra.js +337 -0
- package/dist/houses-q1O2GGp4.d.ts +128 -0
- package/dist/index.d.ts +8 -201
- package/dist/index.js +38 -315
- package/dist/internal-math-CmJ9xtaW.d.ts +160 -0
- package/dist/internal-math.d.ts +3 -2
- package/dist/internal-math.js +2 -2
- package/dist/internal.d.ts +2 -1
- package/dist/internal.js +4 -4
- package/dist/receipt.d.ts +74 -29
- package/dist/receipt.js +194 -33
- package/dist/rulers-9wljfVaO.d.ts +10 -0
- package/dist/sky.d.ts +158 -0
- package/dist/sky.js +377 -0
- package/dist/techniques.d.ts +410 -0
- package/dist/techniques.js +830 -0
- package/dist/timing.d.ts +473 -0
- package/dist/timing.js +904 -0
- package/dist/{types-CeafogFp.d.ts → types-B4MCoCCS.d.ts} +35 -4
- package/dist/tzdb-2025c-00-6GVG6RYL.js +6 -0
- package/dist/tzdb-2025c-01-CEYMG3LE.js +6 -0
- package/dist/tzdb-2025c-02-NWQJCVUU.js +6 -0
- package/dist/tzdb-2025c-03-PLHP6VH4.js +6 -0
- package/dist/tzdb-2025c-04-MEKUJA6M.js +6 -0
- package/dist/tzdb-2025c-05-3K5YKZBL.js +6 -0
- package/dist/tzdb-2025c-06-L2VV5XJV.js +6 -0
- package/dist/tzdb-2025c-07-H3GLGJGY.js +6 -0
- package/dist/tzdb-2025c-08-DA7QQIGD.js +6 -0
- package/dist/tzdb-2025c-09-MTXIO3QL.js +6 -0
- package/dist/tzdb-2025c-10-ASL4UW5C.js +6 -0
- package/dist/tzdb-2025c-11-EQEOANYB.js +6 -0
- package/dist/tzdb-2025c-12-NKCCXJ5G.js +6 -0
- package/dist/tzdb-2025c-13-DYTF3UC7.js +6 -0
- package/dist/tzdb-2025c-14-C25H45R5.js +6 -0
- package/dist/tzdb-2025c-15-7OYYZWRY.js +6 -0
- package/dist/vedic.d.ts +393 -0
- package/dist/vedic.js +930 -0
- package/dist/window.d.ts +178 -0
- package/dist/window.js +961 -0
- package/package.json +31 -3
- package/dist/chunk-GFT24GFR.js +0 -25
- package/dist/internal-math-BE2hcSHd.d.ts +0 -271
package/dist/timing.d.ts
ADDED
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import { T as TraditionalPlanet } from './rulers-9wljfVaO.js';
|
|
2
|
+
export { C as CHALDEAN_ORDER, a as TRADITIONAL_RULERS } from './rulers-9wljfVaO.js';
|
|
3
|
+
import { B as BodyName, r as PointName, Z as ZodiacSign, b as HouseNumber, D as DateInput, k as Sect } from './types-B4MCoCCS.js';
|
|
4
|
+
import { N as NatalSource } from './api-VOW6Umy5.js';
|
|
5
|
+
import './deltat.js';
|
|
6
|
+
import './crossings.js';
|
|
7
|
+
|
|
8
|
+
/** The four angles of a chart with a birth time and place. */
|
|
9
|
+
type AngleName = "Ascendant" | "Midheaven" | "Descendant" | "Imum Coeli";
|
|
10
|
+
/** A natal longitude a technique can start from or direct: a body, an angle or a chart point. */
|
|
11
|
+
type ChartLongitudeName = BodyName | AngleName | PointName;
|
|
12
|
+
/**
|
|
13
|
+
* The natal sign or point a profection or a releasing sequence counts from.
|
|
14
|
+
* Only its sign enters the count.
|
|
15
|
+
*/
|
|
16
|
+
interface TimingOrigin {
|
|
17
|
+
/** The chart longitude it was read from; null when a sign or longitude was passed. */
|
|
18
|
+
readonly point: ChartLongitudeName | null;
|
|
19
|
+
/** Degrees in [0, 360); null when a sign name was passed. */
|
|
20
|
+
readonly lon: number | null;
|
|
21
|
+
readonly sign: ZodiacSign;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Marks a timing result, as `Chart.flags` marks a chart:
|
|
25
|
+
* `"outside-reference-span"` when an instant the ephemeris was read at lies
|
|
26
|
+
* outside `REFERENCE_SPAN`; `"sect-contradicts-altitude"` when the result
|
|
27
|
+
* depends on a sect that the Sun's altitude at birth contradicts, which can
|
|
28
|
+
* happen only inside the polar circles.
|
|
29
|
+
*/
|
|
30
|
+
type TimingFlag = "outside-reference-span" | "sect-contradicts-altitude";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* How a profection year is divided into months, each a sign on from the last.
|
|
34
|
+
* `"solar"` (default): twelve, each from when the Sun has gained another 30°
|
|
35
|
+
* on its natal longitude. `"twelfths"`: twelve equal parts of the year.
|
|
36
|
+
* `"thirteenths"`: thirteen equal parts, the last repeating the year's sign.
|
|
37
|
+
*/
|
|
38
|
+
type ProfectionMonthConvention = "solar" | "twelfths" | "thirteenths";
|
|
39
|
+
/** The month conventions `profectionAt` and `profectionYear` accept, default first. */
|
|
40
|
+
declare const PROFECTION_MONTH_CONVENTIONS: readonly ProfectionMonthConvention[];
|
|
41
|
+
/** The month convention used when none is named. */
|
|
42
|
+
declare const DEFAULT_PROFECTION_MONTHS: ProfectionMonthConvention;
|
|
43
|
+
/** An annual profection by completed years alone. */
|
|
44
|
+
interface AnnualProfection {
|
|
45
|
+
/** Completed years of life; 0 is the first year. */
|
|
46
|
+
readonly age: number;
|
|
47
|
+
/** The sign or longitude counted from; its `point` is null. */
|
|
48
|
+
readonly origin: TimingOrigin;
|
|
49
|
+
readonly sign: ZodiacSign;
|
|
50
|
+
/** The sign's traditional ruler, the lord of the year. */
|
|
51
|
+
readonly ruler: TraditionalPlanet;
|
|
52
|
+
/** `age mod 12 + 1`: the place counted inclusively from the origin (the whole-sign house from the Ascendant). */
|
|
53
|
+
readonly house: HouseNumber;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The sign `age` completed years on from the origin's sign, one sign a year,
|
|
57
|
+
* and its ruler, the lord of the year. `origin` is a lowercase sign name or a
|
|
58
|
+
* longitude in degrees. Age 0 is the first year of life. Negative, fractional
|
|
59
|
+
* and unsafe ages throw RangeError.
|
|
60
|
+
*/
|
|
61
|
+
declare function annualProfection(origin: ZodiacSign | number, age: number): AnnualProfection;
|
|
62
|
+
/** The natal point a dated profection counts from. */
|
|
63
|
+
interface ProfectionOrigin extends TimingOrigin {
|
|
64
|
+
readonly point: ChartLongitudeName;
|
|
65
|
+
readonly lon: number;
|
|
66
|
+
}
|
|
67
|
+
/** The conventions a dated profection was computed with. */
|
|
68
|
+
interface ProfectionConventions {
|
|
69
|
+
readonly year: "solar-return";
|
|
70
|
+
readonly months: ProfectionMonthConvention;
|
|
71
|
+
readonly rulers: "traditional-domicile";
|
|
72
|
+
}
|
|
73
|
+
/** A dated profection year or month; `start` is inclusive and `end` exclusive. */
|
|
74
|
+
interface ProfectionSpan {
|
|
75
|
+
readonly sign: ZodiacSign;
|
|
76
|
+
readonly ruler: TraditionalPlanet;
|
|
77
|
+
/** The place counted inclusively from the starting point's sign. */
|
|
78
|
+
readonly house: HouseNumber;
|
|
79
|
+
readonly start: Date;
|
|
80
|
+
readonly end: Date;
|
|
81
|
+
}
|
|
82
|
+
/** One month of a profection year. */
|
|
83
|
+
interface ProfectionMonth extends ProfectionSpan {
|
|
84
|
+
/** 0 to 11, or to 12 with thirteenths. */
|
|
85
|
+
readonly index: number;
|
|
86
|
+
}
|
|
87
|
+
/** The dated year of an annual profection and its months. */
|
|
88
|
+
interface ProfectionYearSpan extends ProfectionSpan {
|
|
89
|
+
/** Completed years of life. */
|
|
90
|
+
readonly age: number;
|
|
91
|
+
}
|
|
92
|
+
/** A whole profection year with every month. */
|
|
93
|
+
interface ProfectionYear extends ProfectionYearSpan {
|
|
94
|
+
readonly origin: ProfectionOrigin;
|
|
95
|
+
readonly months: readonly ProfectionMonth[];
|
|
96
|
+
readonly conventions: ProfectionConventions;
|
|
97
|
+
readonly flags: readonly TimingFlag[];
|
|
98
|
+
}
|
|
99
|
+
/** The profection year and month running at an instant. */
|
|
100
|
+
interface ProfectionAt {
|
|
101
|
+
readonly at: Date;
|
|
102
|
+
readonly origin: ProfectionOrigin;
|
|
103
|
+
readonly year: ProfectionYearSpan;
|
|
104
|
+
readonly month: ProfectionMonth;
|
|
105
|
+
readonly conventions: ProfectionConventions;
|
|
106
|
+
readonly flags: readonly TimingFlag[];
|
|
107
|
+
}
|
|
108
|
+
/** Options for the dated profections. */
|
|
109
|
+
interface ProfectionOptions {
|
|
110
|
+
/** The natal body, angle or chart point to profect; `"Ascendant"` by default. */
|
|
111
|
+
readonly point?: ChartLongitudeName;
|
|
112
|
+
/** `"solar"` by default. */
|
|
113
|
+
readonly months?: ProfectionMonthConvention;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The profection year of an age, dated, with its months. Year n runs from the
|
|
117
|
+
* n-th solar return (the apparent Sun back on its natal longitude; the birth
|
|
118
|
+
* for n = 0) to the next, on the engine's ephemeris from the chart's birth as
|
|
119
|
+
* a UTC instant on the engine's time basis, not on a chart's pinned ΔT. The default point, the Ascendant, needs a birth time and
|
|
120
|
+
* place. Invalid ages, options and points throw RangeError. Frozen.
|
|
121
|
+
*/
|
|
122
|
+
declare function profectionYear(natal: NatalSource, age: number, options?: ProfectionOptions): ProfectionYear;
|
|
123
|
+
/**
|
|
124
|
+
* The profection year and month running at `date`. The year turns at the
|
|
125
|
+
* solar return, which can be a day from the birthday. A date before birth
|
|
126
|
+
* throws RangeError, as do {@link profectionYear}'s refusals. Frozen.
|
|
127
|
+
*/
|
|
128
|
+
declare function profectionAt(natal: NatalSource, date: DateInput, options?: ProfectionOptions): ProfectionAt;
|
|
129
|
+
|
|
130
|
+
/** A lord of a firdaria period: a planet or one of the Moon's nodes. */
|
|
131
|
+
type FirdariaLord = TraditionalPlanet | "North Node" | "South Node";
|
|
132
|
+
/**
|
|
133
|
+
* Where the nodes fall by night; days are the same in both. `"abu-mashar"`
|
|
134
|
+
* (default): last, after Mercury. `"bonatti"`: after Mars, as by day.
|
|
135
|
+
*/
|
|
136
|
+
type FirdariaVariant = "abu-mashar" | "bonatti";
|
|
137
|
+
/** The variants the firdaria functions accept, default first. */
|
|
138
|
+
declare const FIRDARIA_VARIANTS: readonly FirdariaVariant[];
|
|
139
|
+
/** The variant used when none is named. */
|
|
140
|
+
declare const DEFAULT_FIRDARIA_VARIANT: FirdariaVariant;
|
|
141
|
+
/** The years of each lord's period, 75 in all. */
|
|
142
|
+
declare const FIRDARIA_YEARS: Readonly<Record<FirdariaLord, number>>;
|
|
143
|
+
/** The years of one sequence, after which it begins again. */
|
|
144
|
+
declare const FIRDARIA_CYCLE_YEARS = 75;
|
|
145
|
+
/** One of the seven equal shares of a planetary period, by age in years (start inclusive). */
|
|
146
|
+
interface FirdariaSubPeriod {
|
|
147
|
+
readonly lord: TraditionalPlanet;
|
|
148
|
+
readonly startAge: number;
|
|
149
|
+
readonly endAge: number;
|
|
150
|
+
}
|
|
151
|
+
/** One firdaria period, by age. */
|
|
152
|
+
interface FirdariaPeriod {
|
|
153
|
+
readonly lord: FirdariaLord;
|
|
154
|
+
readonly years: number;
|
|
155
|
+
readonly startAge: number;
|
|
156
|
+
readonly endAge: number;
|
|
157
|
+
/** Seven for a planet; none for the nodes. */
|
|
158
|
+
readonly subPeriods: readonly FirdariaSubPeriod[];
|
|
159
|
+
}
|
|
160
|
+
/** A sub-period with its dates. */
|
|
161
|
+
interface DatedFirdariaSubPeriod extends FirdariaSubPeriod {
|
|
162
|
+
readonly start: Date;
|
|
163
|
+
readonly end: Date;
|
|
164
|
+
}
|
|
165
|
+
/** A period with its dates. */
|
|
166
|
+
interface DatedFirdariaPeriod {
|
|
167
|
+
readonly lord: FirdariaLord;
|
|
168
|
+
readonly years: number;
|
|
169
|
+
/** 0 for the first 75 years of life. */
|
|
170
|
+
readonly cycle: number;
|
|
171
|
+
readonly startAge: number;
|
|
172
|
+
readonly endAge: number;
|
|
173
|
+
readonly start: Date;
|
|
174
|
+
readonly end: Date;
|
|
175
|
+
readonly subPeriods: readonly DatedFirdariaSubPeriod[];
|
|
176
|
+
}
|
|
177
|
+
/** The conventions dated firdaria were computed with. */
|
|
178
|
+
interface FirdariaConventions {
|
|
179
|
+
readonly variant: FirdariaVariant;
|
|
180
|
+
readonly years: "solar-return";
|
|
181
|
+
readonly subPeriods: "sevenths-descending-spheres";
|
|
182
|
+
}
|
|
183
|
+
/** Dated firdaria for one or more 75-year cycles. */
|
|
184
|
+
interface FirdariaTimeline {
|
|
185
|
+
readonly birth: Date;
|
|
186
|
+
readonly sect: Sect;
|
|
187
|
+
readonly periods: readonly DatedFirdariaPeriod[];
|
|
188
|
+
readonly conventions: FirdariaConventions;
|
|
189
|
+
readonly flags: readonly TimingFlag[];
|
|
190
|
+
}
|
|
191
|
+
/** The firdaria period and sub-period running at an instant. */
|
|
192
|
+
interface FirdariaAt {
|
|
193
|
+
readonly at: Date;
|
|
194
|
+
readonly sect: Sect;
|
|
195
|
+
/** Fractional age in solar-return years. */
|
|
196
|
+
readonly age: number;
|
|
197
|
+
readonly period: DatedFirdariaPeriod;
|
|
198
|
+
/** Null in the nodes' periods. */
|
|
199
|
+
readonly subPeriod: DatedFirdariaSubPeriod | null;
|
|
200
|
+
readonly conventions: FirdariaConventions;
|
|
201
|
+
readonly flags: readonly TimingFlag[];
|
|
202
|
+
}
|
|
203
|
+
/** Options for the firdaria functions. */
|
|
204
|
+
interface FirdariaOptions {
|
|
205
|
+
/** Where the nodes fall by night; `"abu-mashar"` by default. */
|
|
206
|
+
readonly variant?: FirdariaVariant;
|
|
207
|
+
}
|
|
208
|
+
/** Options for {@link firdaria}. */
|
|
209
|
+
interface FirdariaTimelineOptions extends FirdariaOptions {
|
|
210
|
+
/** 75-year cycles to date, 1 to 4; 1 by default. */
|
|
211
|
+
readonly cycles?: number;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* The firdaria lords in order: by day the planets from the Sun, by night from
|
|
215
|
+
* the Moon, with the nodes where the variant puts them. Unknown sects and
|
|
216
|
+
* variants throw RangeError. Frozen.
|
|
217
|
+
*/
|
|
218
|
+
declare function firdariaSequence(sect: Sect, options?: FirdariaOptions): readonly FirdariaLord[];
|
|
219
|
+
/**
|
|
220
|
+
* The nine periods of one 75-year cycle, by age. A planet's period has seven
|
|
221
|
+
* equal shares, its own and then each planet below it in
|
|
222
|
+
* {@link CHALDEAN_ORDER}; the nodes have none. Frozen.
|
|
223
|
+
*/
|
|
224
|
+
declare function firdariaPeriods(sect: Sect, options?: FirdariaOptions): readonly FirdariaPeriod[];
|
|
225
|
+
/**
|
|
226
|
+
* Dated firdaria for `options.cycles` 75-year cycles (1 to 4). The sect comes
|
|
227
|
+
* from `chartPoints`, so the chart needs a birth time and place. Whole ages
|
|
228
|
+
* fall on the solar returns that begin profection years; fractional ages are
|
|
229
|
+
* linear in time within their year. Invalid options throw RangeError. Frozen.
|
|
230
|
+
*/
|
|
231
|
+
declare function firdaria(natal: NatalSource, options?: FirdariaTimelineOptions): FirdariaTimeline;
|
|
232
|
+
/**
|
|
233
|
+
* The period and sub-period running at `date`, and the age there: its
|
|
234
|
+
* solar-return year and the elapsed fraction of it. A date before birth
|
|
235
|
+
* throws RangeError. Frozen.
|
|
236
|
+
*/
|
|
237
|
+
declare function firdariaAt(natal: NatalSource, date: DateInput, options?: FirdariaOptions): FirdariaAt;
|
|
238
|
+
|
|
239
|
+
/** The years each sign allots: its ruler's minor years, but Capricorn 27 and Aquarius 30. */
|
|
240
|
+
declare const VALENS_MINOR_YEARS: Readonly<Record<ZodiacSign, number>>;
|
|
241
|
+
/** Units in one round of the twelve signs at any level. */
|
|
242
|
+
declare const RELEASING_CYCLE_UNITS = 211;
|
|
243
|
+
/** A level of releasing: 1 for years, 2 months, 3 "days" and 4 "hours". */
|
|
244
|
+
type ReleasingLevel = 1 | 2 | 3 | 4;
|
|
245
|
+
/** The lots releasing starts from. */
|
|
246
|
+
type ReleasingLot = "Lot of Fortune" | "Lot of Spirit";
|
|
247
|
+
/**
|
|
248
|
+
* The releasing year; each level below is a twelfth of the one above.
|
|
249
|
+
* `"valens-360"` (default): 360 days, so 30-day months and 2½-day and 5-hour
|
|
250
|
+
* units. `"julian-365.25"`: 365¼ days.
|
|
251
|
+
*/
|
|
252
|
+
type ReleasingYearConvention = "valens-360" | "julian-365.25";
|
|
253
|
+
/** The year conventions the releasing functions accept, default first. */
|
|
254
|
+
declare const RELEASING_YEAR_CONVENTIONS: readonly ReleasingYearConvention[];
|
|
255
|
+
/** The year convention used when none is named. */
|
|
256
|
+
declare const DEFAULT_RELEASING_YEARS: ReleasingYearConvention;
|
|
257
|
+
/** Days in one unit of levels 1 to 4 (index 0 is level 1). */
|
|
258
|
+
declare const RELEASING_UNIT_DAYS: Readonly<Record<ReleasingYearConvention, readonly [number, number, number, number]>>;
|
|
259
|
+
/** One releasing period; `start` is inclusive and `end` exclusive. */
|
|
260
|
+
interface ReleasingPeriod {
|
|
261
|
+
readonly level: ReleasingLevel;
|
|
262
|
+
readonly sign: ZodiacSign;
|
|
263
|
+
readonly ruler: TraditionalPlanet;
|
|
264
|
+
/** The sign's minor years: its full length in units of this level. */
|
|
265
|
+
readonly units: number;
|
|
266
|
+
readonly start: Date;
|
|
267
|
+
readonly end: Date;
|
|
268
|
+
/** Days from birth to the start and to the end. */
|
|
269
|
+
readonly startDays: number;
|
|
270
|
+
readonly endDays: number;
|
|
271
|
+
/** Cut short by the end of the enclosing period. */
|
|
272
|
+
readonly truncated: boolean;
|
|
273
|
+
/** The first period after the jump to the opposite sign. */
|
|
274
|
+
readonly loosingOfTheBond: boolean;
|
|
275
|
+
}
|
|
276
|
+
/** What a releasing sequence counts from; `point` is the lot when read from a chart. */
|
|
277
|
+
interface ReleasingOrigin extends TimingOrigin {
|
|
278
|
+
readonly point: ReleasingLot | null;
|
|
279
|
+
}
|
|
280
|
+
/** The conventions a releasing result was computed with. */
|
|
281
|
+
interface ReleasingConventions {
|
|
282
|
+
readonly years: ReleasingYearConvention;
|
|
283
|
+
readonly unitDays: readonly [number, number, number, number];
|
|
284
|
+
readonly loosingOfTheBond: "levels-2-to-4;once-per-period;opposite-of-starting-sign";
|
|
285
|
+
readonly rulers: "traditional-domicile";
|
|
286
|
+
}
|
|
287
|
+
/** The periods of every level up to `levels` that overlap a window. */
|
|
288
|
+
interface ReleasingTimeline {
|
|
289
|
+
readonly origin: ReleasingOrigin;
|
|
290
|
+
readonly birth: Date;
|
|
291
|
+
/** The window; `from` is clamped to birth. */
|
|
292
|
+
readonly from: Date;
|
|
293
|
+
readonly to: Date;
|
|
294
|
+
readonly levels: ReleasingLevel;
|
|
295
|
+
/** Each period followed by its sub-periods, so starts never decrease. */
|
|
296
|
+
readonly periods: readonly ReleasingPeriod[];
|
|
297
|
+
readonly conventions: ReleasingConventions;
|
|
298
|
+
/** Empty unless read from a chart. */
|
|
299
|
+
readonly flags: readonly TimingFlag[];
|
|
300
|
+
}
|
|
301
|
+
/** The four periods running at an instant. */
|
|
302
|
+
interface ReleasingAt {
|
|
303
|
+
readonly origin: ReleasingOrigin;
|
|
304
|
+
readonly birth: Date;
|
|
305
|
+
readonly at: Date;
|
|
306
|
+
readonly elapsedDays: number;
|
|
307
|
+
/** In releasing years of the chosen convention. */
|
|
308
|
+
readonly elapsedYears: number;
|
|
309
|
+
/** Levels 1 to 4. */
|
|
310
|
+
readonly periods: readonly [ReleasingPeriod, ReleasingPeriod, ReleasingPeriod, ReleasingPeriod];
|
|
311
|
+
readonly conventions: ReleasingConventions;
|
|
312
|
+
/** Empty unless read from a chart. */
|
|
313
|
+
readonly flags: readonly TimingFlag[];
|
|
314
|
+
}
|
|
315
|
+
/** Options for {@link releasingPeriods} and {@link zodiacalReleasing}. */
|
|
316
|
+
interface ReleasingOptions {
|
|
317
|
+
/** The deepest level, 1 to 4; 2 by default. */
|
|
318
|
+
readonly levels?: ReleasingLevel;
|
|
319
|
+
/** `"valens-360"` by default. */
|
|
320
|
+
readonly years?: ReleasingYearConvention;
|
|
321
|
+
}
|
|
322
|
+
/** Options for {@link releasingAt} and {@link zodiacalReleasingAt}. */
|
|
323
|
+
interface ReleasingAtOptions {
|
|
324
|
+
/** `"valens-360"` by default. */
|
|
325
|
+
readonly years?: ReleasingYearConvention;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* The periods of levels 1 to `options.levels` (2 by default) that overlap
|
|
329
|
+
* [from, to]. Level 1 runs from birth through the signs in order from the
|
|
330
|
+
* origin (a sign name or a longitude). Each period is divided from its own
|
|
331
|
+
* sign in the next level's units, the last cut short; after a round of 211
|
|
332
|
+
* units the order jumps once to the opposite sign (the loosing of the bond).
|
|
333
|
+
* Boundaries are whole level-4 units after birth. Bad input and windows of
|
|
334
|
+
* more than 100,000 periods throw RangeError. Frozen.
|
|
335
|
+
*/
|
|
336
|
+
declare function releasingPeriods(origin: ZodiacSign | number, birthUtc: DateInput, from: DateInput, to: DateInput, options?: ReleasingOptions): ReleasingTimeline;
|
|
337
|
+
/**
|
|
338
|
+
* The four periods running at `date`, as in {@link releasingPeriods}, with the
|
|
339
|
+
* elapsed days and releasing years. A date before birth throws RangeError.
|
|
340
|
+
* Frozen.
|
|
341
|
+
*/
|
|
342
|
+
declare function releasingAt(origin: ZodiacSign | number, birthUtc: DateInput, date: DateInput, options?: ReleasingAtOptions): ReleasingAt;
|
|
343
|
+
/**
|
|
344
|
+
* {@link releasingPeriods} from a chart's Lot of Fortune or Spirit as
|
|
345
|
+
* `chartPoints` computes it; the lots need a birth time and place.
|
|
346
|
+
*/
|
|
347
|
+
declare function zodiacalReleasing(natal: NatalSource, lot: ReleasingLot, from: DateInput, to: DateInput, options?: ReleasingOptions): ReleasingTimeline;
|
|
348
|
+
/** {@link releasingAt} from a chart's Lot of Fortune or Spirit, as `chartPoints` computes it. */
|
|
349
|
+
declare function zodiacalReleasingAt(natal: NatalSource, lot: ReleasingLot, date: DateInput, options?: ReleasingAtOptions): ReleasingAt;
|
|
350
|
+
|
|
351
|
+
/** The solar arc between a birth and a target instant. */
|
|
352
|
+
interface SolarArc {
|
|
353
|
+
readonly birth: Date;
|
|
354
|
+
readonly target: Date;
|
|
355
|
+
/** `progressedInstant(birth, target)`. */
|
|
356
|
+
readonly progressed: Date;
|
|
357
|
+
/** Apparent longitudes of the Sun at birth and at the progressed instant. */
|
|
358
|
+
readonly natalSun: number;
|
|
359
|
+
readonly progressedSun: number;
|
|
360
|
+
/** progressedSun − natalSun in degrees, counted on past 360° and negative before birth. */
|
|
361
|
+
readonly arc: number;
|
|
362
|
+
readonly flags: readonly TimingFlag[];
|
|
363
|
+
}
|
|
364
|
+
/** A longitude and its directed position (natal + arc), both in [0, 360). */
|
|
365
|
+
interface DirectedLongitude {
|
|
366
|
+
readonly name: string;
|
|
367
|
+
readonly natal: number;
|
|
368
|
+
readonly directed: number;
|
|
369
|
+
/** The directed longitude's sign and degree within it. */
|
|
370
|
+
readonly sign: ZodiacSign;
|
|
371
|
+
readonly degree: number;
|
|
372
|
+
}
|
|
373
|
+
/** A chart longitude and its directed position. */
|
|
374
|
+
interface DirectedPosition extends DirectedLongitude {
|
|
375
|
+
readonly name: ChartLongitudeName;
|
|
376
|
+
readonly kind: "body" | "angle" | "point";
|
|
377
|
+
}
|
|
378
|
+
/** Solar arc directions of a whole chart. */
|
|
379
|
+
interface SolarArcDirections {
|
|
380
|
+
readonly arc: SolarArc;
|
|
381
|
+
/** The twelve bodies, the four angles when present, then `chartPoints`. */
|
|
382
|
+
readonly positions: readonly DirectedPosition[];
|
|
383
|
+
/** The arc's flags, and the sect's when the chart has lots. */
|
|
384
|
+
readonly flags: readonly TimingFlag[];
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* The solar arc at `target`: the Sun of `progressedBodies(birthUtc, target)`
|
|
388
|
+
* minus the natal Sun, both read as UTC instants on the engine's time basis
|
|
389
|
+
* (never on a chart's pinned ΔT).
|
|
390
|
+
* Invalid instants throw RangeError. Frozen.
|
|
391
|
+
*/
|
|
392
|
+
declare function solarArc(birthUtc: DateInput, target: DateInput): SolarArc;
|
|
393
|
+
/**
|
|
394
|
+
* Each `{ name, lon }` advanced by `arc` degrees, normalized to [0, 360). At
|
|
395
|
+
* most 256 rows with unique nonempty names and finite longitudes, and a finite
|
|
396
|
+
* arc; anything else throws RangeError. Frozen.
|
|
397
|
+
*/
|
|
398
|
+
declare function directLongitudes(rows: readonly {
|
|
399
|
+
readonly name: string;
|
|
400
|
+
readonly lon: number;
|
|
401
|
+
}[], arc: number): readonly DirectedLongitude[];
|
|
402
|
+
/**
|
|
403
|
+
* The {@link solarArc} from a chart's birth, and every body, angle and chart
|
|
404
|
+
* point of the chart advanced by it. Invalid charts and instants throw
|
|
405
|
+
* RangeError. Frozen.
|
|
406
|
+
*/
|
|
407
|
+
declare function solarArcDirections(natal: NatalSource, target: DateInput): SolarArcDirections;
|
|
408
|
+
|
|
409
|
+
/** The bodies a return can be asked for. */
|
|
410
|
+
type ReturnBody = "Sun" | "Moon" | "Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn" | "Uranus" | "Neptune" | "Pluto";
|
|
411
|
+
declare const RETURN_BODIES: readonly ReturnBody[];
|
|
412
|
+
/**
|
|
413
|
+
* Days between the coarse samples of each body's search: two steps are
|
|
414
|
+
* shorter than the shortest time between two stations from 1800 to 2200
|
|
415
|
+
* (19.75 days for Mercury, 40.75 for Venus, 59.75 for Mars, longer for the
|
|
416
|
+
* others), and one step moves the Moon at most 15.4°.
|
|
417
|
+
*/
|
|
418
|
+
declare const RETURN_STEP_DAYS: Readonly<Record<ReturnBody, number>>;
|
|
419
|
+
/** One return: an instant in the window at which the body is on its natal longitude. */
|
|
420
|
+
interface PlanetaryReturn {
|
|
421
|
+
readonly at: Date;
|
|
422
|
+
/** True when the body was moving backward through the degree. */
|
|
423
|
+
readonly retrograde: boolean;
|
|
424
|
+
/**
|
|
425
|
+
* The pass it belongs to, from 1 in the window. A pass is one approach to
|
|
426
|
+
* the degree: a single direct return, or direct, retrograde and direct
|
|
427
|
+
* returns around a station.
|
|
428
|
+
*/
|
|
429
|
+
readonly pass: number;
|
|
430
|
+
}
|
|
431
|
+
/** `stepDays` (default {@link RETURN_STEP_DAYS}) and `maxSamples`, a budget of longitude evaluations. */
|
|
432
|
+
interface PlanetaryReturnOptions {
|
|
433
|
+
stepDays?: number;
|
|
434
|
+
maxSamples?: number;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* The search's verdict with its returns: `"complete"` with every return it
|
|
438
|
+
* found, or `"refused"` with none when the budget ran out. Both carry the
|
|
439
|
+
* body, its natal longitude (the chart's, degrees in [0, 360)), the window,
|
|
440
|
+
* the longitude evaluations made (`samples`) and the result's flags.
|
|
441
|
+
*/
|
|
442
|
+
type PlanetaryReturns = {
|
|
443
|
+
readonly status: "complete";
|
|
444
|
+
readonly body: ReturnBody;
|
|
445
|
+
readonly natalLongitude: number;
|
|
446
|
+
readonly from: Date;
|
|
447
|
+
readonly to: Date;
|
|
448
|
+
readonly samples: number;
|
|
449
|
+
readonly flags: readonly TimingFlag[];
|
|
450
|
+
readonly returns: readonly PlanetaryReturn[];
|
|
451
|
+
} | {
|
|
452
|
+
readonly status: "refused";
|
|
453
|
+
readonly reason: "sample-budget";
|
|
454
|
+
readonly maxSamples: number;
|
|
455
|
+
readonly body: ReturnBody;
|
|
456
|
+
readonly natalLongitude: number;
|
|
457
|
+
readonly from: Date;
|
|
458
|
+
readonly to: Date;
|
|
459
|
+
readonly samples: number;
|
|
460
|
+
readonly flags: readonly TimingFlag[];
|
|
461
|
+
readonly returns: readonly [];
|
|
462
|
+
};
|
|
463
|
+
/**
|
|
464
|
+
* Every return of `body` to its natal longitude in (from, to]: the chart's
|
|
465
|
+
* own longitude of the body, then `searchLongitudeCrossings` over the window
|
|
466
|
+
* at the body's step. Retrograde returns are reported with direct ones. The
|
|
467
|
+
* search assumes smooth motion with at most one station in two steps; within
|
|
468
|
+
* that it finds a pair of returns around a station that falls between two
|
|
469
|
+
* samples. Invalid input throws RangeError. Frozen.
|
|
470
|
+
*/
|
|
471
|
+
declare function planetaryReturns(natal: NatalSource, body: ReturnBody, from: DateInput, to: DateInput, options?: PlanetaryReturnOptions): PlanetaryReturns;
|
|
472
|
+
|
|
473
|
+
export { type AngleName, type AnnualProfection, type ChartLongitudeName, DEFAULT_FIRDARIA_VARIANT, DEFAULT_PROFECTION_MONTHS, DEFAULT_RELEASING_YEARS, type DatedFirdariaPeriod, type DatedFirdariaSubPeriod, type DirectedLongitude, type DirectedPosition, FIRDARIA_CYCLE_YEARS, FIRDARIA_VARIANTS, FIRDARIA_YEARS, type FirdariaAt, type FirdariaConventions, type FirdariaLord, type FirdariaOptions, type FirdariaPeriod, type FirdariaSubPeriod, type FirdariaTimeline, type FirdariaTimelineOptions, type FirdariaVariant, PROFECTION_MONTH_CONVENTIONS, type PlanetaryReturn, type PlanetaryReturnOptions, type PlanetaryReturns, type ProfectionAt, type ProfectionConventions, type ProfectionMonth, type ProfectionMonthConvention, type ProfectionOptions, type ProfectionOrigin, type ProfectionSpan, type ProfectionYear, type ProfectionYearSpan, RELEASING_CYCLE_UNITS, RELEASING_UNIT_DAYS, RELEASING_YEAR_CONVENTIONS, RETURN_BODIES, RETURN_STEP_DAYS, type ReleasingAt, type ReleasingAtOptions, type ReleasingConventions, type ReleasingLevel, type ReleasingLot, type ReleasingOptions, type ReleasingOrigin, type ReleasingPeriod, type ReleasingTimeline, type ReleasingYearConvention, type ReturnBody, type SolarArc, type SolarArcDirections, type TimingFlag, type TimingOrigin, TraditionalPlanet, VALENS_MINOR_YEARS, annualProfection, directLongitudes, firdaria, firdariaAt, firdariaPeriods, firdariaSequence, planetaryReturns, profectionAt, profectionYear, releasingAt, releasingPeriods, solarArc, solarArcDirections, zodiacalReleasing, zodiacalReleasingAt };
|