export function addDays(date: any, days: any): Date; export function setMonth(date: any, month: any): Date; export function setYear(date: any, year: any): Date; /** * Compare if two dates are in the same month of the same year. * @param {Date} a The first date to compare * @param {Date} b The second date to compare * @returns {boolean} The result */ export function isEqualMonth(a: Date, b: Date): boolean; /** * Compare if two dates are equal in terms of day, month, and year * @param {Date} a The first date to compare * @param {Date} b The second date to compare * @returns {boolean} The result */ export function isEqual(a: Date, b: Date): boolean; export function startOfWeek(date: any, firstDayOfWeek?: number): Date; export function endOfWeek(date: any, firstDayOfWeek?: number): Date; export function startOfMonth(date: any): Date; export function endOfMonth(date: any): Date; /** * given a date, return an array of dates from a calendar perspective * @param {Date} date The date to start the calendar from * @param {number} firstDayOfWeek The number of the first day of the week * @returns {Date[]} */ export function getViewOfMonth(date: Date, firstDayOfWeek?: number): Date[]; /** * Ensures date is within range, returns min or max if out of bounds * @param {Date} date * @param {Date} min * @param {Date} max * @returns {Date} */ export function clamp(date: Date, min: Date, max: Date): Date; /** * Check if date is within a min and max * @param {Date} date * @param {Date} min * @param {Date} max * @returns {boolean} */ export function inRange(date: Date, min: Date, max: Date): boolean; /** * Check if date is Saturday or Sunday * @param {Date} date * @returns {boolean} */ export function isWeekend(date: Date): boolean; export namespace DaysOfWeek { let Sunday: number; let Monday: number; let Tuesday: number; let Wednesday: number; let Thursday: number; let Friday: number; let Saturday: number; }