import { Subject } from "@vkontakte/videoplayer-shared"; import type { CustomError } from "../../../utils/Error"; import type { ChapterContainer } from "../../../manifest"; import { type Control, type ControlCreator, type Options } from "../controls"; import { type ChoiceContainerOptions } from "./types"; import type { CssVarsManager } from "../../../utils/CssVarsManager"; export declare class Container { container: ChapterContainer; options?: Options; private factories; controls: Control[]; error$: Subject; readonly cssVarsManager: CssVarsManager; constructor(container: ChapterContainer, cssVarsManager: CssVarsManager, options?: Options); featureIsEnabled(name: keyof ChoiceContainerOptions["features"]): boolean; onError(message: string | undefined, error: unknown): void; addControlFactory(type: string, factory: ControlCreator): void; removeControlFactory(type: string): void; private setControls; private chooseControls; }