/** * Widget languages. * * English is the default. Arabic is the one additional language today, and it * flips the widget to right-to-left. Anything else — including an unknown * BCP-47 tag — resolves to English rather than to a half-translated surface. */ export declare const WIDGET_LANGUAGES: readonly ["en", "ar"]; export type WidgetLanguage = (typeof WIDGET_LANGUAGES)[number]; export declare const DEFAULT_WIDGET_LANGUAGE: WidgetLanguage; export type TextDirection = 'ltr' | 'rtl'; export declare const isWidgetLanguage: (value: unknown) => value is "en" | "ar"; /** * Normalize whatever an embedder or a deployment config hands over into a * supported language: `'ar-SA'` and `'AR'` are Arabic, `undefined`, `''` and * `'fr'` are English. */ export declare const resolveWidgetLanguage: (value: unknown) => WidgetLanguage; export declare const directionFor: (language: WidgetLanguage) => TextDirection;