import { formatTwoDigits } from './formatters.js'; export { formatTwoDigits }; export type ISOTime = string; export declare const MINUTES_IN_HOUR = 60; export declare const HOURS_IN_DAY = 24; export declare const MINUTES_IN_DAY: number; export declare const minutesOfDay: (date: Date) => number; export declare const withMinutes: (date: Date, minutes: number) => Date; export declare const toISOTime: (minutes: number) => string; export declare const parseISOTime: (value: ISOTime | number | null | undefined) => number | undefined; export declare const clampMinutes: (minutes: number, min?: number, max?: number) => number; export declare const isMinuteWithin: (minutes: number, min?: number, max?: number) => boolean; /** * Snaps the minute part to the nearest multiple of `step` without ever rolling into the next hour, * so dragging the dial past the last step lands on it rather than changing the hour. */ export declare const snapToStep: (minutes: number, step: number) => number; export declare const timeOptions: (hour12: boolean) => Intl.DateTimeFormatOptions; export declare const compareTimes: (a: Date, b: Date) => number; export declare const isTimeWithin: (date: Date, min?: Date, max?: Date) => boolean; export declare const uses12HourClock: (locale?: string) => boolean; export declare const getDayPeriodLabels: (locale?: string) => [string, string]; export declare const getHourLabels: (locale: string | undefined, hour12: boolean) => string[]; export declare const formatTime: (date: Date, locale?: string, hour12?: boolean) => string; /** The same as {@link formatTime}, taking minutes since midnight instead of a `Date`. */ export declare const formatMinutes: (minutes: number, locale?: string, hour12?: boolean) => string; /** A hint like `HH:mm` or `hh:mm AM/PM`, for a text field's supporting text. */ export declare const getTimePattern: (locale?: string, hour12?: boolean) => string; /** * Reads typed text as minutes since midnight. The field order comes from the locale's own format * rather than a per-locale regex, and the day period is matched against the locale's labels with an * `am`/`pm` fallback. */ export declare const parseTimeInput: (value: string, locale?: string, hour12?: boolean) => number | undefined;