import './polyfills/Intl.Locale.js'; import { PureEventDispatcher } from '@a11d/lit'; import { type LanguageCode, type Locale } from './LanguageCode.js'; declare class Locales { private readonly storage; private resolved?; /** Dispatched with the locale in effect after one is assigned. */ readonly change: PureEventDispatcher; /** * The locale the application runs in: the one selected through the `lang` URL parameter or assigned here, * otherwise the browser's. A selection that names no region adopts the one of the browser's matching language. */ get current(): Intl.Locale; set current(value: Locale); private get tag(); private static resolve; } type Dictionary = Map>; type DictionaryLike = Dictionary | Record>; type AddParameters = [language: LanguageCode, dictionary: DictionaryLike] | [dictionariesByLanguage: Partial>]; declare class Dictionaries { private readonly byLanguageCode; get(languageCode: LanguageCode): Map; add(...parameters: AddParameters): void; } export declare class Localizer { static readonly locales: Locales; static readonly dictionaries: Dictionaries; /** @deprecated Use `Localizer.locales`. */ static readonly languages: { change: PureEventDispatcher; current: LanguageCode; }; } declare global { var Localizer: typeof import('./Localizer.js').Localizer; } export {}; //# sourceMappingURL=Localizer.d.ts.map