import { FunctionComponent } from 'react'; import { DateType } from '@date-io/type'; import { MaterialUiPickersDate as MuiPickersDate } from '@material-ui/pickers/typings/date'; import { SlideDirection as MuiSlideDirection } from '@material-ui/pickers/views/Calendar/SlideTransition'; import { RcClassesProps } from '../../../../foundation'; import { RcDatePickerSize } from './DatePicker'; declare type ViewType = 'day' | 'year'; declare type DatePickerHeaderProps = { /** the month on display */ focusedDate: DateType; /** with options 'right' | 'left' */ slideDirection: MuiSlideDirection; /** the current view mode, with options 'day' | 'year'. */ view: ViewType; /** when change view mode */ onViewChange: () => void; /** trigger when Month changes */ onMonthChange: ( /** the month selected */ date: MuiPickersDate, /** slideDirection */ direction: MuiSlideDirection) => void | Promise; /** is disable PrevMonth? with default false. */ disablePrevMonth?: boolean; /** is disable NextMonth? with default false. */ disableNextMonth?: boolean; /** two sizes: medium and small, default is medium. */ size?: RcDatePickerSize; } & RcClassesProps<'header' | 'select' | 'leftArrow' | 'rightArrow'>; declare const DatePickerHeader: FunctionComponent; export { DatePickerHeader }; export type { DatePickerHeaderProps, ViewType };