@hatijs/helper
Version:
Node.js library, which has increased usability in @hatijs/core library.
235 lines (234 loc) • 9.74 kB
TypeScript
import { constant } from './hati';
declare class Hati {
private tjdUT;
private geometry;
static constant: typeof constant;
static util: {
convertDegreeToDMS: (degree: number) => {
degree: number;
minute: number;
second: number;
};
convertDegreeToPosition: (degree: number) => {
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
};
convertUpperCaseToCapitalize: (str: string) => string;
createEnumObject: <T extends string>(o: { [P in T]: P; }) => { [P in T]: P; };
prefixEnumObject: <T_1 extends string>(o: { [P_1 in T_1]: P_1; }, prefix: string) => {
[x: string]: string;
};
getConstellationIndexFromLongitude: (degree: number) => number;
getConstellationIndexFromConstellationName: (name: "ARIES" | "TAURUS" | "GEMINI" | "CANCER" | "LEO" | "VIRGO" | "LIBRA" | "SCORPIO" | "SAGITTARIUS" | "CAPRICORN" | "AQUARIUS" | "PISCES") => number;
getDuodecatemorion: (degree: number) => {
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
};
getHouses: (tjdUT: number, geoLon: number, geoLat: number, hsys: "PLACIDUS" | "KOCH" | "REGIOMONTANUS" | "CAMPANUS" | "EQUAL" | "WHOLE_SIGN" | "MERIDIAN" | "MORINUS" | "HORIZONTAL" | "PAGE_POLICH" | "ALCABITIUS" | "PORPHYRY") => {
house: number[];
ascendant: number;
mc: number;
armc: number;
vertex: number;
equatorialAscendant: number;
kochCoAscendant: number;
munkaseyCoAscendant: number;
munkaseyPolarAscendant: number;
};
getVersion: () => string;
isDiurnal: (tjdUT: number, geoLon: number, geoLat: number, posPoint?: number | undefined) => boolean;
};
dignity: {
getPlanet: (ownership: "EXALTATION" | "RULERSHIP" | "TRIPLICITY" | "TERM" | "DECAN" | "FALL" | "DETRIMENT") => (name: "SATURN" | "JUPITER" | "MARS" | "SUN" | "VENUS" | "MERCURY" | "MOON") => boolean | {
[x: string]: {
first: boolean;
second: boolean;
partner: boolean;
};
} | {
[x: string]: boolean;
} | undefined;
};
house: {
getPlanet: (name: "SATURN" | "JUPITER" | "MARS" | "SUN" | "VENUS" | "MERCURY" | "MOON" | "ECL_NUT" | "URANUS" | "NEPTUNE" | "PLUTO" | "MEAN_NODE" | "TRUE_NODE" | "MEAN_APOG" | "OSCU_APOG" | "EARTH" | "CHIRON" | "PHOLUS" | "CERES" | "PALLAS" | "JUNO" | "VESTA" | "INTP_APOG" | "INTP_PERG" | "NPLANETS" | "FICT_OFFSET" | "NFICT_ELEM" | "PLMOON_OFFSET" | "AST_OFFSET" | "CUPIDO" | "HADES" | "ZEUS" | "KRONOS" | "APOLLON" | "ADMETOS" | "VULKANUS" | "POSEIDON" | "ISIS" | "NIBIRU" | "HARRINGTON" | "NEPTUNE_LEVERRIER" | "NEPTUNE_ADAMS" | "PLUTO_LOWELL" | "PLUTO_PICKERING", hsys: "PLACIDUS" | "KOCH" | "REGIOMONTANUS" | "CAMPANUS" | "EQUAL" | "WHOLE_SIGN" | "MERIDIAN" | "MORINUS" | "HORIZONTAL" | "PAGE_POLICH" | "ALCABITIUS" | "PORPHYRY") => {
absolute: number | undefined;
ruleOfMoiety: number | undefined;
};
getLot: (name: "ACQUISITION" | "BASIS" | "EXALTATION" | "FORTUNE" | "SPIRIT", hsys: "PLACIDUS" | "KOCH" | "REGIOMONTANUS" | "CAMPANUS" | "EQUAL" | "WHOLE_SIGN" | "MERIDIAN" | "MORINUS" | "HORIZONTAL" | "PAGE_POLICH" | "ALCABITIUS" | "PORPHYRY") => {
absolute: number | undefined;
};
};
position: {
getHouse: (hsys: "PLACIDUS" | "KOCH" | "REGIOMONTANUS" | "CAMPANUS" | "EQUAL" | "WHOLE_SIGN" | "MERIDIAN" | "MORINUS" | "HORIZONTAL" | "PAGE_POLICH" | "ALCABITIUS" | "PORPHYRY", dodecatemoria?: boolean | undefined) => (name: "ASCENDANT" | "MC" | "ARMC" | "VERTEX" | "EQUATORIALASCENDANT" | "KOCHCOASCENDANT" | "MUNKASEYCOASCENDANT" | "MUNKASEYPOLARASCENDANT") => {
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
} | {
dodecatemoria: {
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
};
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
};
getHouses: (hsys: "PLACIDUS" | "KOCH" | "REGIOMONTANUS" | "CAMPANUS" | "EQUAL" | "WHOLE_SIGN" | "MERIDIAN" | "MORINUS" | "HORIZONTAL" | "PAGE_POLICH" | "ALCABITIUS" | "PORPHYRY", dodecatemoria?: boolean | undefined) => (number: 0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11) => {
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
} | {
dodecatemoria: {
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
};
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
};
getPlanet: (name: "SATURN" | "JUPITER" | "MARS" | "SUN" | "VENUS" | "MERCURY" | "MOON" | "ECL_NUT" | "URANUS" | "NEPTUNE" | "PLUTO" | "MEAN_NODE" | "TRUE_NODE" | "MEAN_APOG" | "OSCU_APOG" | "EARTH" | "CHIRON" | "PHOLUS" | "CERES" | "PALLAS" | "JUNO" | "VESTA" | "INTP_APOG" | "INTP_PERG" | "NPLANETS" | "FICT_OFFSET" | "NFICT_ELEM" | "PLMOON_OFFSET" | "AST_OFFSET" | "CUPIDO" | "HADES" | "ZEUS" | "KRONOS" | "APOLLON" | "ADMETOS" | "VULKANUS" | "POSEIDON" | "ISIS" | "NIBIRU" | "HARRINGTON" | "NEPTUNE_LEVERRIER" | "NEPTUNE_ADAMS" | "PLUTO_LOWELL" | "PLUTO_PICKERING", dodecatemoria?: boolean | undefined) => {
name: string;
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
latitude: number;
rectAscension: number;
declination: number;
};
speed: {
absolute: {
longitude: number;
latitude: number;
};
relative: {
longitude: number;
};
};
} | {
dodecatemoria: {
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
};
name: string;
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
latitude: number;
rectAscension: number;
declination: number;
};
speed: {
absolute: {
longitude: number;
latitude: number;
};
relative: {
longitude: number;
};
};
};
getLot: (name: "ACQUISITION" | "BASIS" | "EXALTATION" | "FORTUNE" | "SPIRIT", dodecatemoria?: boolean | undefined) => {
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
} | {
dodecatemoria: {
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
};
constellation: {
name: string;
};
position: {
longitude: {
absolute: number;
relative: number;
};
};
};
};
swisseph: typeof import("@hatijs/core/dist/swisseph/constant") & typeof import("@hatijs/core/dist/swisseph/date") & typeof import("@hatijs/core/dist/swisseph/eclipse") & typeof import("@hatijs/core/dist/swisseph/hel") & typeof import("@hatijs/core/dist/swisseph/house") & typeof import("@hatijs/core/dist/swisseph/pos") & typeof import("@hatijs/core/dist/swisseph/util");
constructor(date: Date, timeZone: number, longitude: number, latitude: number);
}
export default Hati;