import type { AppTimeFormat } from "./time-formats.js"; import type { AppDateFormat } from "./date-formats.js"; /** Supported UI locales — sent as `x-locale` to backend. */ export type AppLocale = "vi" | "en" | "ja"; /** IANA timezone identifier — sent as `x-timezone` to backend. */ export type AppTimezone = string; /** How to resolve the initial timezone when nothing is stored. */ export type AppTimezoneDefault = "browser" | "system" | (AppTimezone & {}); export type { AppTimeFormat } from "./time-formats.js"; export type { AppDateFormat } from "./date-formats.js"; export { APP_TIME_FORMATS, APP_REQUEST_HEADER_TIME_FORMAT, getTimePattern, isAppTimeFormat, } from "./time-formats.js"; export { APP_DATE_FORMATS, APP_REQUEST_HEADER_DATE_FORMAT, getDatePattern, getDateTimePattern, isAppDateFormat, } from "./date-formats.js"; export declare const APP_LOCALES: readonly ["vi", "en", "ja"]; export declare const APP_REQUEST_HEADER_LOCALE: "x-locale"; export declare const APP_REQUEST_HEADER_TIMEZONE: "x-timezone"; export type AppRequestHeaders = { "x-locale": AppLocale; "x-timezone": AppTimezone; "x-time-format": AppTimeFormat; "x-date-format": AppDateFormat; };