import { HDate } from '@hebcal/hdate'; import { HolidayEvent } from './HolidayEvent'; /** * Returns an array of holiday Events that occur on the given date, or * `undefined` if no holidays occur that day. * * When `il` is omitted, both Diaspora-only and Israel-only events are * returned (e.g. on the second day of a Yom Tov, both `"Pesach II"` for * Diaspora and any Israel-only events). Pass `true` or `false` to filter * to a single schedule. * @example * import {getHolidaysOnDate, HDate, months} from '@hebcal/core'; * const events = getHolidaysOnDate(new HDate(15, months.NISAN, 5784), false); * events?.map(ev => ev.getDesc()); // ['Pesach I'] * @param date Hebrew Date, Gregorian date, or absolute R.D. day number * @param [il] use the Israeli schedule for holidays */ export declare function getHolidaysOnDate(date: HDate | Date | number, il?: boolean): HolidayEvent[] | undefined; export type HolidayYearMap = Map; /** * Lower-level holidays interface, which returns a `Map` of `Event`s indexed by * `HDate.toString()`. These events must filtered especially for `flags.IL_ONLY` * or `flags.CHUL_ONLY` depending on Israel vs. Diaspora holiday scheme. * @private */ export declare function getHolidaysForYear_(year: number): HolidayYearMap; /** * Returns a sorted array of holidays observed during the given Hebrew year, * filtered by Israel vs. Diaspora schedule. * * Includes Rosh Chodesh, fasts, special Shabbatot, modern holidays, etc., * but does not generate candle-lighting times, Torah readings, or Omer days. * Use {@link HebrewCalendar.calendar} for those. * @example * import {getHolidaysForYearArray} from '@hebcal/core'; * const events = getHolidaysForYearArray(5784, false); * console.log(events[0].getDesc()); // 'Rosh Hashana 5784' * @param year Hebrew year * @param il use the Israeli schedule for holidays */ export declare function getHolidaysForYearArray(year: number, il: boolean): HolidayEvent[];