import { getCliLang, parseLangFromArgv } from '../lib/i18n.js'; import type { CliLang } from '../lib/i18n.js'; export type Lang = CliLang; export { getCliLang, parseLangFromArgv }; export interface BiText { zh: string; en: string; } /** 把双语对象拼成 `${zh}\n${en}` 串,塞给 oclif Command 的 static description / flags.description 等字段。 */ export declare function bilingual(text: BiText): string; export declare const LANG_FLAG: import("@oclif/core/interfaces").OptionFlag; /** 按 lang 把双语串切回单语;只有 1 行的串原样返回。 */ export declare function pickLang(text: string | undefined, lang: Lang): string | undefined; /** 从 process.argv 解析 lang,优先级跟 ../i18n.ts 的 getCliLang 一致:CLI flag > OMK_LANG > zh。 */ export declare function resolveLang(argv?: readonly string[]): Lang;