import { ICosmographInternalApi } from "../../internal"; import { MosaicVgplotComponent, MosaicVgplotComponentConfig } from './compenent-wrapper'; /** * Manages multiple Mosaic vgplot components, providing lifecycle management * and coordination between vgplot visualizations and Cosmograph. */ export declare class MosaicVgplotComponentManager { private _internalApi; private _components; constructor(internalApi: ICosmographInternalApi); /** * Gets all registered vgplot components. */ get components(): ReadonlyMap; /** * Adds a custom vgplot component and mounts it to a container. * If the component fails to mount (e.g., missing column), it will show an error * in the container but won't throw, allowing other components to continue. * * @param component - The vgplot component (e.g., from vg.plot(), vg.vconcat(), etc.) * @param container - The DOM element to mount the component into * @param config - Optional configuration for the component * @returns The created vgplot component (check component.errorMessage to see if it failed) */ addComponent(component: HTMLElement, container: HTMLElement, config?: Partial): Promise; /** * Removes and destroys a component by its ID. * * @param id - The ID of the component to remove * @returns True if the component was found and removed, false otherwise */ removeComponent(id: string): Promise; /** * Destroys all registered components. */ destroyAll(): Promise; }