import * as React from 'react'; import { Omit } from '../../utils'; import { FormFieldContainerBaseProps } from '../FormFieldContainer'; export interface UseTimePickerProps extends Omit { /** * If true, the time picker cannot be edited. * @default false */ disabled?: boolean; /** * ID of the hidden input that stores the time value. Also the prefix for other fields. */ id?: string; /** * Style properties for the outer input */ inputStyle?: React.CSSProperties; isInverse?: boolean; /** * Style properties for the label */ minutesStep?: number; /** * Full time value passed in and converted to use in hour, minute, and AM/PM fields. To clear the TimePicker - send the undefined value. */ value?: string | undefined; /** * @internal */ timezone?: string; /** * Function called when the component is changed to a new time */ onChange?: (value: string) => void; } export declare function useTimePicker(props: UseTimePickerProps): { amPm: string; am: any; amPmRef: React.MutableRefObject; toggleAmPm: () => void; id: string; time: string; hour: string; hourId: string; hourRef: React.MutableRefObject; minute: string; minuteId: string; minuteRef: React.MutableRefObject; descriptionId: string; handleHourChange: (event: React.ChangeEvent) => void; handleMinuteChange: (event: React.ChangeEvent) => void; handleHourKeyDown: (event: React.KeyboardEvent, hourChangeFunc: any) => void; handleMinuteKeyDown: (event: React.KeyboardEvent, minChangeFunc: any) => void; handleAmPmKeyDown: (event: React.KeyboardEvent) => void; }; export declare type UseTimePickerReturn = ReturnType;