import { QlLanguage } from '../../locale'; import { InjectionKey, MaybeRef, Ref } from 'vue'; export type TranslatorOption = Record; export type Translator = (path: string, option?: TranslatorOption) => string; export interface LocaleContext { locale: Ref; lang: Ref; t: Translator; } export declare function buildTranslator(locale: MaybeRef): Translator; export declare function translate(path: string, option: undefined | TranslatorOption, locale: QlLanguage): string; export declare function buildLocaleContext(locale: MaybeRef): LocaleContext; export declare const localeContextKey: InjectionKey>; export declare function useLocale(localeOverrides?: Ref): LocaleContext;