import { DateTimeStyle } from '../types.js'; export type { DateValue } from '@internationalized/date'; export { CalendarDate, DateFormatter, parseAbsolute, parseDate, parseDateTime, parseZonedDateTime, startOfWeek, Time, today, toTimeZone, toZoned, ZonedDateTime, } from '@internationalized/date'; export declare function addDays(dateISO: string, days: number): string; export declare function daysBetween(startISO: string, dateISO: string): number; /** * ISO 8601 week number (Monday-start weeks, week 1 contains the year's first * Thursday). Hand-rolled because the library exposes no ISO week numbers; the * math runs at UTC noon so a DST transition in the reader's local timezone can * never shift a day index. */ export declare function isoWeek(dateISO: string): number; /** Today's calendar date in `timeZone`, as `Y-m-d`. */ export declare function todayISO(timeZone: string): string; export declare function startOfMonthISO(dateISO: string): string; /** Adds calendar months, clamping the day to the target month's length. */ export declare function addMonths(dateISO: string, months: number): string; /** First day of the week containing `dateISO`, honoring the locale's week start. */ export declare function startOfWeekISO(dateISO: string, locale: string): string; /** Number of week rows the month containing `dateISO` spans in the locale's grid (4–6). */ export declare function weeksInMonth(dateISO: string, locale: string): number; /** Shifts a floating `Y-m-dTH:i:s` datetime by whole minutes, rolling over day bounds. */ export declare function addWallMinutes(dateTimeISO: string, minutes: number): string; /** Minutes since midnight of a floating `Y-m-dTH:i:s` datetime's wall-clock time. */ export declare function wallMinutesOfDay(dateTimeISO: string): number; /** Locale-formatted wall-clock time of a floating `Y-m-dTH:i:s` datetime, e.g. "09:30" / "9:30 AM". */ export declare function formatWallTime(dateTimeISO: string, locale?: string): string; export type FormatOptions = { locale?: string; timeZone?: string; }; export type DateConfig = { dateStyle: DateTimeStyle | null; timeStyle: DateTimeStyle | null; month?: string | null; year?: string | null; }; export declare function formatDateValue(value: unknown, date: DateConfig, options?: FormatOptions): string; export declare function toDate(value: unknown): Date | null; export declare function preciseDateTime(value: unknown, options?: FormatOptions): string;