import React from 'react';
import { WeekdayNumber } from '../common/LocaleUtils/LocaleUtils';
import { WixStyleReactEnvironmentContext } from '../WixStyleReactEnvironmentProvider/context';
import { CalendarProps, CalendarState } from './Calendar.types';
type DefaultedProps = Omit & Required>;
type DefaultPropKeys = 'className' | 'filterDate' | 'dateIndication' | 'shouldCloseOnSelect' | 'onClose' | 'autoFocus' | 'excludePastDates' | 'selectionMode' | 'showMonthDropdown' | 'showYearDropdown' | 'numOfMonths' | 'size';
type DefaultedCalendarProps = DefaultedProps;
type CalendarValueRange = {
from?: string | Date;
to?: string | Date;
};
export declare class Calendar extends React.PureComponent {
static displayName: string;
static defaultProps: {
className: string;
filterDate: () => boolean;
dateIndication: () => null;
shouldCloseOnSelect: boolean;
onClose: () => void;
autoFocus: boolean;
excludePastDates: boolean;
selectionMode: string;
showMonthDropdown: boolean;
showYearDropdown: boolean;
numOfMonths: number;
size: string;
};
context: React.ContextType;
constructor(props: DefaultedCalendarProps);
UNSAFE_componentWillReceiveProps(nextProps: DefaultedCalendarProps): void;
static areValuesEqual(value1?: unknown, value2?: unknown): boolean;
/** Return a value in which all string-dates are parsed into Date objects */
static parseValue: (value: any) => any;
static nextDay: (date: Date | number | string) => Date;
static prevDay: (date: Date | number | string) => Date;
static isSingleDay(value: unknown): value is Date;
static isRangeValue(value: unknown): value is CalendarValueRange;
static getUpdatedMonth: (nextPropsValue: unknown, numOfMonths: number, currentMonthDate?: unknown) => any;
_setMonth: (month: Date) => void;
_getLocaleUtilsFactory: (locale: string, firstDayOfWeek?: WeekdayNumber) => {
formatMonthTitle: (date: Date | number) => string | undefined;
formatMonthAndYear: (date: Date | number) => string | undefined;
formatMonthsRange: (firstDate: Date | number, secondDate: Date | number) => string;
formatWeekdayShort: (index: number) => string;
formatWeekdayLong: (index: WeekdayNumber) => string;
formatDay: (date: Date | number) => string;
getMonths: () => (string | undefined)[];
getFirstDayOfWeek: () => WeekdayNumber;
formatYear: (date: Date | number) => string;
};
_createCaptionElement: () => React.JSX.Element;
_getLocale(): string;
render(): React.JSX.Element;
}
export {};
//# sourceMappingURL=Calendar.d.ts.map