import { TimeLimits } from '../DateTimeInput/types'; import { CalendarConditionProps, CalendarConditions, DateCellConditions, DateCellProps, MonthViewProps, YearViewProps, MonthsNames, WeekDayNames } from './types'; export declare const isTimeLess: (firstDate?: Date | null | undefined, secondDate?: Date | null | undefined) => boolean; export declare const isTimeGreater: (firstDate?: Date | null | undefined, secondDate?: Date | null | undefined) => boolean; export declare const isDateLess: (firstDate?: Date | null | undefined, secondDate?: Date | null | undefined) => boolean; export declare const isDateGreater: (firstDate?: Date | null | undefined, secondDate?: Date | null | undefined) => boolean; export declare const getRoundDate: (date: Date) => Date; export declare const isDatesEqual: (firstDate: Date, secondDate: Date) => boolean; /** * Checks is date included in date ranges * @param {Date} date - Date * @param {(Date | [Date, Date])[] | undefined} ranges - List of dates or date ranges * * @returns {boolean} Is date included in date ranges? */ export declare const checkIsDateInRanges: (date: Date, ranges?: (Date | [Date, Date])[] | undefined) => boolean; export declare const getFirstDecadeYear: (viewDate: Date) => number; /** * Get two-dimensional array of months or years * @param {MonthViewProps | YearViewProps | undefined} props - Props month or year view * * @returns {Array.} Months or years array */ export declare const getMonthYearArray: (props?: MonthViewProps | YearViewProps | undefined) => number[][]; export declare const getMonthDays: (month: number, year: number) => number[][]; export declare const getMonthName: (month: number, monthNames?: MonthsNames | undefined) => string; export declare const getShortMonthName: (month: number, shortMonthNames?: MonthsNames | undefined) => string; export declare const getShortWeekDayName: (number: number, shortWeekDayNames?: WeekDayNames | undefined) => string; export declare const getWeekDayName: (number: number, weekDayNames?: WeekDayNames | undefined) => string; export declare const getCalendarTitle: (viewDate: Date, viewType: "dates" | "months" | "years", monthNames?: MonthsNames | undefined) => string; export declare const getButtonActionType: (viewType: "dates" | "months" | "years", buttonType: "next" | "prev") => "dates-next-button" | "dates-prev-button" | "dates-select" | "month-next-button" | "month-prev-button" | "month-select" | "title-click" | "today-button-click" | "years-next-button" | "years-prev-button" | "years-select"; export declare const getCalendarConditions: (props: CalendarConditionProps) => CalendarConditions; export declare const getDateCellConditions: (props: DateCellProps) => DateCellConditions; export declare const getDateCellClassNames: (props: DateCellProps, renderedDate: Date, isDateMarked: boolean) => string | undefined; export declare const getYearCellClassNames: (props: YearViewProps, yearCell: number) => string | undefined; export declare const getCalendarFormat: (format: string) => string; export declare const applyTimeLimits: (inputDate: Date, timeLimits: TimeLimits) => Date; /** * * В случе, если date меньше min, возвращает min * В случае, если date больше max, возвращает max * Во всех остальных случаях возвращает date */ export declare const getNormalizedValue: (date: Date | null, min: Date | undefined, max: Date | undefined, type: "date-only" | "date-time" | "time-only" | undefined, timeMinProp: TimeLimits | undefined, timeMaxProp: TimeLimits | undefined) => Date | null;