export declare const DEFAULT_DATE_FORMAT = "YYYY-MM-DD"; export declare const SCHEDULE_DAYS_OF_MONTH: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28]; export declare const toScheduleDaysOfMonth: (n: number) => 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28; export type ScheduleDaysOfMonth = ReturnType; export declare const MIN_SCHEDULE_DAY_OF_MONTH = 1; export declare const MAX_SCHEDULE_DAY_OF_MONTH = 28; export declare const LAST_SCHEDULE_DAY_OF_MONTH = 31; declare const toDay: (n: number) => 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 31 | 29 | 30; export type Day = ReturnType; export declare const toMonth: (n: number) => 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; export declare const toMonthStrict: (n: number) => 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | undefined; export type Month = ReturnType; export declare const getMonthFromMonthName: (month: string | undefined, localeID?: string) => Month | undefined; export declare const toQuarter: (n: number) => 1 | 2 | 3 | 4; export declare const toQuarterStrict: (n: number) => 1 | 2 | 3 | 4 | undefined; export type Quarter = ReturnType; /** * Day identified by day-month-year, but without any time zone! */ export interface AbsoluteDay { day: Day; month: Month; year: number; } export interface MonthYearPeriod { month: Month; year: number; } export type MonthYearPeriodId = `${Month}_${number}`; export declare const toMonthYearPeriod: (periodPayload: string) => MonthYearPeriod; export declare const toMonthYearPeriodId: (selectedPeriod: MonthYearPeriod) => MonthYearPeriodId; /** * Convert to start: string; end: string in the format yyyy-mm-dd * @param period - MonthYearPeriod */ export declare function convertToPeriod(period: MonthYearPeriod, useEndOfCurrentMonth?: boolean): { end: string; start: string; }; /** * Convert to absolute day * @param dateString in the format yyyy-mm-dd */ export declare function toAbsoluteDay(dateString: string): AbsoluteDay | undefined; export declare const toString: (day: AbsoluteDay) => string; export interface TimePeriod { end: AbsoluteDay; start: AbsoluteDay; } export {};