/** * The three kinds of date value an app receives as text, read and written in one place. * The names come from Temporal: * * - **`instant`** — a date-time with an offset or `Z` (`2026-09-06T22:22:34Z`, `…+09:00`). It names one * moment everywhere; shown here, it is this browser's wall clock at that moment. * - **`plainDateTime`** — a date-time without an offset (`2026-09-06T22:22`, `2026-09-06 22:22:34`). It is a * wall clock already and is read as local time, never shifted. * - **`plainDate`** — a calendar day (`2026-09-06`). It is local midnight of that day. `new Date('2026-09-06')` * is UTC midnight instead, which is the previous day west of Greenwich. * * A `Date` is an instant. Text that is none of the three, or names a day that does not exist * (`2026-02-30`), reads as `null` — never a rolled-over or guessed date. */ export type DateValueKind = 'instant' | 'plainDateTime' | 'plainDate'; /** A date value with the kind its text named. `date` is the moment it means here. */ export interface DateValue { kind: DateValueKind; date: Date; } /** * Reads a date value and tells which kind it is. `null` for text that is not one of the three * kinds, for a day or time that does not exist, and for an invalid `Date`. */ export declare function readDateValue(value: Date | string): DateValue | null; /** `±HH:mm` for this browser's time zone at `date` — recomputed per date, so a DST change is honoured * (`getTimezoneOffset()`'s sign is the inverse of the ISO-8601 sign). */ export declare function localOffset(date: Date): string; /** The local calendar day of `date` — `YYYY-MM-DD`. */ export declare function writePlainDate(date: Date): string; /** The local wall clock of `date` without an offset — `YYYY-MM-DDTHH:mm:ss`, or `YYYY-MM-DDTHH:mm` * when `seconds` is `false`. */ export declare function writePlainDateTime(date: Date, seconds?: boolean): string; /** The moment `date` names, written as this browser's wall clock with its offset — * `YYYY-MM-DDTHH:mm:ss±HH:mm`. `2026-09-06T22:22:34Z` read in Seoul writes `2026-09-07T07:22:34+09:00`. */ export declare function writeInstant(date: Date): string;