import type { Locale } from "./types.js"; export type { Locale } from "./types.js"; /** * 根据当前语言环境获取翻译文本,支持变量插值。 */ export declare function t(key: string, vars?: Record): string; /** 设置当前语言环境。 */ export declare function setLocale(locale: Locale): void; /** 获取当前语言环境。 */ export declare function getLocale(): Locale; /** 提示用户选择语言。若能从环境变量自动检测则直接使用,否则弹出交互选择。 */ export declare function selectLanguage(): Promise;