import * as React from 'react'; import 'moment/locale/ru'; import { EMonthViewType } from './Month/AdditionalTable'; import { Moment } from 'moment'; export interface IDatepickerRangeValue { from: Moment; till: Moment; } export interface IHighlightedDays { from: Moment | null; till: Moment | null; } export declare type TDatepickerStateValue = IHighlightedDays | Moment | null; export interface ICommonDayProps { onClickDay: (date: Moment) => void; onMouseOverDay: (date: Moment) => void; value: TDatepickerStateValue; rangeHighlightedDays: IHighlightedDays; dateEnabled?: (date: Moment) => boolean; dateHighlighted?: (date: Moment) => boolean; } export declare type TDatepickerValue = IDatepickerRangeValue | Moment | null; export declare enum DATEPICKER_ORIENTATION { HORIZONTAL = "horizontal", VERTICAL = "vertical" } declare enum SLIDE_DIRECTION { DEFAULT = "", PREV = "prev", NEXT = "next" } interface IVisibleMonths { firstVisibleMonth: Moment; lastVisibleMonth: Moment; } interface IMonthTypeState { date: Moment; type: EMonthViewType; } declare type TMonthTypeState = IMonthTypeState | null; interface IState { firstVisibleMonth: Moment; lastVisibleMonth: Moment; slideDirection: SLIDE_DIRECTION; rangeHighlightedDays: IHighlightedDays; value: TDatepickerStateValue; monthViewState: TMonthTypeState; } export interface ICalendarProps { weekDaysNames?: string[]; orientation?: DATEPICKER_ORIENTATION; visibleMonthsCount?: number; hasInput?: boolean; footerElements?: JSX.Element | JSX.Element[]; isRangeSelection?: boolean; dateEnabled?: (date: Moment) => boolean; dateHighlighted?: (date: Moment) => boolean; onChange: (value: TDatepickerValue) => void; visibleMonth?: Moment; value?: TDatepickerValue; className?: string; animationSpeed?: number; animationSpeedInsideMonth?: number; disabled?: boolean; fullWidth?: boolean; } export declare class Calendar extends React.Component { static defaultProps: ICalendarProps; constructor(props: ICalendarProps, context: any); componentWillReceiveProps(nextProps: ICalendarProps): void; render(): JSX.Element; private getMonths; private getPrevSliderMonth; private getNextSliderMonth; private onClickPrev; private onClickNext; private setDefaultSlideDirection; private onClickDay; private onMouseOverDay; private getLastDateBeforeDisabled; private onChange; private onChangeMonthView; } export declare function getDefaultWeekDayNames(): string[]; export declare function getVisibleMonths(value: TDatepickerValue | undefined, visibleMonthsCount: number): IVisibleMonths; export declare function isFromValueExist(value: TDatepickerValue | TDatepickerStateValue): boolean; export declare function isTillValueExist(value: TDatepickerValue | TDatepickerStateValue): boolean; export {};