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; /** A minute step as the pickers use it: a whole number of at least 1. */ export declare const stepOf: (minuteStep: number) => number; /** Whether an hour has a minute on the step grid that `usable` lets through. */ export declare const isHourReachable: (hour: number, step: number, usable: (minutes: number) => boolean) => 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 a typed hour as the hour of the day. A 12-hour clock takes 1 to 12 and needs its day period * in `value`, matched against the locale's labels with an `am`/`pm` fallback. */ export declare const readHour: (hour: string, value: string, locale: string | undefined, hour12: boolean) => number | undefined; /** Reads typed text as minutes since midnight. */ export declare const parseTimeInput: (value: string, locale?: string, hour12?: boolean) => number | undefined;