import type { Ref } from 'vue'; import type { Locale, Direction } from '../types/locale'; import type { MaybeRef } from '@vueuse/core'; export type TranslatorOption = Record; export type Translator = (path: string, option?: TranslatorOption) => string; export type LocaleContext = { locale: Ref>; lang: Ref; dir: Ref; code: Ref; t: Translator; }; export declare function buildTranslator(locale: MaybeRef>): Translator; export declare function translate(path: string, option: undefined | TranslatorOption, locale: Locale): string; export declare function buildLocaleContext(locale: MaybeRef>): LocaleContext;