import { WeekDay } from '@angular/common'; export declare const sortWeekDays: (firstDayOfWeek: WeekDay) => WeekDay[]; /** * Safely converts a value to a Date object, handling timezone issues. * If the value is already a Date, returns it as-is. * If it's a string in ISO format (YYYY-MM-DD), parses it in local timezone. * Otherwise, uses standard Date constructor. */ export declare const toLocalDate: (value: Date | string) => Date; /** Sets labels and sort weekday arrays based off of first day of week. */ export declare const getSortedWeekDays: (firstDayOfWeek: WeekDay, startDate?: Date) => Date[]; /** Generate a matrix of dates used to visualize a calendar month. */ export declare const generateDateMatrix: (month: number, year: number, minWeeks: number | undefined, firstDayOfWeek: WeekDay) => Date[][]; /** Returns the first date used in the calendars first button. */ export declare const firstCalendarDate: (date: Date, firstDayOfWeek: WeekDay) => Date; export declare const getDayOffset: (from: WeekDay, to: WeekDay, firstDayOfWeek: WeekDay, direction?: "forward" | "back") => number; /** Returns an array of Dates for each of month. */ export declare const getMonthArray: () => Date[]; /** Returns an array of Dates for the current year and the next. */ export declare const getYearArray: () => Date[]; /** Returns true if the two dates have the same year, month and date values. */ export declare const match: (a: Date | undefined, b: Date | undefined) => boolean; export declare const afterClosingHours: (closingHours: Date | undefined) => boolean; /** * Checks if a date is before control date, regardless of time. * * @param date - comparison date * @param controlDate - date to compare against * @returns - true if the comparison date is before the control date */ export declare const isBefore: (date: Date, controlDate: Date) => boolean; /** * Checks if a date is after control date, regardless of time. * * @param date - comparison date * @param controlDate - date to compare against * @returns - true if the comparison date is before the control date */ export declare const isAfter: (date: Date, controlDate: Date) => boolean; /** * Checks if a value can be used to initiate a new Date object. * * @param value any value * @returns - true if value can be coersed to a Date. */ export declare const isValid: (value: any) => boolean;