import React from 'react'; import { type Matcher } from 'react-day-picker'; import { ICustomRangeOptions } from './custom_range_select'; import { PreparedSelectionRange } from './prepared_selection_range'; import { IPickerPosition, OnUpdateRangeProps } from '.'; interface PickerProps { customRange?: string | null; from?: Date; handleApply: () => void; hideDayPicker: () => void; inputsFocus: { from?: boolean; to?: boolean; }; onUpdateRange: (data: OnUpdateRangeProps) => void; pastOnly: boolean; pickerPosition: IPickerPosition | null; preparedSelectionRange: PreparedSelectionRange; retail?: boolean; to?: Date; today?: Date; disableBefore?: string; weekStartsOn?: number; } interface PickerState { currentActiveMonth?: Date; enteredTo?: Date; } interface IsSelectingFirstDayProps { day: Date; from?: Date | null; to?: Date | null; } export declare class Picker extends React.PureComponent { constructor(props: PickerProps); componentDidUpdate(prevProps: PickerProps): void; handleUpdateCurrentMonth: (month: Date) => void; isSelectingFirstDay: ({ from, to, day }: IsSelectingFirstDayProps) => boolean; handleDayClick: (day: Date) => void; handleDayMouseEnter: (day: Date) => void; updateEnteredTo: (day?: Date | undefined) => void; handleApply: () => void; updateDates: ({ from, to, customOptionValue }: { from: any; to: any; customOptionValue: any; }) => void; updateCustomRange: (event: React.ChangeEvent) => void; getDisabledDays: () => Matcher[] | Matcher | undefined; getModifiers: () => Record | undefined; getCustomRangeOptions: () => ICustomRangeOptions[]; render(): React.ReactElement; } export {};