/** * Retrieves the number of days in a given BS year and month. * @param year BS year (2000 - 2089) * @param month BS month (1 - 12) */ export declare function getDaysInBSMonth(year: number, month: number): number; /** * Checks if a given BS date is valid. * @param year BS year * @param month BS month (1-12) * @param day BS day */ export declare function isValidBSDate(year: number, month: number, day: number): boolean; /** * Converts a Bikram Sambat (BS) date to a Gregorian (AD) Date object. * The returned Date object represents the start of the day (00:00:00) in the Nepal timezone (Asia/Kathmandu). */ export declare function bsToAd(year: number, month: number, day: number): Date; export declare function bsToAd(dateStr: string): Date; export declare function bsToAd(dateObj: { year: number; month: number; day: number; }): Date; /** * Converts a Gregorian (AD) date to a Bikram Sambat (BS) date object. * It uses the calendar date (Year, Month, Day) in the Nepal timezone (Asia/Kathmandu). */ export declare function adToBs(date: Date): { year: number; month: number; day: number; isHoliday: boolean; holidayName: string | null; }; export declare function adToBs(dateStr: string): { year: number; month: number; day: number; isHoliday: boolean; holidayName: string | null; }; export declare function adToBs(timestamp: number): { year: number; month: number; day: number; isHoliday: boolean; holidayName: string | null; };