/** * Muhurta — finding auspicious windows. `abhijitMuhurta()` gives the * midday window (the middle 1/15 of daylight); `findMuhurta()` scans a * range against configurable panchang rules and merges passing instants * into windows. */ export interface Place { latitude: number; longitude: number; /** IANA zone defining the local calendar date, e.g. "Asia/Kathmandu". */ timezone: string; } export interface MuhurtaWindow { start: Date; end: Date; } export interface MuhurtaRules { /** Exclude the day's Rahu Kaal. Default true. */ avoidRahuKaal?: boolean; /** Only accept instants between sunrise and sunset. Default true. */ daylightOnly?: boolean; /** Accepted vaar indices (0 = Sunday), unrestricted when omitted. */ allowedVaars?: readonly number[]; /** Accepted tithi indices 0–29, unrestricted when omitted. */ allowedTithis?: readonly number[]; /** Accepted nakshatra indices 0–26, unrestricted when omitted. */ allowedNakshatras?: readonly number[]; /** Accepted yoga indices 0–26, unrestricted when omitted. */ allowedYogas?: readonly number[]; } export interface FindMuhurtaOptions extends Place { from: Date; to: Date; rules?: MuhurtaRules; /** Scan resolution in minutes; window edges snap to it. Default 5. */ stepMinutes?: number; } /** * Abhijit muhurta — the middle 1/15 of daylight (about 24 minutes around * local solar noon), or null on polar days without a sunrise/sunset pair. * * @example * ```ts * abhijitMuhurta(new Date('2026-07-02T06:00:00Z'), * { latitude: 27.7172, longitude: 85.324, timezone: 'Asia/Kathmandu' }); * // ≈ { start: 11:40 NPT, end: 12:35 NPT } (a 55-min 1/15 of a 13.8-h day) * ``` */ export declare function abhijitMuhurta(date: Date, place: Place): MuhurtaWindow | null; /** * Scan `[from, to]` and return the windows where every rule holds. * Edges are quantized to `stepMinutes`, so treat them as ±step accurate. * * @example * ```ts * findMuhurta({ * from, to, latitude: 27.7172, longitude: 85.324, * timezone: 'Asia/Kathmandu', * rules: { avoidRahuKaal: true, allowedVaars: [1, 3, 4, 5] }, * }); // → [{ start, end }, …] daylight windows outside Rahu Kaal * ``` */ export declare function findMuhurta(options: FindMuhurtaOptions): MuhurtaWindow[]; //# sourceMappingURL=muhurta.d.ts.map