export interface ContextMenuItem { id: string; label: string; onSelect: () => void; danger?: boolean; } export interface ContextMenuProps { x: number; y: number; items: readonly ContextMenuItem[]; onDismiss: () => void; } /** * Phase 11.5 ยง2.3: a generic right-click menu, position-at-cursor and * keyboard-dismissible following LinkEditorPopover/ColorPickerPopover's * pattern - plus click-outside-to-close, which those two don't have but a * native-context-menu-replacement genuinely needs (an accidental click * elsewhere shouldn't leave it stuck open). Items are supplied by the * caller (CanonicalAuthorityEditor's resolveContextMenuItems), which * resolves the applicable plugin registry `contextMenu` contributions for * the current scope - this component has no knowledge of commands/scopes. */ export declare function ContextMenu({ x, y, items, onDismiss }: ContextMenuProps): import("react/jsx-runtime").JSX.Element;