import { type ComponentProps, type ReactNode } from 'react'; /** * Unstyled Carbon `TimePicker`: a short text `Input` for "hh:mm" that takes part in the form's own * validation through `pattern` (12-hour `h:mm` / `hh:mm` by default, at most 5 characters), and * `Select`s beside it (AM / PM, time zone). Validation is the app's (as Carbon React): set `invalid` * to mark the input `aria-invalid`. `readOnly` keeps every value: the input is read-only and a select * still takes focus but doesn't open or change (`aria-readonly`); `disabled` disables them all. * A `Select` also works on its own, outside a `Root`. * * State shows as data attributes: `data-invalid`, `data-disabled`, `data-readonly` on `Input`; * `data-disabled`, `data-readonly` on `Select`. * * ```tsx * * * * * * ``` */ export interface RootProps { disabled?: boolean; readOnly?: boolean; /** Marks the input `aria-invalid` and `data-invalid`. */ invalid?: boolean; children?: ReactNode; } interface TimePickerContextValue { disabled: boolean; readOnly: boolean; invalid: boolean; } /** The state of the enclosing `TimePicker.Root` (disabled, readOnly, invalid). */ export declare function useTimePickerContext(part?: string): TimePickerContextValue; /** Holds disabled / read-only / invalid for its parts; renders only its children. */ export declare function Root({ disabled, readOnly, invalid, children }: Readonly): import("react").JSX.Element; /** 12-hour `h:mm` / `hh:mm` (Carbon's default), an optional space after. */ export declare const TWELVE_HOUR_PATTERN: string; /** The time box (`type="text"`): `pattern` and `maxLength` (default 5) take part in the form's validation. */ export declare function Input({ pattern, maxLength, ...rest }: Readonly, 'type' | 'disabled' | 'readOnly'>>): import("react").JSX.Element; /** A native `