import * as React from 'react'; import { MenuRoot } from '../../menu/root/MenuRoot'; /** * Groups the parts of a context menu — a menu opened by long-pressing an area * rather than tapping a button. * Doesn't render its own element. * * A context menu is a `Menu.Root` anchored to the point where the long press * landed instead of to a trigger element. It reuses every menu part except the * trigger and positioner, which are its own. * * **Adapted from upstream.** The web version opens on right-click *or* long * press and tracks a virtual cursor; a touch screen only has the long press. */ export declare function ContextMenuRoot(props: ContextMenuRoot.Props): React.JSX.Element; export interface ContextMenuRootState { } export interface ContextMenuRootProps extends Omit { children?: React.ReactNode; } export declare namespace ContextMenuRoot { type State = ContextMenuRootState; type Props = ContextMenuRootProps; /** * A context menu is a menu, so it reuses the menu's action and event * contracts — a consumer should not have to reach for `Menu.Root`'s types to * type a `ContextMenu.Root` handler. */ type Actions = MenuRoot.Actions; type ChangeEventReason = MenuRoot.ChangeEventReason; type ChangeEventDetails = MenuRoot.ChangeEventDetails; } //# sourceMappingURL=ContextMenuRoot.d.ts.map