import { ZonedDateTime } from '@internationalized/date'; import { EditableSegmentLimits } from '../../types'; import { EditableSegment } from '../editable-segment'; export declare class HourSegment extends EditableSegment { minValue: number; maxValue: number; value?: number; constructor(formatted: string, label: string); setLimits(is12HourClock?: boolean): void; setValueFromDate(currentDate: ZonedDateTime, is12HourClock?: boolean): void; /** * Returns the limits used to validate a user typed-in value. * * Different limits are needed when the user is typing in the hour segment and the clock is in 12-hour format due to the fact that * the hour value of 0 should be displayed as 12. Therefore, in the 12h format, the user should be able to type in "12" but not "00", * for the 00 time, which is represented by the value of 0 of the hour segment. */ get inputValidationLimits(): EditableSegmentLimits; }