import { addDays, addMonths, addSeconds, addYears, compareAsc, isSameDay, isSameMonth, isSameWeek, isSameYear, isValid, toDate, parseISO, format as DateFnsFormat } from 'date-fns'; import { ChangeMode, DatePickerProps } from './type'; declare function format(...args: Parameters): string; declare function getDaysOfMonth(rawDate: Date): Date[]; declare function isInvalid(date: any): boolean; declare function toDateWithFormat(dateStr: string, fmt: string): Date; declare function compareMonth(dateLeft: Date, dateRight: Date): number; declare function setTime(date: Date, old: Date): Date; declare function clearHMS(rawDate: Date | number): Date; interface GetIsDisabledHMSParams { scale: number; selectedDate: Date; mode: 'hour' | 'minute' | 'second'; min: Date; max: Date; disabled: (date: Date) => boolean; } declare function getIsDisabledHMS(params: GetIsDisabledHMSParams): [boolean, Date?]; declare function switchRangeDate(rangeDate: Date[]): void; declare function compareDateArray(arr1: Date[], arr2: Date[], type?: string): boolean; declare function getChangeState(type: DatePickerProps['type'], mode: ChangeMode): boolean[]; declare const _default: { clearHMS: typeof clearHMS; addDays: typeof addDays; addMonths: typeof addMonths; addYears: typeof addYears; addSeconds: typeof addSeconds; compareAsc: typeof compareAsc; compareMonth: typeof compareMonth; getDaysOfMonth: typeof getDaysOfMonth; format: typeof format; isInvalid: typeof isInvalid; isSameDay: typeof isSameDay; isSameMonth: typeof isSameMonth; isSameWeek: typeof isSameWeek; isSameYear: typeof isSameYear; isValid: typeof isValid; setTime: typeof setTime; toDate: typeof toDate; toDateWithFormat: typeof toDateWithFormat; TIME_FORMAT: string; getIsDisabledHMS: typeof getIsDisabledHMS; parseISO: typeof parseISO; switchRangeDate: typeof switchRangeDate; compareDateArray: typeof compareDateArray; STANDARD_DATE: string; getChangeState: typeof getChangeState; }; export default _default;