//#region src/components/date-picker-popover.logic.d.ts export type CalendarMonth = { month: number; year: number; }; export declare const localDateFromTimestamp: (timestamp: number) => string; export declare const resolveCalendarViewMonth: ({ override, today, value }: { override: CalendarMonth | null; today: string; value: string; }) => CalendarMonth; export declare const shiftCalendarDate: (date: string, options: { months?: number; years?: number; }) => string; export declare const millisecondsUntilNextLocalDate: (timestamp: number) => number; export declare const DATE_PICKER_MODE: Readonly<{ readonly date: "date"; readonly dateTime: "date-time"; }>; export type DatePickerMode = (typeof DATE_PICKER_MODE)[keyof typeof DATE_PICKER_MODE]; /** The time a date-time value takes when a day is picked before any time. */ export declare const DEFAULT_PICKER_TIME = "00:00"; /** A wall-clock selection: an ISO date plus an `HH:mm` time. */ export type DateTimeSelection = { date: string; time: string; }; /** * Read a date-time value (`YYYY-MM-DDTHH:mm`, a zone-less * `Temporal.PlainDateTime`). A bare date reads as midnight and seconds are * dropped. An instant (`…Z`) is not a wall-clock time and throws, like any * other malformed value. */ export declare const parseDateTimeValue: (value: string | null) => DateTimeSelection | null; export declare const formatDateTimeValue: ({ date, time }: DateTimeSelection) => string; export type PickerClock = { hour: number; minute: number; }; export declare const splitPickerTime: (time: string) => PickerClock; export declare const joinPickerTime: (clock: PickerClock) => string; export type PickerTimeOption = { value: number; label: string; }; /** * Hour choices in the locale's own clock: `2 PM` where the locale counts * twelve hours, `14` where it counts twenty-four. */ export declare const getHourOptions: (locale: string) => PickerTimeOption[]; /** Two-digit minute choices in the locale's numbering system. */ export declare const getMinuteOptions: (locale: string) => PickerTimeOption[]; /** Accessible names of the hour and minute fields, from the locale itself. */ export declare const getTimeFieldNames: (locale: string) => Record; //#endregion