/** * Formats a date to a string according to the format * @param {Date} date - Date to format * @returns {string} Formatted date * @param {Object} options - Additional options * @param {string} options.dateFormat - Date format (ex: 'YYYY-MM-DD', 'DD-MM-YYYY', etc.) */ export declare function formatDate(date: Date, options: { /** Date format (ex: 'YYYY-MM-DD', 'DD-MM-YYYY', etc.) */ dateFormat: string; }): string; /** * Checks if two dates are identical * @param {Date | null} date - First date * @param {Date | null} compareDate - Second date * @param {Object} options - Additional options * @param {boolean} options.isUTCMode - Whether the dates are in UTC mode * @returns {boolean} true if the dates are identical */ export declare function isSameDate(date: Date | null, compareDate: Date | null, options: { /** Whether the dates are in UTC mode */ isUTCMode: boolean; }): boolean; /** * Checks if a date is identical or before another date * @param {Date} date - Date to check * @param {Date} compareDate - Reference date * @param {Object} options - Additional options * @param {boolean} options.isUTCMode - Whether the dates are in UTC mode * @returns {boolean} true if `date` <= `compareDate` */ export declare function isSameOrBefore(date: Date, compareDate: Date, options: { /** Whether the dates are in UTC mode */ isUTCMode: boolean; }): boolean; /** * Checks if a date is identical or after another date * @param {Date} date - Date to check * @param {Date} compareDate - Reference date * @param {Object} options - Additional options * @param {boolean} options.isUTCMode - Whether the dates are in UTC mode * @returns {boolean} true if `date` >= `compareDate` */ export declare function isSameOrAfter(date: Date, compareDate: Date, options: { /** Whether the dates are in UTC mode */ isUTCMode: boolean; }): boolean; /** * Calculates the ISO week number * @param {Date} date - Date to calculate * @returns {number} Week number */ export declare function getWeekNumber(date: Date): number; /** * Convert a date string/Date to a Date without timezone offset * @param {string | Date} dateInput - Date under string or Date object form * @param {string} dateFormat - Date format (ex: 'YYYY-MM-DD', 'DD-MM-YYYY', etc.) * @returns {Date} Date in Date form without timezone offset */ export declare function parseDate(dateInput: string | Date, dateFormat: string): Date | null; /** * Checks if a date is disabled. * @param {Date} date - Date to check * @param {string} min - Minimum date * @param {string} max - Maximum date * @param {Date[]} parsedDisabledDates - Parsed disabled dates * @param {string} dateFormat - Date format * @param {boolean} isUTCMode - Whether the dates are in UTC mode * @returns {boolean} true if the date is disabled */ export declare function isDateDisabledUtil(date: Date, min: string, max: string, parsedDisabledDates: Date[], dateFormat: string, isUTCMode: boolean): boolean; /** * Checks if a date is within the hover range. * @param {Date} date - The date to check. * @param {Date} startDate - The start of the range. * @param {Date | null} hoverDate - The hovered date. * @returns {boolean} True if the date is in the hover range. */ export declare const isInHoverRange: (date: Date, startDate: Date, hoverDate: Date | null) => boolean; /** * Checks if the hover range is valid (does not contain disabled dates). * @param {Date} startDate - The start of the range. * @param {Date | null} hoverDate - The hovered date. * @param {string} min - The minimum allowed date. * @param {string} max - The maximum allowed date. * @param {Date[]} parsedDisabledDates - An array of disabled dates. * @param {string} dateFormat - The date format for parsing. * @param {boolean} isUTCMode - Flag for UTC mode. * @returns {boolean} True if the hover range is valid. */ export declare const isHoverRangeValid: (startDate: Date, hoverDate: Date | null, min: string, max: string, parsedDisabledDates: Date[], dateFormat: string, isUTCMode: boolean) => boolean;