{"version":3,"file":"index.d.mjs","sources":["../../../../packages/locale/index.d.ts"],"sourcesContent":["export interface LocaleMessages {\n\t[key: string]: any\n}\n\nexport interface LocaleOptions {\n\t[key: string]: any\n}\n\n/**\n * 响应式语言标记，用于触发组件更新\n */\nexport declare const langKey: number\n\n/**\n * 翻译函数\n * @param path 翻译路径，支持点分隔的嵌套路径\n * @param options 格式化参数\n * @returns 翻译后的文本\n */\nexport declare function t(path: string, ...options: any[]): string\n\n/**\n * 设置当前语言包\n * @param lang 语言包对象\n */\nexport declare function use(lang: LocaleMessages): void\n\n/**\n * 设置国际化处理函数\n * @param fn 自定义的国际化处理函数\n */\nexport declare function i18n(fn: (...args: any[]) => any): void\n\ndeclare const _default: {\n\tuse: typeof use\n\tt: typeof t\n\ti18n: typeof i18n\n\tlangKey: typeof langKey\n}\n\nexport default _default\n"],"names":[],"mappings":"AAwCA,iBAAe,QAAA;;;;"}