/** * Local-date range arithmetic and ISO-day-string conversion. * * `toIso` / `isoToDate` are the canonical, **strict** `YYYY-MM-DD` ↔ `Date` * pair for this layer: they round-trip a local calendar day with no UTC drift * (`new Date('2026-06-16')` would parse as UTC midnight — these never do that). * For tolerant, form-value coercion of arbitrary `DateInput` (strings, epoch * numbers, null) use `coerceToDate` / `toDateInputValue` from `$lib/utils/date` * instead. */ /** * Add (or subtract, with a negative `days`) whole days to a date, preserving * the time-of-day. DST-safe at day granularity: `setDate` shifts the calendar * day and the engine normalises any non-existent wall-clock instant. */ export declare function addDays(date: Date, days: number): Date; /** * Get local midnight of the first day of the week containing `date`. * * @param weekStartsOn - Day the week starts on (0=Sun, 1=Mon, ..., 6=Sat) */ export declare function startOfWeek(date: Date, weekStartsOn?: number): Date; /** * Get local midnight of the last day of the week containing `date`. * * @param weekStartsOn - Day the week starts on (0=Sun, 1=Mon, ..., 6=Sat) */ export declare function endOfWeek(date: Date, weekStartsOn?: number): Date; /** * List every local calendar day from `start` to `end`, inclusive. * Each entry is local midnight. Returns an empty array if `start` is after * `end` (an inverted range yields no days rather than throwing). */ export declare function eachDayOfRange(start: Date, end: Date): Date[]; /** * Format a date as a `YYYY-MM-DD` string using its **local** calendar day. * The canonical key for date-indexed maps and the strict counterpart to * `isoToDate`. Never converts to UTC, so it is off-by-one-safe across timezones. */ export declare function toIso(date: Date): string; /** * Format a date as a `YYYY-MM-DDTHH:mm` string using its **local** wall clock — * the machine-readable form of a `