import { ReactiveController, ReactiveControllerHost } from "lit"; import { msg, str } from "@lit/localize"; export { msg, str }; /** * Registry of locale translations. * Contains core component strings + legacy date/time/table strings. */ export declare const translations: Record>; /** * Configure @lit/localize runtime */ export declare const getLitLocale: (() => string) & { _LIT_LOCALIZE_GET_LOCALE_?: never; }, setLitLocale: ((newLocale: string) => Promise) & { _LIT_LOCALIZE_SET_LOCALE_?: never; }; /** * Gets the current active locale (e.g. 'en', 'it'). */ export declare function getLocale(): string; /** * Sets the active locale, loads messages, and notifies all subscribing components. */ export declare function setLocale(locale: string): Promise; /** * Allows consumers to register a custom locale dictionary at runtime. */ export declare function registerLocale(locale: string, customTranslations: Record): void; /** * Lit Reactive Controller for automatic updates when global locale changes. */ export declare class LocaleController implements ReactiveController { host: ReactiveControllerHost; constructor(host: ReactiveControllerHost); hostConnected(): void; hostDisconnected(): void; private _onChange; get locale(): string; } /** * Translates a key based on element-specific lang or active global locale. */ export declare function translate(key: string, elementLang?: string): any; export * from "./validation-messages.js"; //# sourceMappingURL=locale.d.ts.map