import { InjectionKey, MaybeRef } from 'vue'; import { zhCN, zhTW, enUS, ProLocale, ProLocaleName } from '@qin-ui/pro-components-core'; export { zhCN, zhTW, enUS }; export type { ProLocale }; /** ProComponentProvider 通过该 key 注入局部覆盖文案 */ export declare const LOCALE_INJECT_KEY: InjectionKey | undefined>>; /** * 获取响应式 locale 文案 * * @description 返回 `t` 翻译函数与当前语言名。 * `t` 在 computed / 模板中调用时会随宿主语言切换自动更新。 * * @returns * - `t(key, params?)` - 翻译函数,支持 `{placeholder}` 参数 * - `lang` - 当前解析出的语言名('zh-CN' | 'zh-TW' | 'en-US') * * @example * ```ts * const { t } = useLocale(); * t('table.query') // '查询' / '查詢' / 'Search' * t('pagination.total', { total: 100 }) // '共 100 条' * ``` */ export declare const useLocale: () => { t: (key: string, params?: Record) => string; lang: import('vue').ComputedRef; }; //# sourceMappingURL=index.d.ts.map