import { FieldPath } from "../../utils/typescript.js"; import "../../utils/index.js"; import _default from "../../locale/lang/en.js"; import { Language } from "../../locale/index.js"; import { InjectionKey, Ref } from "vue"; import { MaybeRef } from "@vueuse/core"; //#region ../../packages/hooks/use-locale/index.d.ts type LocaleKeys = Exclude, 'name' | 'el'> | (string & NonNullable); type TranslatorOption = Record; type Translator = (path: LocaleKeys, option?: TranslatorOption) => string; type LocaleContext = { locale: Ref; lang: Ref; t: Translator; }; declare const buildTranslator: (locale: MaybeRef) => Translator; declare const translate: (path: LocaleKeys, option: undefined | TranslatorOption, locale: Language) => string; declare const buildLocaleContext: (locale: MaybeRef) => LocaleContext; declare const localeContextKey: InjectionKey>; declare const useLocale: (localeOverrides?: Ref) => LocaleContext; //#endregion export { LocaleContext, LocaleKeys, Translator, TranslatorOption, buildLocaleContext, buildTranslator, localeContextKey, translate, useLocale };