import { ICosmographInternalApi } from "../../internal"; /** * Configuration for creating a Mosaic vgplot component. */ export interface MosaicVgplotComponentConfig { /** Unique identifier for this component */ id?: string; /** Internal Cosmograph API for accessing coordinator and selections */ internalApi: ICosmographInternalApi; } /** * Manages the lifecycle of a vgplot component within Cosmograph's Mosaic integration. * This class handles mounting, validation, and cleanup of vgplot components * and ensures they properly integrate with Cosmograph's data and selections. */ export declare class MosaicVgplotComponent { private _id; private _component; private _container; private _isDestroyed; private _errorMessage; private _internalApi; private _marks; constructor(config: MosaicVgplotComponentConfig); /** * Gets the unique identifier for this component. */ get id(): string; /** * Gets the error message if the component failed to mount. * Check if this is truthy to determine if an error occurred. */ get errorMessage(): string | undefined; /** * Mounts a Mosaic component (vgplot) to a DOM container. * The component will automatically connect to Cosmograph's coordinator and * participate in the crossfilter system. * * @param component - The vgplot component (e.g., from vg.plot(), vg.vconcat(), etc.) * @param container - The DOM element to mount the component into * @returns A promise that resolves when the component is mounted */ mount(component: HTMLElement, container: HTMLElement): Promise; private _abortMount; private _resolveElement; private _validatePlot; private _attachErrorInterceptors; private _connectPlot; private _handleQueryError; private _cleanupSelections; private _unmount; /** * Destroys the component and cleans up all resources. */ destroy(): Promise; private _showError; }