import { D as Detector } from './types-Do46zjmN.js'; import { I18nAllyClientOptions } from './types.js'; import './detectors/cookie.js'; import './detectors/html-tag.js'; import './detectors/local-storage.js'; import './detectors/navigator.js'; import './detectors/path.js'; import './detectors/query-string.js'; import './detectors/session-storage.js'; import './logger.js'; declare class I18nAllyClient { private readonly options; private loaded; private detectorMap; private logger; lng?: string; lngs: string[]; fallbackLng: string; /** * @description * 当前语言 */ language: string; /** * @description * i18n-ally资源支持的语言 */ supportedLngs: string[]; supportedNs: { [lng: string]: string[]; }; constructor(options: I18nAllyClientOptions); asyncLoadResource(lng?: string, options?: { ns?: string[] | string; }): Promise; private onReady; private formatLngs; /** * 获取资源的语言 */ private getSensitiveLang; private loadResource; private persistLng; private warnFallback; private init; private generateDetectorMap; /** * @description Resolve current language from detector */ private detect; static getSupportedLngs(): string[]; static getSupportedNs(): { [k: string]: string[]; }; } export { I18nAllyClient };