import React from 'react'; import { DateType, InnerLocale } from './interface'; import { PickerPanelBaseProps, PickerPanelDateProps, PickerPanelTimeProps } from './date-panel'; import { BorderType, InputSiteType } from '../input/input'; export declare type CellRenderSubType = 'hour' | 'minute' | 'second' | '12Hours'; export declare type CellRenderProp = (current: DateType | number, info: { originNode: React.ReactElement; panelType: 'time' | 'date' | 'week' | 'month' | 'quarter' | 'year'; date?: DateType; range?: 'start' | 'end'; subType?: CellRenderSubType; }) => React.ReactNode; export interface PickerSharedProps extends React.AriaAttributes { dropdownClassName?: string; popupStyle?: React.CSSProperties; popupRef?: React.Ref; transitionName?: string; placeholder?: string; allowClear?: boolean; autoFocus?: boolean; disabled?: boolean; tabIndex?: number; open?: boolean; defaultOpen?: boolean; inputReadOnly?: boolean; id?: string; borderType?: BorderType; size?: InputSiteType; format?: string; suffixIcon?: React.ReactNode; clearIcon?: React.ReactNode; prevIcon?: React.ReactNode; nextIcon?: React.ReactNode; superPrevIcon?: React.ReactNode; superNextIcon?: React.ReactNode; getPopupContainer?: (node: HTMLElement) => HTMLElement; panelRender?: (originPanel: React.ReactNode) => React.ReactNode; onChange?: (value: DateType | null, dateString: string) => void; onOpenChange?: (open: boolean) => void; onFocus?: React.FocusEventHandler; onBlur?: React.FocusEventHandler; onMouseDown?: React.MouseEventHandler; onMouseUp?: React.MouseEventHandler; onMouseEnter?: React.MouseEventHandler; onMouseLeave?: React.MouseEventHandler; onClick?: React.MouseEventHandler; onContextMenu?: React.MouseEventHandler; status?: 'error'; cellRender?: CellRenderProp; } declare type OmitPanelProps = Omit; export interface PickerBaseProps extends PickerSharedProps, OmitPanelProps { } export interface PickerDateProps extends PickerSharedProps, OmitPanelProps { } export interface PickerTimeProps extends PickerSharedProps, Omit, 'format'> { picker: 'time'; defaultOpenValue?: DateType; } export declare type PickerProps = PickerBaseProps | PickerDateProps | PickerTimeProps; export declare type IInnerPicker = undefined | 'year' | 'month'; export declare type DisabledDataProps = (date: DateType, info?: { panelType?: 'month' | 'quarter' | 'year'; range?: 'start' | 'end'; }) => boolean; export declare const mergeDateLocale: (globalLocale: InnerLocale, locale?: {}) => InnerLocale; declare const DatePicker: React.ForwardRefExoticComponent<(Partial & React.RefAttributes) | (Partial & React.RefAttributes) | (Partial & React.RefAttributes)>; export default DatePicker;