import { IconName } from '../utils/icons'; export interface MenuItem { label: string; icon?: IconName; disabled?: boolean; action: () => void; } export type MenuEntry = MenuItem | 'separator'; /** * A small floating menu shown at a point (typically the mouse on right-click). * Closes on outside click, Escape, scroll, or when another menu opens. Icons * come from the shared icon set. */ export declare class ContextMenu { private el?; get isOpen(): boolean; open(x: number, y: number, items: MenuEntry[]): void; readonly close: () => void; private readonly onOutside; private readonly onKey; }