import type { GenerateConfig } from 'rc-picker/lib/generate/index'; import type { Locale as RcPickerLocale, PickerMode } from 'rc-picker/lib/interface'; import type { SharedTimeProps } from 'rc-picker/lib/panels/TimePanel'; import type { PickerBaseProps as RCPickerBaseProps, PickerDateProps as RCPickerDateProps, PickerTimeProps as RCPickerTimeProps } from 'rc-picker/lib/Picker'; import type { RangePickerBaseProps as RCRangePickerBaseProps, RangePickerDateProps as RCRangePickerDateProps, RangePickerTimeProps as RCRangePickerTimeProps } from 'rc-picker/lib/RangePicker'; import type { SizeType } from '../../config-provider/SizeContext'; import type { TimePickerLocale } from '../../time-picker'; import type { InputStatus } from '../../_util/statusUtils'; import PickerButton from '../PickerButton'; import PickerTag from '../PickerTag'; export declare const Components: { button: typeof PickerButton; rangeItem: typeof PickerTag; }; export declare function getTimeProps(props: { format?: string; picker?: PickerMode; } & Omit, 'disabledTime'> & { disabledTime?: DisabledTime; }): { format?: string | undefined; picker?: "time" | "date" | "week" | "month" | "quarter" | "year" | undefined; showNow?: boolean | undefined; showHour?: boolean | undefined; showMinute?: boolean | undefined; showSecond?: boolean | undefined; use12Hours?: boolean | undefined; hourStep?: number | undefined; minuteStep?: number | undefined; secondStep?: number | undefined; hideDisabledOptions?: boolean | undefined; defaultValue?: DateType | undefined; disabledHours?: (() => number[]) | undefined; disabledMinutes?: ((hour: number) => number[]) | undefined; disabledSeconds?: ((hour: number, minute: number) => number[]) | undefined; disabledTime?: DisabledTime | undefined; } | { showTime: { format?: string | undefined; picker?: "time" | "date" | "week" | "month" | "quarter" | "year" | undefined; showNow?: boolean | undefined; showHour?: boolean | undefined; showMinute?: boolean | undefined; showSecond?: boolean | undefined; use12Hours?: boolean | undefined; hourStep?: number | undefined; minuteStep?: number | undefined; secondStep?: number | undefined; hideDisabledOptions?: boolean | undefined; defaultValue?: DateType | undefined; disabledHours?: (() => number[]) | undefined; disabledMinutes?: ((hour: number) => number[]) | undefined; disabledSeconds?: ((hour: number, minute: number) => number[]) | undefined; disabledTime?: DisabledTime | undefined; }; }; declare const DataPickerPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"]; declare type DataPickerPlacement = typeof DataPickerPlacements[number]; declare type InjectDefaultProps = Omit & { locale?: PickerLocale; size?: SizeType; placement?: DataPickerPlacement; bordered?: boolean; status?: InputStatus; }; export declare type PickerLocale = { lang: RcPickerLocale & AdditionalPickerLocaleLangProps; timePickerLocale: TimePickerLocale; } & AdditionalPickerLocaleProps; export declare type AdditionalPickerLocaleProps = { dateFormat?: string; dateTimeFormat?: string; weekFormat?: string; monthFormat?: string; quarterFormat?: string; yearFormat?: string; }; export declare type AdditionalPickerLocaleLangProps = { placeholder: string; yearPlaceholder?: string; quarterPlaceholder?: string; monthPlaceholder?: string; weekPlaceholder?: string; rangeYearPlaceholder?: [string, string]; rangeQuarterPlaceholder?: [string, string]; rangeMonthPlaceholder?: [string, string]; rangeWeekPlaceholder?: [string, string]; rangePlaceholder?: [string, string]; }; export declare type PickerBaseProps = InjectDefaultProps>; export declare type PickerDateProps = InjectDefaultProps>; export declare type PickerTimeProps = InjectDefaultProps>; export declare type PickerProps = PickerBaseProps | PickerDateProps | PickerTimeProps; export declare type RangePickerBaseProps = InjectDefaultProps>; export declare type RangePickerDateProps = InjectDefaultProps>; export declare type RangePickerTimeProps = InjectDefaultProps>; export declare type RangePickerProps = RangePickerBaseProps | RangePickerDateProps | RangePickerTimeProps; declare function generatePicker(generateConfig: GenerateConfig): import("./interface").PickerComponentClass<(Pick, "format" | "defaultValue" | "picker" | "onChange" | "prefixCls" | "className" | "style" | "mode" | "tabIndex" | "value" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onSelect" | "onPanelChange" | "onMouseDown" | "onOk" | "direction" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "transitionName" | "placeholder" | "allowClear" | "autoFocus" | "disabled" | "open" | "defaultOpen" | "inputReadOnly" | "id" | "suffixIcon" | "clearIcon" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "getPopupContainer" | "panelRender" | "inputRender" | "onOpenChange" | "onFocus" | "onBlur" | "onMouseUp" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onContextMenu" | "onKeyDown" | "pickerRef" | "role" | "name" | "autoComplete" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext"> & { locale?: PickerLocale | undefined; size?: SizeType; placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined; bordered?: boolean | undefined; status?: "" | "warning" | "error" | undefined; } & { status?: "" | "warning" | "error" | undefined; }) | (Pick, "disabledTime" | "format" | "showNow" | "defaultValue" | "picker" | "onChange" | "prefixCls" | "className" | "style" | "mode" | "tabIndex" | "value" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onSelect" | "onPanelChange" | "onMouseDown" | "onOk" | "direction" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "transitionName" | "placeholder" | "allowClear" | "autoFocus" | "disabled" | "open" | "defaultOpen" | "inputReadOnly" | "id" | "suffixIcon" | "clearIcon" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "getPopupContainer" | "panelRender" | "inputRender" | "onOpenChange" | "onFocus" | "onBlur" | "onMouseUp" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onContextMenu" | "onKeyDown" | "pickerRef" | "role" | "name" | "autoComplete" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "showToday" | "showTime"> & { locale?: PickerLocale | undefined; size?: SizeType; placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined; bordered?: boolean | undefined; status?: "" | "warning" | "error" | undefined; } & { status?: "" | "warning" | "error" | undefined; }) | (Pick, "disabledTime" | "format" | "showNow" | "showHour" | "showMinute" | "showSecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "hideDisabledOptions" | "defaultValue" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "picker" | "onChange" | "prefixCls" | "className" | "style" | "mode" | "tabIndex" | "value" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onSelect" | "onPanelChange" | "onMouseDown" | "onOk" | "direction" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "transitionName" | "placeholder" | "allowClear" | "autoFocus" | "disabled" | "open" | "defaultOpen" | "inputReadOnly" | "id" | "suffixIcon" | "clearIcon" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "getPopupContainer" | "panelRender" | "inputRender" | "onOpenChange" | "onFocus" | "onBlur" | "onMouseUp" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onContextMenu" | "onKeyDown" | "pickerRef" | "role" | "name" | "autoComplete" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "defaultOpenValue"> & { locale?: PickerLocale | undefined; size?: SizeType; placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined; bordered?: boolean | undefined; status?: "" | "warning" | "error" | undefined; } & { status?: "" | "warning" | "error" | undefined; }), unknown> & { WeekPicker: import("./interface").PickerComponentClass>, "disabledTime" | "format" | "showNow" | "defaultValue" | "locale" | "onChange" | "prefixCls" | "className" | "style" | "mode" | "tabIndex" | "value" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onSelect" | "onPanelChange" | "onMouseDown" | "onOk" | "direction" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "transitionName" | "placeholder" | "allowClear" | "autoFocus" | "disabled" | "open" | "defaultOpen" | "inputReadOnly" | "id" | "suffixIcon" | "clearIcon" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "getPopupContainer" | "panelRender" | "inputRender" | "onOpenChange" | "onFocus" | "onBlur" | "onMouseUp" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onContextMenu" | "onKeyDown" | "pickerRef" | "role" | "name" | "autoComplete" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "showToday" | "showTime" | "size" | "placement" | "bordered" | "status">, unknown>; MonthPicker: import("./interface").PickerComponentClass>, "disabledTime" | "format" | "showNow" | "defaultValue" | "locale" | "onChange" | "prefixCls" | "className" | "style" | "mode" | "tabIndex" | "value" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onSelect" | "onPanelChange" | "onMouseDown" | "onOk" | "direction" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "transitionName" | "placeholder" | "allowClear" | "autoFocus" | "disabled" | "open" | "defaultOpen" | "inputReadOnly" | "id" | "suffixIcon" | "clearIcon" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "getPopupContainer" | "panelRender" | "inputRender" | "onOpenChange" | "onFocus" | "onBlur" | "onMouseUp" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onContextMenu" | "onKeyDown" | "pickerRef" | "role" | "name" | "autoComplete" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "showToday" | "showTime" | "size" | "placement" | "bordered" | "status">, unknown>; YearPicker: import("./interface").PickerComponentClass>, "disabledTime" | "format" | "showNow" | "defaultValue" | "locale" | "onChange" | "prefixCls" | "className" | "style" | "mode" | "tabIndex" | "value" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onSelect" | "onPanelChange" | "onMouseDown" | "onOk" | "direction" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "transitionName" | "placeholder" | "allowClear" | "autoFocus" | "disabled" | "open" | "defaultOpen" | "inputReadOnly" | "id" | "suffixIcon" | "clearIcon" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "getPopupContainer" | "panelRender" | "inputRender" | "onOpenChange" | "onFocus" | "onBlur" | "onMouseUp" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onContextMenu" | "onKeyDown" | "pickerRef" | "role" | "name" | "autoComplete" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "showToday" | "showTime" | "size" | "placement" | "bordered" | "status">, unknown>; RangePicker: import("./interface").PickerComponentClass, unknown>; TimePicker: import("./interface").PickerComponentClass>, "disabledTime" | "format" | "showNow" | "showHour" | "showMinute" | "showSecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "hideDisabledOptions" | "defaultValue" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "locale" | "onChange" | "prefixCls" | "className" | "style" | "mode" | "tabIndex" | "value" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onSelect" | "onPanelChange" | "onMouseDown" | "onOk" | "direction" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "transitionName" | "placeholder" | "allowClear" | "autoFocus" | "disabled" | "open" | "defaultOpen" | "inputReadOnly" | "id" | "suffixIcon" | "clearIcon" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "getPopupContainer" | "panelRender" | "inputRender" | "onOpenChange" | "onFocus" | "onBlur" | "onMouseUp" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onContextMenu" | "onKeyDown" | "pickerRef" | "role" | "name" | "autoComplete" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "defaultOpenValue" | "size" | "placement" | "bordered" | "status">, unknown>; QuarterPicker: import("./interface").PickerComponentClass>, "disabledTime" | "format" | "showNow" | "showHour" | "showMinute" | "showSecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "hideDisabledOptions" | "defaultValue" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "locale" | "onChange" | "prefixCls" | "className" | "style" | "mode" | "tabIndex" | "value" | "defaultPickerValue" | "disabledDate" | "dateRender" | "monthCellRender" | "renderExtraFooter" | "onSelect" | "onPanelChange" | "onMouseDown" | "onOk" | "direction" | "dropdownClassName" | "dropdownAlign" | "popupStyle" | "transitionName" | "placeholder" | "allowClear" | "autoFocus" | "disabled" | "open" | "defaultOpen" | "inputReadOnly" | "id" | "suffixIcon" | "clearIcon" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "getPopupContainer" | "panelRender" | "inputRender" | "onOpenChange" | "onFocus" | "onBlur" | "onMouseUp" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onContextMenu" | "onKeyDown" | "pickerRef" | "role" | "name" | "autoComplete" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "defaultOpenValue" | "size" | "placement" | "bordered" | "status">, unknown>; }; export default generatePicker;