/**
 * Copyright IBM Corp. 2020, 2023
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */
type TriggerType = Element | Document | Window | React.RefObject<Element | null>;
export interface ContextMenuProps {
    open: boolean;
    x: number;
    y: number;
    onClose: () => void;
}
/**
 * @param {TriggerType} [trigger=document] The element or ref which should trigger the Menu on right-click
 * @returns {ContextMenuProps} Props object to pass onto Menu component
 */
declare function useContextMenu(trigger?: TriggerType): ContextMenuProps;
export default useContextMenu;
