import type { ReactiveController, ReactiveControllerHost } from 'lit'; import { type UiTranslation } from '../../core/i18n.js'; export * from '../../core/i18n.js'; /** * Gives a component its language and text direction: its own `lang` / `dir` attribute, else the * closest ancestor's in the same tree, else ``, else the browser's. Re-renders the host when * any of those change or a translation is registered. */ export declare class LocalizeController implements ReactiveController { private readonly host; /** The trees watched for this host: the document, and its shadow root when it sits in one. */ private trees; constructor(host: ReactiveControllerHost & HTMLElement); hostConnected(): void; hostDisconnected(): void; /** * The nearest `name` attribute: the host's, an ancestor's, then ``'s. On the server (Lit SSR) * there are no ancestors or document to ask, so only the host's own attribute counts there. */ private inherited; /** Resolved BCP 47 language, e.g. `th-TH`. */ lang(): string; /** Resolved text direction. */ dir(): 'ltr' | 'rtl'; /** The translation for `lang()`. */ get t(): UiTranslation; }