import React from 'react'; import { DateRender, PanelMode, CellRender, OnPanelChange, PickerMode, SharedTimeProps, DateType, DisabledTime, InnerLocale, Components } from './interface'; import { DisabledDataProps } from './date-picker'; export interface PickerPanelSharedProps { prefixCls?: string; className?: string; style?: React.CSSProperties; mode?: PanelMode; tabIndex?: number; yearItemNumber?: number; locale: InnerLocale; value?: DateType | null; defaultValue?: DateType; pickerValue?: DateType; defaultPickerValue?: DateType; prevIcon?: React.ReactNode; nextIcon?: React.ReactNode; superPrevIcon?: React.ReactNode; superNextIcon?: React.ReactNode; mergedActivePickerIndex?: 0 | 1; useWeekdaysShort?: boolean; showWeekNumber?: boolean; showWeeksTitle?: boolean; disabledDate?: DisabledDataProps; dateRender?: DateRender; monthCellRender?: CellRender; renderExtraFooter?: (mode: PanelMode) => React.ReactNode; onSelect?: (value: DateType) => void; onChange?: (value: DateType) => void; onPanelChange?: OnPanelChange; onMouseDown?: React.MouseEventHandler; onOk?: (date: DateType) => void; components?: Components; } export interface PickerPanelBaseProps extends PickerPanelSharedProps { picker: Exclude; } export interface PickerPanelDateProps extends PickerPanelSharedProps { picker?: 'date'; showToday?: boolean; showNow?: boolean; showTime?: boolean | SharedTimeProps; disabledTimePanel?: DisabledTime; } export interface PickerPanelTimeProps extends PickerPanelSharedProps, SharedTimeProps { picker: 'time'; } export declare type PickerPanelProps = PickerPanelBaseProps | PickerPanelDateProps | PickerPanelTimeProps; declare type OmitType = Omit & Omit & Omit; interface MergedPickerPanelProps extends OmitType { picker?: PickerMode; } declare function Panel(props: MergedPickerPanelProps): JSX.Element; export default Panel;