import { I18nContext } from "./context.js"; import { ReactiveController, ReactiveControllerHost } from "@videojs/element"; import { Locale, Translator } from "@videojs/core/i18n"; //#region src/i18n/controller.d.ts type I18nControllerHost = ReactiveControllerHost & HTMLElement; /** Consumes an i18n context and updates its host when the translator or locale changes. */ declare class I18nController implements ReactiveController { #private; /** * @param host - Reactive host updated when the i18n value changes. * @param context - I18n context to consume. */ constructor(host: I18nControllerHost, context: I18nContext); get value(): Translator; get locale(): Locale; hostConnected(): void; hostDisconnected(): void; } declare namespace I18nController { type Constructor = typeof I18nController; type Host = I18nControllerHost; } //#endregion export { I18nController, I18nControllerHost }; //# sourceMappingURL=controller.d.ts.map