@ishubhamx/panchangam-js
Version:
Enhanced Indian Panchangam (Hindu Calendar) library with comprehensive Vedic features including Muhurta calculations, planetary positions, Rashi placements, and auspicious/inauspicious time calculations
54 lines • 1.24 kB
TypeScript
import { PlanetaryPosition, DashaResult } from '../core/types';
/**
* Represents a single House (Bhava) in the Kundli.
*/
export interface Bhava {
number: number;
rashi: number;
longitude: number;
startLongitude: number;
endLongitude: number;
planets: string[];
}
/**
* Configuration options for Kundli generation.
*/
export interface KundliConfig {
houseSystem?: 'whole_sign' | 'equal_house' | 'placidus';
ayanamsa?: 'lahiri' | 'raman' | 'kp';
lang?: 'en' | 'hi';
}
/**
* The complete Janam Kundli (Horoscope) object.
*/
export interface Kundli {
birthDetails: {
date: Date;
lat: number;
lon: number;
timezone: number;
};
ascendant: {
rashi: number;
rashiName: string;
longitude: number;
nakshatra: string;
pada: number;
};
planets: Record<string, PlanetaryPosition>;
houses: Bhava[];
dasha: DashaResult;
vargas?: Record<string, VargaChart>;
}
export interface VargaChart {
ascendant: {
rashi: number;
rashiName: string;
};
planets: Record<string, {
rashi: number;
rashiName: string;
}>;
houses: Bhava[];
}
//# sourceMappingURL=types.d.ts.map