/** * Clone a date object. * * @export * @param {Date} d The date to clone * @return {Date} The cloned date */ export declare function clone(d: any): Date; /** * Return `true` if the passed value is a valid JavaScript Date object. * * @export * @param {any} value * @returns {Boolean} */ export declare function isDate(value: any): boolean; /** * Return `d` as a new date with `n` months added. * * @export * @param {[type]} d * @param {[type]} n */ export declare function addMonths(d: any, n: any): Date; /** * Return `d` as a new date with `n` months added. * * @export * @param {[type]} d * @param {[type]} n */ export declare function setMonths(d: any, n: any): Date; /** * Return `d` as a new date with `n` months added. * * @export * @param {[type]} d * @param {[type]} n */ export declare function setYears(d: any, n: any): Date; /** * Return `d` as a new date with `n` months added. * * @export * @param {[type]} d * @param {[type]} n */ export declare function setDays(d: any, n: any): Date; /** * Return `true` if two dates are the same day, ignoring the time. * * @export * @param {Date} d1 * @param {Date} d2 * @return {Boolean} */ export declare function isSameDay(d1: any, d2: any): boolean; /** * Return `true` if currDay in rangeArr, ignoring the time. * * @export * @param {Date[]} arr * @param {Date} currDay * @return {Boolean} */ export declare function isRangeDay(rangeArr: any, currDay: any): boolean; export declare function isHoverRangeDay(rangeArr: any, compareDay: any, currDay: any): boolean; /** * Return `true` if two dates fall in the same month. * * @export * @param {Date} d1 * @param {Date} d2 * @return {Boolean} */ export declare function isSameMonth(d1: any, d2: any): boolean; /** * Returns `true` if the first day is before the second day. * * @export * @param {Date} d1 * @param {Date} d2 * @returns {Boolean} */ export declare function isDayBefore(d1: any, d2: any): boolean; /** * Returns `true` if the first day is after the second day. * * @export * @param {Date} d1 * @param {Date} d2 * @returns {Boolean} */ export declare function isDayAfter(d1: any, d2: any): boolean; /** * Return `true` if a day is in the past, e.g. yesterday or any day * before yesterday. * * @export * @param {Date} d * @return {Boolean} */ export declare function isPastDay(d: any): boolean; /** * Return `true` if a day is in the future, e.g. tomorrow or any day * after tomorrow. * * @export * @param {Date} d * @return {Boolean} */ export declare function isFutureDay(d: any): boolean; /** * Return `true` if day `d` is between days `d1` and `d2`, * without including them. * * @export * @param {Date} d * @param {Date} d1 * @param {Date} d2 * @return {Boolean} */ export declare function isDayBetween(d: any, d1: any, d2: any): boolean; /** * Add a day to a range and return a new range. A range is an object with * `from` and `to` days. * * @export * @param {Date} day * @param {Object} range * @return {Object} Returns a new range object */ export declare function addDayToRange(day: any, range?: { from: null; to: null; }): { from: null; to: null; }; /** * Return `true` if a day is included in a range of days. * * @export * @param {Date} day * @param {Object} range * @return {Boolean} */ export declare function isDayInRange(day: any, range: any): boolean; /** * Return the year's week number (as per ISO, i.e. with the week starting from monday) * for the given day. * * @export * @param {Date} day * @returns {Number} */ export declare function getWeekNumber(day: any): number; /** * Return the year's week number (as per ISO, i.e. with the week starting from monday) * for the given day. * * @export * @param {Date} d * @param {Number} firstDayOfWeek * @param {Boolean} fixedWeeks * @returns {Array} */ export declare function getWeekArray(d: any, firstDayOfWeek: any, fixedWeeks: any): any; /** * Return the format String for given Date. * * @export * @param {Date} date * @param {String} format * @param {String} locale * @returns {String} */ export declare function formatDate(date: any, format: any): string; /** * Return the Date for given String. * * @export * @param {String} str * @param {String} format * @param {String} locale * @returns {Date} */ export declare function parseDate(str: any, format: any): any; /** * Return the Date for given String or Date. * * @export * @param {String|Date} d * @param {String} format * @returns {Date} */ export declare function parseDateByStrOrDate(d: any, format?: string): Date | undefined; /** * subtract for given Date over unit . * * @export * @param {Date} date * @param {Number} amount * @param {String} unit * @returns {Date} */ export declare function subtract(date: any, amount: any, unit: any): Date; /** * add for given Date over unit . * * @export * @param {Date} date * @param {Number} amount * @param {String} unit * @returns {Date} */ export declare function add(date: any, amount: any, unit: any): Date; /** * date modify enum type. * * @export * @returns {Object} */ export declare const DATEMODIFYTYPE: { DAY: number; MONTH: number; YEAR: number; NOW: number; EXIT: number; INPUT: number; CONFIRM: number; HOVER: number; MOVEOUT: number; TIMEPICK: number; }; declare const _default: { addDayToRange: typeof addDayToRange; addMonths: typeof addMonths; setMonths: typeof setMonths; setYears: typeof setYears; clone: typeof clone; getWeekNumber: typeof getWeekNumber; isDate: typeof isDate; isDayAfter: typeof isDayAfter; isDayBefore: typeof isDayBefore; isDayBetween: typeof isDayBetween; isDayInRange: typeof isDayInRange; isFutureDay: typeof isFutureDay; isPastDay: typeof isPastDay; isSameDay: typeof isSameDay; isRangeDay: typeof isRangeDay; isHoverRangeDay: typeof isHoverRangeDay; isSameMonth: typeof isSameMonth; getWeekArray: typeof getWeekArray; setDays: typeof setDays; formatDate: typeof formatDate; parseDate: typeof parseDate; parseDateByStrOrDate: typeof parseDateByStrOrDate; DATEMODIFYTYPE: { DAY: number; MONTH: number; YEAR: number; NOW: number; EXIT: number; INPUT: number; CONFIRM: number; HOVER: number; MOVEOUT: number; TIMEPICK: number; }; subtract: typeof subtract; add: typeof add; }; export default _default;