import type { TimeSelection } from './types.ts'; export interface TimePickerStateOptions { minuteStep: () => number; min: () => number | undefined; max: () => number | undefined; isTimeEnabled: () => ((minutes: number) => boolean) | undefined; } /** * The hour, minute and day period of a picker, with the step and the bounds applied on every write. * The dialog and the docked picker share it so the rules live in one place. */ export declare const timePickerState: (options: TimePickerStateOptions) => { readonly minutes: number; readonly hour: number; readonly minute: number; readonly isPm: boolean; selection: TimeSelection; readonly usable: boolean; hourReachable: (hour: number) => boolean; /** Puts a value in without snapping it, so an exact incoming value survives a round trip. */ reset: (next: number) => void; set: (next: number) => void; setHour: (hour: number) => void; setMinute: (minute: number) => void; setPm: (isPm: boolean) => void; }; export type TimePickerState = ReturnType;