import React from 'react';
import { WixStyleReactEnvironmentContext } from '../WixStyleReactEnvironmentProvider/context';
import { SupportedWixLocales } from '@wix/design-systems-locale-utils';
import { DatePickerProps } from './DatePicker.types';
type DefaultedProps = Omit & Required>;
type DefaultPropKeys = 'filterDate' | 'rtl' | 'width' | 'zIndex' | 'disabled' | 'inputDataHook' | 'popoverProps' | 'disableKeyboardType' | 'onChange' | 'dateStyle' | 'shouldCloseOnSelect' | 'showDrawerOnMobile';
type DefaultedDatePickerProps = DefaultedProps;
type DayModifiers = {
disabled?: boolean;
};
type DatePickerState = {
value: Date;
isOpen?: boolean;
inputValue?: Date | null;
autoFocus: boolean;
shouldOpenCalendar: boolean;
inputRef?: HTMLInputElement | null;
};
export declare class DatePicker extends React.PureComponent {
static displayName: string;
static defaultProps: {
filterDate: () => boolean;
rtl: boolean;
width: string;
zIndex: number;
disabled: boolean;
inputDataHook: "date-picker-input";
popoverProps: {
zIndex: number;
};
disableKeyboardType: boolean;
onChange: () => void;
dateStyle: string;
shouldCloseOnSelect: boolean;
showDrawerOnMobile: boolean;
};
static contextType: React.Context;
context: React.ContextType;
rootId: string;
constructor(props: DefaultedDatePickerProps);
componentDidUpdate: (prevProps: DefaultedDatePickerProps) => void;
_openCalendar: () => void;
openCalendar: () => void;
_closeCalendar: (shouldOpenCalendar?: boolean, shouldFocusInput?: boolean) => void;
closeCalendar: () => void;
_handleInputChange: ({ dateVal }: {
dateVal: Date;
}) => void;
_transformDate: (value: Date, oldValue: Date) => Date;
_saveNewValue: (value: Date, modifiers?: DayModifiers) => void;
_filterDate: (date: Date) => boolean;
_handleKeyDown: (event: React.KeyboardEvent, newDate: Date | null) => void;
_handleCalendarKeyDown: (event: React.KeyboardEvent) => void;
_handleChange: (value: Date, modifiers?: DayModifiers) => void;
_handleRef: (ref: HTMLInputElement | null) => void;
_handleInputFocus: (event: React.FocusEvent) => void;
_getLocale(): SupportedWixLocales;
_renderInput: () => React.JSX.Element;
_combineDataHooks: (start: string, end?: string) => string;
render(): React.JSX.Element;
}
export {};
//# sourceMappingURL=DatePicker.d.ts.map