import { startOfMonth, isSameDay, isSameMonth, format, isToday, startOfDay } from 'date-fns'; export type WeekStartsOn = 0 | 1 | 2 | 3 | 4 | 5 | 6; export interface CalendarDay { date: Date; dayOfMonth: number; isCurrentMonth: boolean; isToday: boolean; isSelected: boolean; isInRange: boolean; isRangeStart: boolean; isRangeEnd: boolean; isDisabled: boolean; } export interface CalendarMonth { weeks: CalendarDay[][]; month: Date; monthLabel: string; yearLabel: string; } /** * Get the days of the week labels based on week start */ export declare function getWeekDays(weekStartsOn?: WeekStartsOn): string[]; /** * Whether a date is disabled by the min/max bounds or the explicit disabled list. * Single source of truth shared by the grid generator and keyboard handlers. */ export declare function isDateDisabled(date: Date, options?: { minDate?: Date | null; maxDate?: Date | null; disabledDates?: Date[]; }): boolean; /** * Get all days to display in a calendar month grid (6 weeks) */ export declare function getCalendarDays(month: Date, options?: { weekStartsOn?: WeekStartsOn; selectedDate?: Date | null; rangeStart?: Date | null; rangeEnd?: Date | null; minDate?: Date | null; maxDate?: Date | null; disabledDates?: Date[]; }): CalendarDay[][]; /** * Get the previous month */ export declare function getPreviousMonth(month: Date): Date; /** * Get the next month */ export declare function getNextMonth(month: Date): Date; /** * Format a date for display */ export declare function formatDate(date: Date, formatStr?: string): string; /** * Get month label (e.g., "January") */ export declare function getMonthLabel(date: Date): string; /** * Get year label (e.g., "2024") */ export declare function getYearLabel(date: Date): string; /** * Navigate to previous/next day */ export declare function navigateDay(date: Date, direction: 'prev' | 'next'): Date; /** * Navigate to previous/next week */ export declare function navigateWeek(date: Date, direction: 'prev' | 'next'): Date; /** * Get the day of week index */ export declare function getDayOfWeek(date: Date): number; /** * Parse a user-supplied date. Date-only ISO strings (`YYYY-MM-DD`) are calendar * dates, so they become local midnight; `new Date('2024-01-15')` would be UTC * midnight and display a day early west of UTC. Anything invalid (including an * invalid `Date` instance) yields `null`. */ export declare function parseDateInput(value?: Date | string | null): Date | null; /** Serialize the local calendar day of `date` as `YYYY-MM-DD`. */ export declare function toISODate(date: Date): string; export { isSameDay, isSameMonth, isToday, startOfMonth, startOfDay, format, };