import { Week } from '../DateRangePicker/DateRangePicker'; import { ReferenceMonth } from '../MonthPicker'; /** * Calculate the first day of a month. * * @param target Target month. * @returns A new date which is the first day of the target month. */ export declare const getFirstDayOfMonth: (target: Date) => Date; /** * Calculate the last day of a month. * @param target Target month. * @returns A new date which is the last day of the target month. */ export declare const getLastDayOfMonth: (target: Date) => Date; /** * Creates an ordered array of the week containing the target date * * @param target Target date of the week * @returns An array starting by sunday and finished by saturday which includes the target date */ export declare const createWeekArray: (target: Date) => Date[]; /** * Creates an array of weeks for the target month. Each week is itself an array of dates containing the week's dates. * * @param target The target month to create. * @returns A new array of array of dates containing all month dates. */ export declare const createMonthMatrix: (target: Date) => Date[][]; /** * Check if two dates belongs to the same day. * * @param d1 First date * @param d2 Second date * @returns Whether the dates are the same day, month and year */ export declare const isSameDay: (d1: Date, d2: Date) => boolean; /** * Check if the day belongs to the week * * @param day A day to check * @param week A week * @returns Whether the day belongs to the week */ export declare const isBelongingAWeek: (day: Date, week: Week) => boolean; /** * Check if the parameter is a valid date. */ export declare const isValidDate: (possibleDate: any) => boolean; /** * Check if the parameter is a valid ReferenceMonth. * @param possibleReferenceMonth - The ReferenceMonth object to be validated. * @returns True if the ReferenceMonth is valid, false otherwise. */ export declare const isValidReferenceMonth: (possibleReferenceMonth: ReferenceMonth) => boolean;