/** 双语文案条目。zh 为原文(测试锚),en 为英译。 */ export interface BiString { zh: string; en: string; } /** 面板展示语言(2026-10-13 i18n 批):后端 verify/save 的 error/detail 消息按此取双语; * 默认 zh(既有调用方/测试不变)。接线层从请求 Accept-Language 解析(pickGuiLang)传入。 */ export type GuiLang = 'zh' | 'en'; /** 面板 UI 全量双语字典。键命名:<区域>.<语义>。 */ export declare const GUI_STRINGS: Record; /** 序列化字典供模板内联:`var I18N = { zh: {...}, en: {...} }` 的右值 JSON。 * `<` 转 \u003c:防字典值意外含 截断脚本(标准防御);JSON 输出的 \" \\ * 在模板字符串 ${} 插值下原样保留(不经模板转义——2026-09-30 死锁根因家族免疫)。 * prefixes 过滤:portal 只内联自身前缀键,控制入口页体积。 */ export declare function serializeI18nForInline(prefixes?: readonly string[]): string; /** 后端消息取值(settings-api/files-api 按 Accept-Language 解析结果调用)。 * 缺 key 回落 zh(与前端 t() 同语义);params 做 {name} 占位替换。 */ export declare function guiText(lang: 'zh' | 'en', key: string, params?: Record): string; /** 解析 HTTP Accept-Language 头为面板语言:zh* → zh,其余 → en,缺省 zh。 */ export declare function pickGuiLang(acceptLanguage: string | undefined): 'zh' | 'en';