/** A zone this runtime knows, or `fallback` when the caller names one it doesn't. */ export declare function resolveTimeZone(timeZone: string | undefined, fallback: string): string; export interface WallClock { year: number; month: number; day: number; hour: number; minute: number; second: number; } /** What a clock in `timeZone` reads at that instant. */ export declare function getWallClock(at: Date, timeZone: string): WallClock; /** * Local 'YYYY-MM-DD' + hour (0-23) right now. Both the "is it time yet" check and the per-day * dedupe key of a daily report read from this, so a send lands on the local day. */ export declare function getLocalDayHour(timeZone: string): { date: string; hour: number; }; /** Local 'YYYY-MM-DD' of an instant, which is the day something that happened at it belongs to. */ export declare function formatLocalDate(at: Date, timeZone: string): string; /** How far `timeZone` runs ahead of UTC at that instant, in ms. */ export declare function getZoneOffsetMs(at: Date, timeZone: string): number; /** The instant a local wall clock reads `date` at `time` ('HH:MM'). Offset is read twice so a DST-shifted day lands right. */ export declare function localInstant(date: string, time: string, timeZone: string): Date; export declare function localDayStart(date: string, timeZone: string): Date; /** * UTC ISO bounds of a local day, as `[start, end)`. A window built from the date string alone * would carry the host's UTC midnight and slide the day by the local offset. */ export declare function localDayRange(date: string, timeZone: string): { start: string; end: string; }; //# sourceMappingURL=timezone.d.ts.map