/** * Item describing a single timezone from the curated list. * * @internal */ export interface ITimezoneItem { /** * IANA timezone ID, e.g. "Europe/Prague". */ id: string; /** * Human readable name without the offset, e.g. "Prague" or "Pacific Time (US & Canada)". */ name: string; /** * GMT offset label, e.g. "GMT+01:00". */ offsetLabel: string; /** * Offset from UTC in minutes as observed in January (northern hemisphere winter). */ januaryOffset: number; /** * Offset from UTC in minutes as observed in June (northern hemisphere summer). */ juneOffset: number; } /** * Returns the full display label of a timezone, combining the offset and the name, * e.g. "GMT+01:00 Prague". Use only where the merged label is actually displayed; * consumers that need the name or the offset alone should read the fields directly. * * @internal */ export declare function getTimezoneTitle(item: Pick): string; /** * Returns the curated list of timezones. * * @internal */ export declare function getTimezones(): ITimezoneItem[]; /** * Returns the timezone from the curated list matching the provided IANA timezone ID, * or undefined when the ID is not in the curated list. * * @remarks * Legacy aliases of curated timezones (e.g. "Europe/Kiev" stored before the rename) resolve * to the canonical item, so the returned `id` may differ from the provided one. * * @internal */ export declare function getTimezoneById(id: string | undefined): ITimezoneItem | undefined; /** * Returns the curated timezone that matches the offsets of the browser/runtime timezone. * Falls back to UTC when no curated timezone matches. * * @internal */ export declare function getUserTimezone(): ITimezoneItem; /** * Returns the display label used by the timezone picker: the friendly name, e.g. "Prague". * The name falls back to the raw IANA ID for zones outside the curated list. * * The friendly name (not the IANA ID) is shown so the picker reads the same as the Home UI * timezone settings — the id-to-name mapping is not visible to users anywhere. * * @internal */ export declare function getTimezoneDisplayLabel(id: string): string; /** * Tests whether the timezone matches the search string. Matches on the picker display label * (the friendly name), the friendly title (offset + name) and the IANA ID, with underscores * treated as spaces so that e.g. "Los Angeles" finds "America/Los_Angeles". * * @internal */ export declare function timezoneMatchesSearch(timezone: ITimezoneItem, search: string): boolean; /** * Returns display labels for the provided IANA timezone ID. * * @remarks * The backend accepts any ICU-known timezone, so the ID may not be present in the curated list. * In that case the raw ID is used as the name and the offset label is computed via Intl * (empty when the runtime does not know the timezone either). * * @internal */ export declare function getTimezoneLabels(id: string): Pick; /** * Returns the current time in the provided timezone. * * @internal */ export declare function getCurrentTimeByTimezoneId(id: string): string; //# sourceMappingURL=timezones.d.ts.map