import { type JSX } from 'react'; import * as ContextMenuPrimitive from '@radix-ui/react-context-menu'; /** * generic context menu: * takes in units: Unit[] for layout */ interface Option { label: string; rightSlot?: JSX.Element; onSelect?: () => void; } interface Item extends Option { onSelect: () => void; } interface SubMenu extends Option { content: (Item | SubMenu)[]; } export type ContextMenuUnit = Item | 'separator' | SubMenu; export declare const ContextMenu: ({ units, children: child, title, }: { units?: ContextMenuUnit[]; children: JSX.Element; title?: string; }) => JSX.Element; declare function Content(props: any): JSX.Element; declare function SubContent(props: any): JSX.Element; export declare const RightSlot: import("@planda/styled-system/jsx").StyledComponent<"div", {}>; export declare const ContextMenuRoot: import("@planda/styled-system/jsx").StyledComponent, {}>; export declare const ContextMenuTrigger: import("react").ForwardRefExoticComponent>; export declare const ContextMenuContent: typeof Content; export declare const ContextMenuItem: import("@planda/styled-system/jsx").StyledComponent>, {}>; export declare const ContextMenuCheckboxItem: import("@planda/styled-system/jsx").StyledComponent>, {}>; export declare const ContextMenuRadioGroup: import("react").ForwardRefExoticComponent>; export declare const ContextMenuRadioItem: import("@planda/styled-system/jsx").StyledComponent>, {}>; export declare const ContextMenuItemIndicator: import("@planda/styled-system/jsx").StyledComponent>, {}>; export declare const ContextMenuLabel: import("@planda/styled-system/jsx").StyledComponent>, {}>; export declare const ContextMenuSeparator: import("@planda/styled-system/jsx").StyledComponent>, {}>; export declare const ContextMenuSub: import("react").FC; export declare const ContextMenuSubTrigger: import("@planda/styled-system/jsx").StyledComponent>, {}>; export declare const ContextMenuSubContent: typeof SubContent; export {};