import type { CLASSES } from './vars'; import type { FormControlProvider } from '../form/types'; import type { BaseProps, Size, VerticalSidePlacement } from '../types'; export {}; export interface TimePickerRef { updatePosition: () => void; } export interface TimePickerProps extends BaseProps<'time-picker' | 'time-picker-popup', typeof CLASSES>, Omit, 'children' | 'placeholder'> { ref?: React.Ref; formControl?: FormControlProvider; model?: Date | [Date, Date] | null; defaultModel?: Date | [Date, Date] | null; visible?: boolean; defaultVisible?: boolean; placement?: VerticalSidePlacement; placementFixed?: boolean; placeholder?: string | [string?, string?]; range?: boolean; format?: string; order?: 'ascend' | 'descend' | false; clearable?: boolean; size?: Size; disabled?: boolean; config?: (unit: 'hour' | 'minute' | 'second', value: number, position: 'start' | 'end', current: [Date | null, Date | null]) => { disabled?: boolean; hidden?: boolean; }; escClosable?: boolean; inputProps?: [React.ComponentPropsWithRef<'input'>?, React.ComponentPropsWithRef<'input'>?]; onModelChange?: (date: any) => void; onVisibleChange?: (visible: boolean) => void; onClear?: () => void; afterVisibleChange?: (visible: boolean) => void; }