import { GenericDateConstructor } from "date-fns"; import type { FormatOptions as DateFnsFormatOptions, Locale as DateFnsLocale } from "date-fns"; import { addDays } from "date-fns/addDays"; import { addMonths } from "date-fns/addMonths"; import { addWeeks } from "date-fns/addWeeks"; import { addYears } from "date-fns/addYears"; import { differenceInCalendarDays } from "date-fns/differenceInCalendarDays"; import { differenceInCalendarMonths } from "date-fns/differenceInCalendarMonths"; import { endOfISOWeek } from "date-fns/endOfISOWeek"; import { endOfMonth } from "date-fns/endOfMonth"; import { endOfWeek } from "date-fns/endOfWeek"; import { endOfYear } from "date-fns/endOfYear"; import { format } from "date-fns/format"; import { getISOWeek } from "date-fns/getISOWeek"; import { getWeek } from "date-fns/getWeek"; import { isAfter } from "date-fns/isAfter"; import { isBefore } from "date-fns/isBefore"; import { isDate } from "date-fns/isDate"; import { isSameDay } from "date-fns/isSameDay"; import { isSameMonth } from "date-fns/isSameMonth"; import { isSameYear } from "date-fns/isSameYear"; import { max } from "date-fns/max"; import { min } from "date-fns/min"; import { setMonth } from "date-fns/setMonth"; import { setYear } from "date-fns/setYear"; import { startOfDay } from "date-fns/startOfDay"; import { startOfISOWeek } from "date-fns/startOfISOWeek"; import { startOfMonth } from "date-fns/startOfMonth"; import { startOfWeek } from "date-fns/startOfWeek"; import { startOfYear } from "date-fns/startOfYear"; /** The options for the {@link Formatters}. */ export type FormatOptions = DateFnsFormatOptions; /** The options for the {@link Labels}. */ export type LabelOptions = DateFnsFormatOptions; /** The locale used within DayPicker. */ export type Locale = DateFnsLocale; export type { Month as DateFnsMonth } from "date-fns"; /** * The default date library to use with the date picker. * * @private * @internal */ export declare const dateLib: { /** The constructor of the date object. */ Date: GenericDateConstructor; addDays: typeof addDays; addMonths: typeof addMonths; addWeeks: typeof addWeeks; addYears: typeof addYears; differenceInCalendarDays: typeof differenceInCalendarDays; differenceInCalendarMonths: typeof differenceInCalendarMonths; endOfISOWeek: typeof endOfISOWeek; endOfMonth: typeof endOfMonth; endOfWeek: typeof endOfWeek; endOfYear: typeof endOfYear; format: typeof format; getISOWeek: typeof getISOWeek; getWeek: typeof getWeek; isAfter: typeof isAfter; isBefore: typeof isBefore; isDate: typeof isDate; isSameDay: typeof isSameDay; isSameMonth: typeof isSameMonth; isSameYear: typeof isSameYear; max: typeof max; min: typeof min; setMonth: typeof setMonth; setYear: typeof setYear; startOfDay: typeof startOfDay; startOfISOWeek: typeof startOfISOWeek; startOfMonth: typeof startOfMonth; startOfWeek: typeof startOfWeek; startOfYear: typeof startOfYear; };