import type { i18n as I18n } from 'i18next'; /** Where LocalePicker and HeaderSettings save a language the visitor * picked: `LOCALE_STORAGE_KEY` in locale-picker.tsx, copied so the error * page does not bundle the picker. */ export declare const SAVED_LOCALE_KEY = "alfadocs-ui.locale"; /** Used when nothing else names a language the kit ships. */ export declare const ERROR_PAGE_FALLBACK_LOCALE = "it"; export interface ErrorPageLocaleSources { /** Host-supplied locale. Always wins when the kit ships it. */ locale?: string; /** True when `` is only the site default, not the visitor's * language: for example an error raised before routing read it. */ hostLocaleIsDefault?: boolean; /** Test seams; the browser values are read when omitted. */ saved?: string | null; browser?: readonly string[]; document?: string; } /** * The language to show an error in. First match wins: * 1. the `locale` prop; * 2. the language the visitor picked before in the kit; * 3. the browser's languages, in order; * 4. ``, unless the host says it is only its default; * 5. Italian. * Only languages the kit ships count at each step. */ export declare function resolveErrorPageLocale(sources?: ErrorPageLocaleSources): string; /** Fetches the kit's bundle for a language without changing the host's * active language. Rejects when the bundle cannot load. */ export declare const loadErrorPageLocale: (language: string, instance: I18n) => Promise; //# sourceMappingURL=error-page-locale.d.ts.map