/** * 获取当前语言环境下的翻译文案。 * * 支持 `{key}` 形式的变量替换: * ```ts * t('safety.tenant.operated', { name: '字节' }) * // zh → "字节运营" * // en → "Operated by 字节" * ``` * * 如果 key 不存在,fallback 到中文;中文也没有则返回 key 本身。 */ export declare function t(key: string, params?: Record): string; export { getLocale } from '../utils/locale'; export type { Locale } from '../utils/locale';