import * as stylex from '@stylexjs/stylex';
import { type InputStatus, type FieldStatusVariant } from '../Field';
import { type ISOTimeString } from '../utils';
import type { BaseProps } from '../BaseProps';
import type { SizeValue } from '../utils/types';
declare const sizeStyles: Readonly<{
    readonly sm: Readonly<{
        readonly height: stylex.StyleXClassNameFor<"height", "28px">;
        readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 120>;
    }>;
    readonly md: Readonly<{
        readonly height: stylex.StyleXClassNameFor<"height", "32px">;
        readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 120>;
    }>;
    readonly lg: Readonly<{
        readonly height: stylex.StyleXClassNameFor<"height", "36px">;
        readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 120>;
    }>;
}>;
export type TimeInputSize = keyof typeof sizeStyles;
export type TimeInputHourFormat = '12h' | '24h';
export type { InputStatus as TimeInputStatus, InputStatusType as TimeInputStatusType, } from '../Field';
export interface TimeInputProps extends Omit<BaseProps, 'onChange' | 'defaultValue'> {
    /** Ref forwarded to the root element */
    ref?: React.Ref<HTMLInputElement>;
    /**
     * Label text for the input (required for accessibility).
     */
    label: string;
    /**
     * Whether to visually hide the label (still accessible to screen readers).
     * @default false
     */
    isLabelHidden?: boolean;
    /**
     * Description text displayed between the label and input.
     */
    description?: string;
    /**
     * Whether the field is optional. Mutually exclusive with isRequired.
     * @default false
     */
    isOptional?: boolean;
    /**
     * Whether the field is required. Mutually exclusive with isOptional.
     * @default false
     */
    isRequired?: boolean;
    /**
     * Whether the input is disabled.
     * @default false
     */
    isDisabled?: boolean;
    /**
     * Explains why the input is disabled. When set together with
     * `isDisabled`, the input shows a tooltip with this text on hover and
     * keyboard focus, and the field stays focusable (via `aria-disabled`)
     * so the reason is discoverable by keyboard and assistive technology.
     * Typing and arrow-key adjustment stay blocked.
     *
     * Use this instead of wrapping a disabled input in `Tooltip` — disabled
     * controls don't emit the pointer events an external tooltip needs.
     *
     * @example
     * ```
     * <TimeInput
     *   label="Start time"
     *   value={time}
     *   onChange={setTime}
     *   isDisabled
     *   disabledMessage="You need the Editor role to change this"
     * />
     * ```
     */
    disabledMessage?: string;
    /**
     * The selected time in ISO format (HH:MM or HH:MM:SS).
     */
    value?: ISOTimeString;
    /**
     * Callback fired when the time changes.
     * Called with undefined when input is cleared.
     */
    onChange?: (value: ISOTimeString | undefined) => void;
    /**
     * Async action on change. Fires after onChange.
     */
    changeAction?: (value: ISOTimeString | undefined) => void | Promise<void>;
    /**
     * Whether the input is in a loading state.
     * @default false
     */
    isLoading?: boolean;
    /**
     * Minimum selectable time in ISO format.
     */
    min?: ISOTimeString;
    /**
     * Maximum selectable time in ISO format.
     */
    max?: ISOTimeString;
    /**
     * Whether to include seconds in the time input.
     * @default false
     */
    hasSeconds?: boolean;
    /**
     * Whether to show a clear button when a value is set.
     * @default false
     */
    hasClear?: boolean;
    /**
     * Whether to automatically focus the input on mount.
     * @default false
     */
    hasAutoFocus?: boolean;
    /**
     * Hour format for display.
     * - '12h': Display as 12-hour with AM/PM (e.g., "2:30 PM")
     * - '24h': Display as 24-hour (e.g., "14:30")
     * @default '12h'
     */
    hourFormat?: TimeInputHourFormat;
    /**
     * Increment in minutes when using arrow keys.
     * @default 1
     */
    increment?: number;
    /**
     * Placeholder text shown when no time is selected.
     * @default "Select a time"
     */
    placeholder?: string;
    /**
     * The size of the input.
     * - 'sm': Compact size (18px height)
     * - 'md': Default size (26px height)
     * @default 'md'
     */
    size?: TimeInputSize;
    /**
     * Status indicator for the input.
     * When set, displays a colored border and status icon.
     * If message is provided, displays below the input.
     */
    status?: InputStatus;
    /**
     * How the status message is placed relative to the input.
     * - 'attached': message overlaps directly below the input (bordered treatment)
     * - 'detached': message floats below as a separate element with spacing
     * - 'tooltip': no message box; the status icon becomes a focusable info-tip button that reveals the message on hover, keyboard focus, or tap
     * @default 'attached'
     */
    statusVariant?: FieldStatusVariant;
    /**
     * Width of the field. Numbers are treated as pixels, strings are used as-is
     * (e.g. `'100%'`). Sizes the whole field (label, control, and status) so they
     * stay aligned, unlike setting width via `xstyle`/`className`/`style`.
     */
    width?: SizeValue;
    /**
     * Tooltip text to display in an info icon at the end of the label.
     */
    labelTooltip?: string;
}
/**
 * A time input component with text input and keyboard navigation.
 *
 * @example
 * ```
 * <TimeInput
 *   label="Start time"
 *   value={time}
 *   onChange={setTime}
 *   hourFormat="12h"
 *   hasClear
 * />
 * ```
 */
export declare function TimeInput({ label, isLabelHidden, description, isOptional, isRequired, isDisabled, disabledMessage, value, onChange, changeAction, isLoading, min, max, hasSeconds, hasClear, hasAutoFocus, hourFormat, increment, placeholder: placeholderFromProps, size: sizeProp, status, statusVariant, labelTooltip, width, xstyle, className, style, ref, }: TimeInputProps): import("react").JSX.Element;
export declare namespace TimeInput {
    var displayName: string;
}
//# sourceMappingURL=TimeInput.d.ts.map