import { default as zhHans } from './locales/zh'; import { default as en } from './locales/en'; interface LocaleInterface { lang: string; message: Record>; } export declare const DEFAULT_LOCALE: LocaleInterface; declare class Locale { private emitter; constructor(); get lang(): string; set lang(lang: string); get message(): Record>; set message(message: Record>); loadLangMessage(lang: string): Record; private isLangSupported; setLang(lang: string): void; registerWatchLang(hook: (lang: string) => void): { unsubscribe: () => void; }; setMessage(lang: string, message: Record): void; buildLocalesHandler(lang?: string): (path: string) => string; } declare const locale: Locale; declare const useLocale: () => { lang: globalThis.Ref; t: globalThis.ComputedRef<(path: string) => string>; }; export default locale; export { Locale, useLocale, zhHans, en };