import { Canvas } from '../../interfaces/canvas'; import { ContextMenuConfig } from '../config/diagram-canvas-config'; export declare const CONTEXT_MENU_DEFAULTS: { customButtons: never[]; }; /** * Stores the functionality regarding the context menu of a diagram canvas. * @public * @see DiagramCanvas */ export declare class DiagramContextMenu { #private; /** * Constructs a context menu object. * @public * @param canvas A canvas. */ constructor(canvas: Canvas, config?: ContextMenuConfig); /** * Opens the context menu at the location determined by the given mouse event. * @public * @param event A mouse event. */ open(event: MouseEvent): void; /** * Closes the context menu. Has no effect if it's not open. * @public */ close(): void; }