export type Wall = { year: number; month: number; day: number; hours: number; minutes: number; seconds: number; ms: number; }; /** * The zone's real offset at an instant, in ms, east-positive. * Independent mechanism: reads Intl's own printed offset string rather than * reconstructing it from formatted date parts. */ export declare function offsetAt(epochMs: number, zone: string): number; /** * Derived from the offset by pure UTC arithmetic — NOT by formatting the date * into y/m/d/h/m/s parts. Independent of the implementation's approach. */ export declare function wallAt(epochMs: number, zone: string): Wall; export declare function wallEquals(a: Wall, b: Wall): boolean; /** Nile bracketed form -> its parts. Independent regex. */ export declare function parseBracketed(raw: string): { wall: Wall; offsetMs: number; zone: string; } | null; export declare const fmtWall: (w: Wall) => string; export type Payload = { value: string | null; localTimezoneValue: Date | null; unixEpoch: number | null; timezone: string; }; export type Violation = { code: string; detail: string; }; export declare function makePicker(attrs: { value?: string | null; timezone?: string; }): Promise; export declare function settle(el: any): Promise; /** A preset value may adopt a zone, scheduling a second update. Settle twice. */ export declare function settle2(el: any): Promise; export declare let LAST_EMIT_COUNT: number; export declare const applyButton: (cal: any) => HTMLElement; /** Click the real Apply button and capture the single committed payload. */ export declare function apply(el: any): Promise; /** * Every assertion is made against the ORACLE, never against component helpers. * Returns [] when the payload is internally consistent. */ export declare function checkPayload(p: Payload | null, intendedZone?: string): Violation[]; /** F. emit -> reload -> Apply preserves the epoch exactly. */ export declare function roundTrip(p: Payload): Promise<{ second: Payload | null; violations: Violation[]; }>; /** Wall clock as a "UTC-pretending" epoch — the anchor both sides agree on. */ export declare function wallToUTCms(w: Wall): number; /** * EVERY instant the zone displays as exactly `w`. * [] -> the wall clock does not exist (spring-forward gap) * [t] -> unambiguous * [t1, t2] -> ambiguous (fall-back overlap), ascending * * Method: the true offset is within ±26h of any guess, so probing the offsets * reported at guess-26h .. guess+26h yields every candidate; each is then * CONFIRMED by reading it back. No reliance on a correction-pass converging. */ export declare function instantsFor(w: Wall, zone: string): number[]; /** Every offset change in [from, to), found by coarse scan + binary search. */ export declare function findTransitions(zone: string, from: number, to: number): number[]; /** Zones the runtime itself offers — the same source the component's list uses. */ export declare function runtimeZones(): string[]; /** Inverse of wallToUTCms — read a "UTC-pretending" epoch back as wall digits. */ export declare function wallFromUTCms(ms: number): Wall; /** Classify a transition and give a wall clock strictly inside the gap/overlap. */ export declare function transitionShape(t: number, zone: string): { kind: 'forward' | 'backward'; deltaMs: number; insideWall: Wall; offBefore: number; offAfter: number; }; /** Seed a wall clock directly into the panel, then Apply. */ export declare function selectAndApply(el: any, w: Wall, zone: string): Promise; export declare const HOST_TZ: string; /** Collects failures so a sweep reports ALL of them, not just the first. */ export declare class Failures { rows: string[]; add(ctx: string, vs: Violation[]): void; get count(): number; report(limit?: number): string; } export declare const YEAR_FROM: number; export declare const YEAR_TO: number; export type Tr = { zone: string; t: number; }; export declare function allTransitions(zones: string[]): Tr[];