UNPKG

jewish-dates-core

Version:
26 lines 1.98 kB
import Dayjs from "dayjs"; import { JewishDate, JewishDay, JewishMonthMetadata, JewishMonthInfo, BasicJewishMonthInfo, IdText, BasicJewishDate, BasicJewishDay } from "./interfaces"; export declare function isValidDate(date: Date | BasicJewishDate): date is Date; export declare const getHebWeekdays: () => string[]; export declare const getEngWeekdays: () => string[]; export declare const getWeekdays: (isHebrew: boolean) => string[]; export declare const getHebJewishMonths: () => IdText[]; export declare const getEngJewishMonths: () => IdText[]; export declare const getJewishMonths: (year: number, isHebrew?: boolean) => IdText[]; export declare const getJewishYears: (year?: number) => number[]; export declare const getPrevMonth: (basicJewishMonthInfo: BasicJewishMonthInfo) => BasicJewishMonthInfo; export declare const getNextMonth: (basicJewishMonthInfo: BasicJewishMonthInfo) => BasicJewishMonthInfo; export declare const getGregDate: (props: BasicJewishDate) => Date; export declare const getJewishMonthInfo: (date: Date) => JewishMonthMetadata; export declare const getJewishDate: (date: Date) => JewishDate; export declare const IsJewishDatesEqual: (jewishDate1: JewishDate, jewishDate2: JewishDate) => boolean; export declare const getJewishDay: (dayjsDate: Dayjs.Dayjs) => JewishDay; export declare const getJewishMonth: (date: Date) => JewishMonthInfo; export declare const getHolidays: (isIsrael: boolean) => string[]; export declare const dontSelectHolidays: (isIsrael?: boolean) => any; export declare const dontSelectShabat: (day: BasicJewishDay) => boolean; export declare const dontSelectShabatAndHolidays: (isIsrael?: boolean) => any; export declare const dontSelectOutOfRange: (minDate: Date | null, maxDate: Date | null) => any; export declare const addDates: (date: BasicJewishDate | Date, numDays: number) => Date; export declare const subtractDates: (date: BasicJewishDate | Date, numDays: number) => Date; //# sourceMappingURL=jewishDateCore.d.ts.map