import { DateTime } from "luxon"; import { CalendarComponentPayloadType } from "../types"; import { ICalendarLocale } from "../models"; declare class DateTimeHelper { static parse(date: CalendarComponentPayloadType | undefined): DateTime; static now(): DateTime; static isDate(value: any): boolean; /** * Calculates the first and last day of the week for a given date. * * @param {Date} date - The date for which to calculate the first and last day of the week. * @return {{firstDay: Date, lastDay: Date}} - An object containing the first and last day of the week. * * @example * const today = new Date(); * const weekRange = getFirstAndLastDayOfWeek(today); * console.log(weekRange.firstDay.toDateString()); // Output: Sun Oct 08 2023 * console.log(weekRange.lastDay.toDateString()); // Output: Sat Oct 14 2023 */ static getFirstAndLastDayOfWeek(date: Date): { firstDay: Date; lastDay: Date; }; static monthsShortTitle(locale?: string): string[]; static weekDays(locale?: ICalendarLocale): string[]; static weekday(date: DateTime): number; } export default DateTimeHelper;