import React, { PureComponent } from 'react'; import { CaptionElementProps, DayModifiers, NavbarElementProps } from 'react-day-picker'; import { OnChangeParameters } from '../_utils/onChange'; export declare enum DatePickerOrientation { HORIZONTAL = "horizontal", VERTICAL = "vertical" } export declare type DatePickerProps = Readonly<{ name: string; locale?: string; weekdaysShort?: Array; weekdaysLong?: Array; months?: Array; onChange?: (obj: OnChangeParameters) => void; initialDate?: Date; initialMonth?: Date; className?: string; numberOfMonths?: number; orientation?: DatePickerOrientation; isOutsideRange?: (day: Date) => boolean; fromMonth?: Date; toMonth?: Date; firstDayOfWeek?: number; stickyPositionTop?: number; focus?: boolean; }>; export declare type DatePickerState = { date: Date; }; export declare class DatePicker extends PureComponent { static defaultProps: Partial; state: { date: Date; }; dayPickerContainer: React.RefObject; formatMonthTitle: (date: Date) => string; onDayClick: (date: Date, modifiers: DayModifiers) => void; renderNavbar: (props: NavbarElementProps) => JSX.Element; renderCaption: (props: CaptionElementProps) => JSX.Element; renderDay: (day: Date) => JSX.Element; scrollToSelectedMonth: () => void; componentDidMount(): void; componentDidUpdate(): void; render(): JSX.Element; }