import type { MaybeRef } from '@vueuse/core'; import type { InjectionKey, Ref } from 'vue'; import type { Language } from 'element-plus/es/locale'; export declare type TranslatorOption = Record; export declare type Translator = (path: string, option?: TranslatorOption) => string; export declare type LocaleContext = { locale: Ref; lang: Ref; t: Translator; }; export declare const buildTranslator: (locale: MaybeRef) => Translator; export declare const translate: (path: string, option: undefined | TranslatorOption, locale: Language) => string; export declare const buildLocaleContext: (locale: MaybeRef) => LocaleContext; export declare const localeContextKey: InjectionKey>; export declare const useLocale: (localeOverrides?: Ref) => LocaleContext;