import { type MenuViewport } from "../contextMenuPosition"; /** One list-menu entry — an action (a clickable row that delegates to an existing handler) or a divider. */ export type ContextMenuItem = { type: "action"; /** Stable key + testid suffix (`hw-ctx-`). */ key: string; label: string; /** Optional leading icon. A node (SDK `icons.tsx`) or any host-supplied element; a plain string * still works for backwards compatibility. */ icon?: React.ReactNode; /** Disabled rows are skipped by keyboard nav and show a reason tooltip (미지원은 조용한 무시 금지). */ disabled?: boolean; title?: string; onSelect: () => void; } | { type: "separator"; key: string; }; export interface ContextMenuProps { /** Desired anchor (client px — where the pointer went down). Clamped to the viewport after measuring. */ x: number; y: number; /** List items (with ↑↓/Enter keyboard nav). Provide EITHER `items` OR `children`. */ items?: ContextMenuItem[]; /** Custom content (e.g. the background 표 추가 grid picker). Rendered instead of the item list. */ children?: React.ReactNode; /** A short header label shown above `children` (custom mode only). */ heading?: string; /** Close the menu (Esc / outside click / scroll / after an action). */ onClose: () => void; /** Positioning viewport (default = the window). */ viewport?: MenuViewport; } export declare function ContextMenu({ x, y, items, children, heading, onClose, viewport }: ContextMenuProps): import("react").JSX.Element; //# sourceMappingURL=ContextMenu.d.ts.map