import { ContextMenuSpec } from '@xh/hoist/core'; import { ReactElement } from 'react'; /** * Hook to add a right-click context menu to a component. * * @param child - element to be given context menu support. Must specify a component that takes * the React `onContextMenu` event as a prop (e.g. boxes, panel, div, etc.) * @param spec - spec the menu to be shown. If null, or the number of items is empty, no menu will * be rendered and the event will be consumed. */ export declare function useContextMenu(child?: ReactElement, spec?: ContextMenuSpec): ReactElement;