import { Dayjs } from 'dayjs'; import 'dayjs/locale/en'; import 'dayjs/locale/en-gb'; import 'dayjs/plugin/advancedFormat'; import 'dayjs/plugin/customParseFormat'; import 'dayjs/plugin/isBetween'; import 'dayjs/plugin/isSameOrAfter'; import 'dayjs/plugin/isSameOrBefore'; import 'dayjs/plugin/localeData'; import 'dayjs/plugin/localizedFormat'; import 'dayjs/plugin/minMax'; import 'dayjs/plugin/quarterOfYear'; import 'dayjs/plugin/relativeTime'; import 'dayjs/plugin/utc'; type ZeniDate = Dayjs; export { ZeniDate, Dayjs }; /** * localeID can be just example, 'en', 'fr', * or * it can be combination of language code (iso639-1) and region code (ios 3166) seperated by hyphon. example en-us, en-in */ export declare function updateZeniDateLocaleID(localeID: string): void; export declare function dateInLocal(dateStringISO: string): ZeniDate; export declare function date(dateStringISO: string, format?: string): ZeniDate; export declare function dateInUTC(dateStringISO: string): ZeniDate; export declare function dateLocal(dateStringISO: string): ZeniDate; export declare function dateNow(): ZeniDate; export declare function dateFromYearMonthDate(year: number, month: number, day?: number): ZeniDate; export declare function getBusinessDayOfDate(date: ZeniDate): number; export declare function setLocalTimezone(timezone: string): void; export declare function getLocalTimezone(): string; /** * Return month index given month name * @param month name of the month * @param localeID localeID can be just example, 'en', 'fr', (or) * it can be combination of language code (iso639-1) and region code (ios 3166) seperated by hyphon. example en-us, en-in * @returns */ export declare function getMonthIndex(month: string, _localeID?: string): number | undefined; export declare function getMinDate(dates: ZeniDate[]): Dayjs;