import * as React from 'react'; import type { ContextMenuRoot } from "./ContextMenuRoot.js"; export interface ContextMenuRootContext { anchor: { getBoundingClientRect: () => DOMRect; }; setAnchor: React.Dispatch>; backdropRef: React.RefObject; internalBackdropRef: React.RefObject; actionsRef: React.RefObject<{ setOpen: (nextOpen: boolean, eventDetails: ContextMenuRoot.ChangeEventDetails) => void; } | null>; positionerRef: React.RefObject; allowMouseUpTriggerRef: React.RefObject; initialCursorPointRef: React.RefObject<{ x: number; y: number; } | null>; rootId: string | undefined; } export declare const ContextMenuRootContext: React.Context; export declare function useContextMenuRootContext(optional: false): ContextMenuRootContext; export declare function useContextMenuRootContext(optional?: true): ContextMenuRootContext | undefined;