/** * v2 compatibility shim. * * v2's API attached a picker to an existing text input. That input is kept in * the DOM and mirrored, so legacy code reading `inputEl.value` or listening for * its `change` event keeps working while the real control is the new element. */ import type { Meridiem } from './controller.js'; import type { PickTimeElement } from './element.js'; export interface LegacyTime { hours: number; minutes: number; meridiem?: string | null; } export interface LegacyOptions { animation?: string; arrow?: boolean; clock?: 12 | 24; minuteSteps?: number; offset?: { left?: number; top?: number; }; theme?: string; time?: LegacyTime; upDownKeys?: boolean; wheelSpin?: boolean; } export interface LegacyTimeOutput { displayTime: string; meridiem: Meridiem | null; time: string; utcOffset: string; } export declare class PickTime { #private; readonly element: PickTimeElement; constructor(input: HTMLInputElement, options?: LegacyOptions); setTime({ hours, minutes, meridiem }: LegacyTime): void; disable(): void; enable(): void; destroy(): void; get getTime(): LegacyTimeOutput; } //# sourceMappingURL=compat.d.ts.map