import * as React from 'react'; import type { PickerRef } from '@rc-component/picker'; import type { Dayjs } from 'dayjs'; import type { SemanticClassNamesType, SemanticStylesType } from '../_util/hooks'; import type { InputStatus } from '../_util/statusUtils'; import type { AnyObject } from '../_util/type'; import type { GenericTimePickerProps, PickerPropsWithMultiple, RangePickerProps } from '../date-picker/generatePicker/interface'; export type TimePickerSemanticName = keyof TimePickerSemanticClassNames & keyof TimePickerSemanticStyles; export type TimePickerSemanticClassNames = { root?: string; prefix?: string; input?: string; suffix?: string; }; export type TimePickerSemanticStyles = { root?: React.CSSProperties; prefix?: React.CSSProperties; input?: React.CSSProperties; suffix?: React.CSSProperties; }; export type TimePickerPanelSemanticName = keyof TimePickerPanelSemanticClassNames & keyof TimePickerPanelSemanticStyles; export type TimePickerPanelSemanticClassNames = { root?: string; content?: string; item?: string; footer?: string; container?: string; }; export type TimePickerPanelSemanticStyles = { root?: React.CSSProperties; content?: React.CSSProperties; item?: React.CSSProperties; footer?: React.CSSProperties; container?: React.CSSProperties; }; export type TimePickerClassNames = SemanticClassNamesType; export type TimePickerStyles = SemanticStylesType; export type PickerTimeProps = PickerPropsWithMultiple>; export type RangePickerTimeProps = Omit, 'showTime' | 'picker'>; export interface TimePickerLocale { placeholder?: string; rangePlaceholder?: [string, string]; } export interface TimeRangePickerProps extends Omit, 'picker'> { /** @deprecated Please use `classNames.popup` instead */ popupClassName?: string; /** @deprecated Please use `styles.popup` instead */ popupStyle?: React.CSSProperties; } declare const RangePicker: React.ForwardRefExoticComponent>; export interface TimePickerProps extends Omit, 'picker' | 'classNames' | 'styles'> { addon?: () => React.ReactNode; status?: InputStatus; /** @deprecated Please use `classNames.popup` instead */ popupClassName?: string; /** @deprecated Please use `styles.popup` instead */ popupStyle?: React.CSSProperties; rootClassName?: string; classNames?: TimePickerClassNames; styles?: TimePickerStyles; } declare const TimePicker: React.ForwardRefExoticComponent & React.RefAttributes>; declare const PurePanel: (props: AnyObject) => React.JSX.Element; type MergedTimePicker = typeof TimePicker & { RangePicker: typeof RangePicker; _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel; }; declare const _default: MergedTimePicker; export default _default;