export type Weekday = 0 | 1 | 2 | 3 | 4 | 5 | 6; export interface GridCell { date: string; inMonth: boolean; } export declare const isLeapYear: (year: number) => boolean; export declare function daysInMonth(year: number, month: number): number; export declare function formatDate(year: number, month: number, day: number): string; export declare function parseDate(value: unknown): string | null; export declare function parseMonth(value: unknown): string | null; export declare function dateParts(date: string): [number, number, number]; export declare function monthParts(month: string): [number, number]; export declare function toDayNumber(date: string): number; export declare function fromDayNumber(dayNumber: number): string; export declare const weekdayOf: (date: string) => Weekday; export declare const addDays: (date: string, days: number) => string; export declare const compareDates: (a: string, b: string) => number; export declare const monthOf: (date: string) => string; export declare function addMonthsToMonth(month: string, count: number): string; export declare function addMonths(date: string, count: number): string; export declare const addYears: (date: string, count: number) => string; export declare const firstOfMonth: (month: string) => string; export declare function lastOfMonth(month: string): string; export declare const normaliseWeekday: (value: unknown, fallback: Weekday) => Weekday; export declare function startOfWeek(date: string, weekStartsOn: Weekday): string; export declare const endOfWeek: (date: string, weekStartsOn: Weekday) => string; export declare function monthGrid(month: string, weekStartsOn: Weekday): GridCell[]; export declare function clampDate(date: string, min?: string | null, max?: string | null): string; export declare function clampMonth(month: string, min?: string | null, max?: string | null): string; export declare const localDate: (now?: Date) => string;