/** * Country formats of the V2 pieces (ADR-SVC-0011, decision 3). Pure and closed: * the country comes from the page wire (`locale`, `timeZone`), never from the * browser or the user language. Outputs are assembled into fixed patterns so * they do not depend on the ICU version (grouping of four-digit numbers, * currency spacing). */ export declare const V2_FORMATS: readonly ["number", "decimal", "percent", "currency", "date", "text", "status"]; export type V2Format = (typeof V2_FORMATS)[number]; export declare const STATUS_TONES: readonly ["ok", "warn", "error", "info", "neutral"]; export type StatusTone = (typeof STATUS_TONES)[number]; /** Countries the product serves; the only locales the formatter accepts. */ export declare const V2_LOCALES: readonly ["es-CL", "es-CO", "es-MX"]; export type V2Locale = (typeof V2_LOCALES)[number]; export declare const DEFAULT_V2_LOCALE: V2Locale; export declare const DEFAULT_V2_TIME_ZONE = "America/Mexico_City"; export type V2FormatContext = { locale: string; timeZone: string; }; export declare const MISSING = "\u2014"; export declare const isV2Locale: (locale: unknown) => locale is "es-CL" | "es-CO" | "es-MX"; export declare const isValidTimeZone: (timeZone: unknown) => timeZone is string; export type ZonedDateTimeParts = { year: string; month: string; day: string; hour: string; minute: string; }; /** * The calendar parts of an instant in a time zone, two digits each (the year * four). Assembled from `formatToParts`, so callers build their own pattern. */ export declare const zonedDateTimeParts: (instant: Date, timeZone: string) => ZonedDateTimeParts; /** * Formats a value for display. Missing (`null`, `undefined`, `''`, `NaN`, * `±Infinity`) and unreadable values print `—`, never `0`. An unknown format * is `text`; an unsupported locale or zone falls back to the defaults. */ export declare const formatValue: (value: unknown, format: V2Format, ctx: V2FormatContext) => string; /** Text and tone of a status cell; an unknown tone is `neutral`. */ export declare const statusOf: (text: unknown, tone: unknown) => { text: string; tone: StatusTone; };