kaabalah 2.0.0 → 2.0.2

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.
@@ -0,0 +1,599 @@
1
+ declare enum KaabalahTypes {
2
+ SPHERE = "sphere",
3
+ PATH = "path",
4
+ WORLD = "world"
5
+ }
6
+ declare enum LetterTypes {
7
+ HEBREW_LETTER = "hebrewLetter",
8
+ LATIN_LETTER = "latinLetter",
9
+ SANSKRIT_LETTER = "sanskritLetter",
10
+ ARCHEOMETER_LETTER = "archeometerLetter"
11
+ }
12
+ declare enum WesternAstrologyTypes {
13
+ PLANET = "planet",
14
+ WESTERN_ZODIAC_SIGN = "westernZodiacSign",
15
+ WESTERN_ELEMENT = "westernElement"
16
+ }
17
+ declare enum TarotTypes {
18
+ TAROT_ARK_ANNU = "tarotArkAnnu",
19
+ TAROT_SUIT = "tarotSuit"
20
+ }
21
+ declare enum TantraTypes {
22
+ CHAKRA = "chakra",
23
+ SUBTLE_BODY = "subtleBody"
24
+ }
25
+ declare enum NumerologyTypes {
26
+ NUMBER = "number"
27
+ }
28
+ declare enum MiscTypes {
29
+ COLOR = "color",
30
+ MUSICAL_NOTE = "musicalNote",
31
+ UNCATEGORIZED = "uncategorized"
32
+ }
33
+ type NodeType = (typeof KaabalahTypes)[keyof typeof KaabalahTypes] | (typeof LetterTypes)[keyof typeof LetterTypes] | (typeof NumerologyTypes)[keyof typeof NumerologyTypes] | (typeof MiscTypes)[keyof typeof MiscTypes] | (typeof TarotTypes)[keyof typeof TarotTypes] | (typeof TantraTypes)[keyof typeof TantraTypes] | (typeof WesternAstrologyTypes)[keyof typeof WesternAstrologyTypes];
34
+ type Branded<T, B> = T & {
35
+ readonly __brand: B;
36
+ };
37
+ type NodeId<T extends NodeType> = Branded<`${T}:${string}`, T>;
38
+ declare const id: <T extends NodeType>(type: T, value: string | number) => NodeId<T>;
39
+ declare const parseId: <T extends NodeType>(nodeId: NodeId<T>) => string;
40
+ interface DataMap {
41
+ sphere: SphereData;
42
+ path: PathData;
43
+ world: WorldData;
44
+ hebrewLetter: HebrewLetterData;
45
+ latinLetter: LatinLetterData;
46
+ color: ColorData;
47
+ musicalNote: MusicalNoteData;
48
+ westernZodiacSign: WesternZodiacSignData;
49
+ tarotArkAnnu: TarotArkAnnuData;
50
+ }
51
+ type NodeData<T extends NodeType> = T extends keyof DataMap ? DataMap[T] : never;
52
+ interface Node<T extends NodeType> {
53
+ id: NodeId<T>;
54
+ type: T;
55
+ data?: NodeData<T>;
56
+ name?: string;
57
+ }
58
+ declare class BaseNode<T extends NodeType> implements Node<T> {
59
+ id: NodeId<T>;
60
+ type: T;
61
+ data?: NodeData<T>;
62
+ _name?: string;
63
+ constructor({ id: idValue, type, data, name, }: Omit<Node<T>, "id"> & {
64
+ id: string | number;
65
+ });
66
+ get name(): string;
67
+ }
68
+
69
+ interface HermeticQabalahSphereData {
70
+ /**
71
+ * In Atziluth
72
+ */
73
+ divineName: string;
74
+ /**
75
+ * In Briah
76
+ */
77
+ archangelicName: string;
78
+ /**
79
+ * In Yetzirah
80
+ */
81
+ angelicName: string;
82
+ /**
83
+ * In Assiah
84
+ */
85
+ mundaneName: string;
86
+ }
87
+ type SphereData = {
88
+ hebrewSpelling: string;
89
+ englishName: string;
90
+ magicalImage?: string;
91
+ } & Partial<HermeticQabalahSphereData>;
92
+ type PathData = {
93
+ meaning?: string;
94
+ from: NodeId<KaabalahTypes.SPHERE>;
95
+ to: NodeId<KaabalahTypes.SPHERE>;
96
+ };
97
+ type WorldData = {
98
+ englishName: string;
99
+ };
100
+ type HebrewLetterData = {
101
+ type: "mother" | "double" | "simple";
102
+ gematriaValue: number;
103
+ gematriaValueWhenEnding?: number;
104
+ symbol: string;
105
+ hieroglyph: string;
106
+ yvritMeaning: string;
107
+ character: string;
108
+ characterWhenEnding?: string;
109
+ };
110
+ type LatinLetterData = {
111
+ isVowel: boolean;
112
+ };
113
+ type ColorData = {
114
+ colorDescription: string;
115
+ colorNames: string[];
116
+ colorHexCodes: string[];
117
+ };
118
+ type MusicalNoteData = {
119
+ note: string;
120
+ noteDescription: string;
121
+ frequencies?: [string, string, string, string, string, string, string, string, string];
122
+ };
123
+ type WesternZodiacSignData = {
124
+ element: Exclude<(typeof WESTERN_ELEMENTS)[keyof typeof WESTERN_ELEMENTS], "Ether">;
125
+ type: "cardinal" | "fixed" | "mutable";
126
+ rulingPlanets: Array<Exclude<(typeof PLANETS)[keyof typeof PLANETS], "Earth">>;
127
+ };
128
+ type TarotArkAnnuData = {
129
+ type: "major" | "minor" | "court";
130
+ suit?: (typeof TAROT_SUITS)[keyof typeof TAROT_SUITS];
131
+ descriptiveData?: Partial<Record<keyof typeof TAROT_DECKS, {
132
+ name?: string;
133
+ meaning?: string;
134
+ reversedMeaning?: string;
135
+ keywords?: string[];
136
+ }>>;
137
+ };
138
+ declare const FOUR_WORLDS: {
139
+ readonly ATZILUTH: "Atziluth";
140
+ readonly BRIAH: "Briah";
141
+ readonly YETZIRAH: "Yetzirah";
142
+ readonly ASSIAH: "Assiah";
143
+ };
144
+ declare const FOUR_WORLDS_DATA: Record<keyof typeof FOUR_WORLDS, NodeData<KaabalahTypes.WORLD>>;
145
+ declare const SPHERES: {
146
+ readonly KETHER: "Kether";
147
+ readonly CHOKHMAH: "Chokhmah";
148
+ readonly BINAH: "Binah";
149
+ readonly DAATH: "Daath";
150
+ readonly CHESED: "Chesed";
151
+ readonly GEBURAH: "Geburah";
152
+ readonly TIPHARETH: "Tiphareth";
153
+ readonly NETZACH: "Netzach";
154
+ readonly HOD: "Hod";
155
+ readonly YESOD: "Yesod";
156
+ readonly MALKUTH: "Malkuth";
157
+ };
158
+ declare const SPHERES_DATA: Record<keyof typeof SPHERES, NodeData<KaabalahTypes.SPHERE>>;
159
+ declare const PLANETS: {
160
+ readonly EARTH: "Earth";
161
+ readonly MOON: "Moon";
162
+ readonly SUN: "Sun";
163
+ readonly MERCURY: "Mercury";
164
+ readonly VENUS: "Venus";
165
+ readonly MARS: "Mars";
166
+ readonly JUPITER: "Jupiter";
167
+ readonly SATURN: "Saturn";
168
+ readonly URANUS: "Uranus";
169
+ readonly NEPTUNE: "Neptune";
170
+ readonly PLUTO: "Pluto";
171
+ };
172
+ declare const WESTERN_ZODIAC_SIGNS: {
173
+ readonly ARIES: "Aries";
174
+ readonly TAURUS: "Taurus";
175
+ readonly GEMINI: "Gemini";
176
+ readonly CANCER: "Cancer";
177
+ readonly LEO: "Leo";
178
+ readonly VIRGO: "Virgo";
179
+ readonly LIBRA: "Libra";
180
+ readonly SCORPIO: "Scorpio";
181
+ readonly SAGITTARIUS: "Sagittarius";
182
+ readonly CAPRICORN: "Capricorn";
183
+ readonly AQUARIUS: "Aquarius";
184
+ readonly PISCES: "Pisces";
185
+ };
186
+ declare const WESTERN_ELEMENTS: {
187
+ readonly FIRE: "Fire";
188
+ readonly AIR: "Air";
189
+ readonly WATER: "Water";
190
+ readonly EARTH: "Earth";
191
+ readonly ETHER: "Ether";
192
+ };
193
+ declare const WESTERN_ZODIAC_SIGNS_DATA: Record<keyof typeof WESTERN_ZODIAC_SIGNS, NodeData<WesternAstrologyTypes.WESTERN_ZODIAC_SIGN>>;
194
+ declare const MELKITZEDEKI_PATHS: {
195
+ readonly KETHER_CHOKHMAH: 1;
196
+ readonly KETHER_BINAH: 2;
197
+ readonly KETHER_TIPHARETH: 3;
198
+ readonly CHOKHMAH_BINAH: 4;
199
+ readonly CHOKHMAH_TIPHARETH: 5;
200
+ readonly CHOKHMAH_CHESED: 6;
201
+ readonly BINAH_TIPHARETH: 7;
202
+ readonly BINAH_GEBURAH: 8;
203
+ readonly CHESED_GEBURAH: 9;
204
+ readonly CHESED_TIPHARETH: 10;
205
+ readonly CHESED_NETZACH: 11;
206
+ readonly GEBURAH_TIPHARETH: 12;
207
+ readonly GEBURAH_HOD: 13;
208
+ readonly TIPHARETH_NETZACH: 14;
209
+ readonly TIPHARETH_YESOD: 15;
210
+ readonly TIPHARETH_HOD: 16;
211
+ readonly NETZACH_HOD: 17;
212
+ readonly NETZACH_YESOD: 18;
213
+ readonly NETZACH_MALKUTH: 19;
214
+ readonly HOD_YESOD: 20;
215
+ readonly HOD_MALKUTH: 21;
216
+ readonly YESOD_MALKUTH: 22;
217
+ };
218
+ declare const LURIANIC_PATHS: {
219
+ readonly KETHER_CHOKHMAH: 1;
220
+ readonly KETHER_BINAH: 2;
221
+ readonly KETHER_TIPHARETH: 3;
222
+ readonly CHOKHMAH_BINAH: 4;
223
+ readonly CHOKHMAH_GEBURAH: 5;
224
+ readonly CHOKHMAH_TIPHARETH: 6;
225
+ readonly CHOKHMAH_CHESED: 7;
226
+ readonly BINAH_CHESED: 8;
227
+ readonly BINAH_TIPHARETH: 9;
228
+ readonly BINAH_GEBURAH: 10;
229
+ readonly CHESED_GEBURAH: 11;
230
+ readonly CHESED_TIPHARETH: 12;
231
+ readonly CHESED_NETZACH: 13;
232
+ readonly GEBURAH_TIPHARETH: 14;
233
+ readonly GEBURAH_HOD: 15;
234
+ readonly TIPHARETH_NETZACH: 16;
235
+ readonly TIPHARETH_YESOD: 17;
236
+ readonly TIPHARETH_HOD: 18;
237
+ readonly NETZACH_HOD: 19;
238
+ readonly NETZACH_YESOD: 20;
239
+ readonly HOD_YESOD: 21;
240
+ readonly YESOD_MALKUTH: 22;
241
+ };
242
+ declare const LATIN_LETTERS: {
243
+ readonly A: "A";
244
+ readonly B: "B";
245
+ readonly C: "C";
246
+ readonly D: "D";
247
+ readonly E: "E";
248
+ readonly F: "F";
249
+ readonly G: "G";
250
+ readonly H: "H";
251
+ readonly I: "I";
252
+ readonly J: "J";
253
+ readonly K: "K";
254
+ readonly L: "L";
255
+ readonly M: "M";
256
+ readonly N: "N";
257
+ readonly O: "O";
258
+ readonly P: "P";
259
+ readonly Q: "Q";
260
+ readonly R: "R";
261
+ readonly S: "S";
262
+ readonly T: "T";
263
+ readonly U: "U";
264
+ readonly V: "V";
265
+ readonly W: "W";
266
+ readonly X: "X";
267
+ readonly Y: "Y";
268
+ readonly Z: "Z";
269
+ readonly PH: "Ph";
270
+ readonly TS: "Ts";
271
+ readonly TZ: "Tz";
272
+ readonly TH: "Th";
273
+ readonly CH: "Ch";
274
+ readonly SH: "Sh";
275
+ readonly KH: "Kh";
276
+ readonly Ç: "Ç";
277
+ readonly Ã: "Ã";
278
+ };
279
+ declare const LATIN_LETTERS_DATA: Record<keyof typeof LATIN_LETTERS, NodeData<LetterTypes.LATIN_LETTER>>;
280
+ declare const HEBREW_LETTERS: {
281
+ readonly ALEPH: "Aleph";
282
+ readonly BETH: "Beth";
283
+ readonly GIMEL: "Gimel";
284
+ readonly DALET: "Dalet";
285
+ readonly HE: "He";
286
+ readonly VAV: "Vav";
287
+ readonly ZAYIN: "Zayin";
288
+ readonly HET: "Het";
289
+ readonly TET: "Tet";
290
+ readonly YOD: "Yod";
291
+ readonly KAPH: "Kaph";
292
+ readonly LAMED: "Lamed";
293
+ readonly MEM: "Mem";
294
+ readonly NUN: "Nun";
295
+ readonly SAMEKH: "Samekh";
296
+ readonly AYIN: "Ayin";
297
+ readonly PE: "Pe";
298
+ readonly TSADI: "Tsadi";
299
+ readonly QOPH: "Qoph";
300
+ readonly RESH: "Resh";
301
+ readonly SHIN: "Shin";
302
+ readonly TAV: "Tav";
303
+ };
304
+ declare const HEBREW_LETTERS_DATA: Record<keyof typeof HEBREW_LETTERS, NodeData<LetterTypes.HEBREW_LETTER>>;
305
+ declare const TAROT_SUITS: {
306
+ readonly WANDS: "Wands";
307
+ readonly CUPS: "Cups";
308
+ readonly SWORDS: "Swords";
309
+ readonly PENTACLES: "Pentacles";
310
+ };
311
+ declare const TAROT_ARKANNUS: {
312
+ readonly THE_MAGICIAN: "The Magician";
313
+ readonly THE_HIGH_PRIESTESS: "The High Priestess";
314
+ readonly THE_EMPRESS: "The Empress";
315
+ readonly THE_EMPEROR: "The Emperor";
316
+ readonly THE_HIEROPHANT: "The Hierophant";
317
+ readonly THE_LOVER: "The Lover";
318
+ readonly THE_CHARIOT: "The Chariot";
319
+ readonly JUSTICE: "Justice";
320
+ readonly THE_HERMIT: "The Hermit";
321
+ readonly THE_WHEEL_OF_FORTUNE: "The Wheel of Fortune";
322
+ readonly STRENGTH: "Strength";
323
+ readonly THE_HANGED_MAN: "The Hanged Man";
324
+ readonly DEATH: "Death";
325
+ readonly TEMPERANCE: "Temperance";
326
+ readonly THE_DEVIL: "The Devil";
327
+ readonly THE_TOWER: "The Tower";
328
+ readonly THE_STAR: "The Star";
329
+ readonly THE_MOON: "The Moon";
330
+ readonly THE_SUN: "The Sun";
331
+ readonly JUDGMENT: "Judgment";
332
+ readonly THE_FOOL: "The Fool";
333
+ readonly THE_WORLD: "The World";
334
+ readonly KING_OF_WANDS: "King of Wands";
335
+ readonly QUEEN_OF_WANDS: "Queen of Wands";
336
+ readonly KNIGHT_OF_WANDS: "Knight of Wands";
337
+ readonly PAGE_OF_WANDS: "Page of Wands";
338
+ readonly TEN_OF_WANDS: "Ten of Wands";
339
+ readonly NINE_OF_WANDS: "Nine of Wands";
340
+ readonly EIGHT_OF_WANDS: "Eight of Wands";
341
+ readonly SEVEN_OF_WANDS: "Seven of Wands";
342
+ readonly SIX_OF_WANDS: "Six of Wands";
343
+ readonly FIVE_OF_WANDS: "Five of Wands";
344
+ readonly FOUR_OF_WANDS: "Four of Wands";
345
+ readonly THREE_OF_WANDS: "Three of Wands";
346
+ readonly TWO_OF_WANDS: "Two of Wands";
347
+ readonly ACE_OF_WANDS: "Ace of Wands";
348
+ readonly KING_OF_CUPS: "King of Cups";
349
+ readonly QUEEN_OF_CUPS: "Queen of Cups";
350
+ readonly KNIGHT_OF_CUPS: "Knight of Cups";
351
+ readonly PAGE_OF_CUPS: "Page of Cups";
352
+ readonly TEN_OF_CUPS: "Ten of Cups";
353
+ readonly NINE_OF_CUPS: "Nine of Cups";
354
+ readonly EIGHT_OF_CUPS: "Eight of Cups";
355
+ readonly SEVEN_OF_CUPS: "Seven of Cups";
356
+ readonly SIX_OF_CUPS: "Six of Cups";
357
+ readonly FIVE_OF_CUPS: "Five of Cups";
358
+ readonly FOUR_OF_CUPS: "Four of Cups";
359
+ readonly THREE_OF_CUPS: "Three of Cups";
360
+ readonly TWO_OF_CUPS: "Two of Cups";
361
+ readonly ACE_OF_CUPS: "Ace of Cups";
362
+ readonly KING_OF_SWORDS: "King of Swords";
363
+ readonly QUEEN_OF_SWORDS: "Queen of Swords";
364
+ readonly KNIGHT_OF_SWORDS: "Knight of Swords";
365
+ readonly PAGE_OF_SWORDS: "Page of Swords";
366
+ readonly TEN_OF_SWORDS: "Ten of Swords";
367
+ readonly NINE_OF_SWORDS: "Nine of Swords";
368
+ readonly EIGHT_OF_SWORDS: "Eight of Swords";
369
+ readonly SEVEN_OF_SWORDS: "Seven of Swords";
370
+ readonly SIX_OF_SWORDS: "Six of Swords";
371
+ readonly FIVE_OF_SWORDS: "Five of Swords";
372
+ readonly FOUR_OF_SWORDS: "Four of Swords";
373
+ readonly THREE_OF_SWORDS: "Three of Swords";
374
+ readonly TWO_OF_SWORDS: "Two of Swords";
375
+ readonly ACE_OF_SWORDS: "Ace of Swords";
376
+ readonly KING_OF_PENTACLES: "King of Pentacles";
377
+ readonly QUEEN_OF_PENTACLES: "Queen of Pentacles";
378
+ readonly KNIGHT_OF_PENTACLES: "Knight of Pentacles";
379
+ readonly PAGE_OF_PENTACLES: "Page of Pentacles";
380
+ readonly TEN_OF_PENTACLES: "Ten of Pentacles";
381
+ readonly NINE_OF_PENTACLES: "Nine of Pentacles";
382
+ readonly EIGHT_OF_PENTACLES: "Eight of Pentacles";
383
+ readonly SEVEN_OF_PENTACLES: "Seven of Pentacles";
384
+ readonly SIX_OF_PENTACLES: "Six of Pentacles";
385
+ readonly FIVE_OF_PENTACLES: "Five of Pentacles";
386
+ readonly FOUR_OF_PENTACLES: "Four of Pentacles";
387
+ readonly THREE_OF_PENTACLES: "Three of Pentacles";
388
+ readonly TWO_OF_PENTACLES: "Two of Pentacles";
389
+ readonly ACE_OF_PENTACLES: "Ace of Pentacles";
390
+ };
391
+ declare const TAROT_DECKS: {
392
+ readonly PAPUS_KAABALISTIC: "Papus Kaabalistic";
393
+ readonly KIER_EGYPTIAN: "Kier Egyptian";
394
+ };
395
+ declare const TAROT_ARKANNUS_DATA: Record<keyof typeof TAROT_ARKANNUS, NodeData<TarotTypes.TAROT_ARK_ANNU>>;
396
+ declare const MUSICAL_NOTES: {
397
+ readonly DO: "DO";
398
+ readonly DO_SHARP: "DO_SHARP";
399
+ readonly RE: "RE";
400
+ readonly RE_SHARP: "RE_SHARP";
401
+ readonly MI: "MI";
402
+ readonly FA: "FA";
403
+ readonly FA_SHARP: "FA_SHARP";
404
+ readonly SOL: "SOL";
405
+ readonly SOL_SHARP: "SOL_SHARP";
406
+ readonly LA: "LA";
407
+ readonly LA_SHARP: "LA_SHARP";
408
+ readonly SI: "SI";
409
+ };
410
+ declare const MUSICAL_NOTES_DATA: Record<keyof typeof MUSICAL_NOTES, MusicalNoteData>;
411
+ declare const COLORS: {
412
+ readonly RED: "RED";
413
+ readonly ORANGE: "ORANGE";
414
+ readonly YELLOW: "YELLOW";
415
+ readonly CHARTREUSE_GREEN: "CHARTREUSE_GREEN";
416
+ readonly GREEN: "GREEN";
417
+ readonly SPRING_GREEN: "SPRING_GREEN";
418
+ readonly CYAN: "CYAN";
419
+ readonly AZURE: "AZURE";
420
+ readonly BLUE: "BLUE";
421
+ readonly VIOLET: "VIOLET";
422
+ readonly MAGENTA: "MAGENTA";
423
+ readonly ROSE: "ROSE";
424
+ };
425
+ declare const COLORS_DATA: Record<keyof typeof COLORS, ColorData>;
426
+
427
+ /**
428
+ * TreeOfLife represents a graph structure for mapping Kaabalah, Tarot, Astrology and other
429
+ * esoteric correspondences. It can be used to create multiple independent instances
430
+ * for different use cases or to isolate different sets of correspondences.
431
+ */
432
+ declare class TreeOfLife {
433
+ private nodes;
434
+ private adjacent;
435
+ private modules;
436
+ /**
437
+ * Loads the tree of life system to be used
438
+ * @param systemKey - the key of the system to load
439
+ */
440
+ loadSystem(systemKey: SystemKey): void;
441
+ /**
442
+ * Loads a part of a system into the tree of life
443
+ * @param partKey - the key of the part to load
444
+ */
445
+ loadPart(partKey: PartKey): void;
446
+ /**
447
+ * Unloads the tree of life system and all its parts
448
+ */
449
+ unloadSystem(): void;
450
+ get activeSystem(): SystemKey | null;
451
+ get availableParts(): string[];
452
+ get loadedParts(): PartKey[];
453
+ get availableBridges(): Bridge[];
454
+ get bridgedParts(): string[];
455
+ /**
456
+ * Upserts a node to the tree
457
+ * @param node - the node to upsert
458
+ * @returns the id of the added node
459
+ */
460
+ upsertNode<T extends NodeType>(node: Node<T>): NodeId<T>;
461
+ getNode<T extends NodeType>(id: NodeId<T>): Node<T> | undefined;
462
+ getNodes(): Node<NodeType>[];
463
+ /**
464
+ * Links two nodes bi-directionally
465
+ * @param firstNode - the id of the first node
466
+ * @param secondNode - the id of the second node
467
+ */
468
+ link(firstNode: NodeId<NodeType>, secondNode: NodeId<NodeType>): void;
469
+ /**
470
+ * Gets the current node and all its direct relations, or, when filtered by node type, only the direct relations of that type.
471
+ * @param id - the id of the node to get the relations for
472
+ * @param nodeType - the node type to filter the relations by
473
+ * @returns the current node and all its direct relations
474
+ */
475
+ related<T extends NodeType, U extends NodeType>(id: NodeId<T>, nodeType?: U): Node<U>[];
476
+ /**
477
+ * Sugar for `related(id, type)[0]`
478
+ * @param id - the id of the node to get the related node for
479
+ * @param type - the type of the node to get the related node for
480
+ * @returns the related node
481
+ */
482
+ relatedFirst<T extends NodeType, U extends NodeType>(id: NodeId<T>, type: U): Node<U> | undefined;
483
+ /**
484
+ * Gets all the types of nodes that are directly connected to the given node
485
+ * @param id - the id of the node to get related types for
486
+ * @returns array of node types that are directly connected
487
+ */
488
+ relatedTypes<T extends NodeType>(id: NodeId<T>): T[];
489
+ /**
490
+ * BFS up to depth k, optional type filter for the result set
491
+ * @param id - the id of the node to get the extended relations for
492
+ * @param depth - the depth of the walk
493
+ * @param type - the type of the nodes to filter the result set by
494
+ * @returns the current node and all its extended relations
495
+ */
496
+ walk<T extends NodeType, U extends NodeType>(id: NodeId<T>, depth?: number, type?: U): Node<U>[];
497
+ /**
498
+ * Removes a node and all its relations from the graph, cleaning up adjacency sets.
499
+ * @param id - the id of the node to remove
500
+ */
501
+ removeNode(id: NodeId<NodeType>): void;
502
+ addNumber({ number, nodeId }: {
503
+ number: number;
504
+ nodeId?: NodeId<NodeType>;
505
+ }): NodeId<NumerologyTypes>;
506
+ /**
507
+ * Adds a sphere (sephirah) to the tree with its Hebrew and English names
508
+ * @param sphere - the identifier for the sphere
509
+ * @param data - the sphere's Hebrew and English names
510
+ * @returns the sphere's id
511
+ */
512
+ addSphere({ sphere, data, relatedNumber, }: {
513
+ sphere: string;
514
+ data: NodeData<KaabalahTypes.SPHERE>;
515
+ relatedNumber: number;
516
+ }): NodeId<KaabalahTypes.SPHERE>;
517
+ /**
518
+ * Adds a path between two spheres with its associated number
519
+ * @param leftSphere - the id of the first sphere
520
+ * @param rightSphere - the id of the second sphere
521
+ * @param relatedNumber - the number associated with this path
522
+ * @returns the path's id
523
+ */
524
+ addPath({ leftSphere, rightSphere, relatedNumber, data, }: {
525
+ leftSphere: NodeId<KaabalahTypes.SPHERE>;
526
+ rightSphere: NodeId<KaabalahTypes.SPHERE>;
527
+ relatedNumber: number;
528
+ data?: Omit<NodeData<KaabalahTypes.PATH>, "from" | "to">;
529
+ }): NodeId<KaabalahTypes.PATH>;
530
+ addLetters({ path, letters, }: {
531
+ path: NodeId<KaabalahTypes.PATH>;
532
+ letters: {
533
+ letter: string;
534
+ type: NodeType;
535
+ data?: NodeData<NodeType>;
536
+ }[];
537
+ }): void;
538
+ addWesternAstrologySign({ path, sign, data, relatedNumber, }: {
539
+ path: NodeId<KaabalahTypes.PATH>;
540
+ sign: string;
541
+ data: NodeData<WesternAstrologyTypes.WESTERN_ZODIAC_SIGN>;
542
+ relatedNumber: number;
543
+ }): NodeId<WesternAstrologyTypes.WESTERN_ZODIAC_SIGN>;
544
+ addTarotArkAnnu({ node, tarotArkAnnu, data, relatedNumber, suit, }: {
545
+ node: NodeId<NodeType>;
546
+ tarotArkAnnu: string;
547
+ data: NodeData<TarotTypes.TAROT_ARK_ANNU>;
548
+ relatedNumber: number;
549
+ suit?: string;
550
+ }): NodeId<TarotTypes.TAROT_ARK_ANNU>;
551
+ }
552
+
553
+ /**
554
+ * Loads the Hermetic Qabalah system into the tree of life
555
+ */
556
+ declare function loadHermeticQabalah(tree: TreeOfLife): TreeOfLife;
557
+ declare function loadColors(tree: TreeOfLife): TreeOfLife;
558
+ declare function loadMusicalNotes(tree: TreeOfLife): TreeOfLife;
559
+ declare const LOADERS$2: {
560
+ base: typeof loadHermeticQabalah;
561
+ colors: typeof loadColors;
562
+ music: typeof loadMusicalNotes;
563
+ westernAstrology: Loader;
564
+ };
565
+
566
+ declare const LOADERS$1: {
567
+ base: Loader;
568
+ colors: Loader;
569
+ music: Loader;
570
+ westernAstrology: Loader;
571
+ tarot: Loader;
572
+ };
573
+
574
+ /**
575
+ * Loads the Lurianic Kabbalah system into the tree of life
576
+ */
577
+ declare function loadLurianicKabbalah(tree: TreeOfLife): TreeOfLife;
578
+ declare const LOADERS: {
579
+ base: typeof loadLurianicKabbalah;
580
+ };
581
+
582
+ type System = {
583
+ SYSTEM: "kaabalah" | "hermetic-qabalah" | "lurianic-kabbalah";
584
+ LOADERS: Record<string, Loader>;
585
+ UNLOADERS: Record<string, Unloader>;
586
+ BRIDGES: Bridge[];
587
+ };
588
+ declare const SYSTEMS: System[];
589
+ type SystemKey = (typeof SYSTEMS)[number]["SYSTEM"];
590
+ type PartKey = keyof typeof LOADERS$1 | keyof typeof LOADERS$2 | keyof typeof LOADERS;
591
+ type Loader = (t: TreeOfLife) => TreeOfLife;
592
+ type Unloader = (t: TreeOfLife) => void;
593
+ type Bridge = {
594
+ id: string;
595
+ needs: PartKey[];
596
+ run: (t: TreeOfLife) => void;
597
+ };
598
+
599
+ export { type Loader as A, type Bridge as B, type ColorData as C, TreeOfLife as D, LetterTypes as E, FOUR_WORLDS as F, WesternAstrologyTypes as G, type HebrewLetterData as H, TarotTypes as I, TantraTypes as J, KaabalahTypes as K, type LatinLetterData as L, type MusicalNoteData as M, NumerologyTypes as N, MiscTypes as O, type PathData as P, type NodeType as Q, type NodeId as R, type SphereData as S, type TarotArkAnnuData as T, type Unloader as U, id as V, type WorldData as W, parseId as X, type NodeData as Y, type Node as Z, BaseNode as _, type WesternZodiacSignData as a, FOUR_WORLDS_DATA as b, SPHERES as c, SPHERES_DATA as d, PLANETS as e, WESTERN_ZODIAC_SIGNS as f, WESTERN_ELEMENTS as g, WESTERN_ZODIAC_SIGNS_DATA as h, MELKITZEDEKI_PATHS as i, LURIANIC_PATHS as j, LATIN_LETTERS as k, LATIN_LETTERS_DATA as l, HEBREW_LETTERS as m, HEBREW_LETTERS_DATA as n, TAROT_SUITS as o, TAROT_ARKANNUS as p, TAROT_DECKS as q, TAROT_ARKANNUS_DATA as r, MUSICAL_NOTES as s, MUSICAL_NOTES_DATA as t, COLORS as u, COLORS_DATA as v, type System as w, SYSTEMS as x, type SystemKey as y, type PartKey as z };