import { type BaseViewer, Plugin, PluginConfig } from "@x-viewer/core"; import { Context, ContextMenuItem } from "./Constants"; /** * Context menu plugin config. */ export type ContextMenuPluginConfig = Partial; /** * Context menu plugin. * Can be used by Viewer3d. */ export declare class ContextMenuPlugin extends Plugin { static readonly DEFAULT_ID = "ContextMenuPlugin"; protected cfg: ContextMenuPluginConfig; protected container: HTMLElement; protected element: HTMLDivElement; protected context: Context; protected itemList: [ContextMenuItem, HTMLElement][]; constructor(viewer: BaseViewer, cfg?: ContextMenuPluginConfig); protected handleClick: () => void; show(pageX: number, pageY: number): void; hide(): void; destroy(): void; }