/** * Panchanga — Five Elements of the Vedic Almanac * * 1. Tithi — Lunar day (Moon - Sun elongation, each 12°) * 2. Nakshatra — Lunar mansion (Moon / 13°20', 27 divisions) * 3. Yoga — Luni-solar yoga (Moon + Sun, each 13°20') * 4. Karana — Half-Tithi (each 6°, 11 types in a specific cycle) * 5. Vara — Weekday from sunrise (not civil midnight) * * All angle arithmetic uses Decimal.js to eliminate IEEE-754 drift. */ import { DateTime } from 'luxon'; export interface PanchangaResult { tithi: { index: number; name: string; percent: number; }; nakshatra: { index: number; name: string; pada: number; percent: number; }; yoga: { index: number; name: string; }; karana: { index: number; name: string; }; vara: { index: number; name: string; }; } /** * Calculate the Panchanga for given solar and lunar sidereal longitudes. * * @param sunLong Sun's sidereal longitude [0, 360) * @param moonLong Moon's sidereal longitude [0, 360) * @param date Luxon DateTime (for Vara weekday) * @param sunriseHour Decimal sunrise hour in local time (default 6.0). * If the current hour is before this, Vara shifts to the previous day. */ export declare function calculatePanchanga(sunLong: number, moonLong: number, date: DateTime, sunriseHour?: number): PanchangaResult;