/** * Host-side locale resolution. DSH stores the explicit language preference in * the `locale` settings entry; browser-only language detection is not visible * to host plugins, so an absent preference falls back to the process locale. * @module dsh-sensitive-guard/locale */ import type { Context } from '@deepseek-ai/cordis'; /** Languages with a complete guard message catalog. */ export type GuardLocale = 'en' | 'zh'; /** Normalize a BCP 47-style tag to a supported catalog; unsupported -> English. */ export declare function normalizeLocale(value: unknown): GuardLocale; /** * Read the active DSH language without requiring the settings service to be * present. The fallback chain is explicit preference, process locale, English. */ export declare function localeFromSettings(ctx: Context): GuardLocale; //# sourceMappingURL=locale.d.ts.map