import cytoscape, { Core } from 'cytoscape'; import type { CytoscapeContextMenuOptions, MenuItemOption } from './constants'; import './style.scss'; export interface CytoscapeMenuCanvasProps { /** Unique id for the container element */ id?: string; /** Cytoscape elements (nodes and edges) */ elements?: cytoscape.ElementDefinition[]; /** Context menu options */ menuItems?: MenuItemOption[]; /** Called when cytoscape instance is ready */ onReady?: (cy: Core) => void; /** Additional context menu options */ contextMenuOptions?: Omit; /** Container height */ height?: string | number; } export default function CytoscapeMenuCanvas({ id, elements, menuItems, onReady, contextMenuOptions, height, }: CytoscapeMenuCanvasProps): import("react").JSX.Element;