import * as React from 'react'; import type { MenuStore } from "../store/MenuStore.js"; import type { MenuParent, MenuRoot } from "./MenuRoot.js"; export interface MenuRootContext { store: MenuStore; parent: MenuParent; orientation: MenuRoot.Orientation; loopFocus: boolean; /** Whether arrow keys can step from either end of the list back to a virtual focus owner. */ allowEscape: boolean; defaultFloatingId: string | undefined; /** Records the id the popup rendered with, when it differs from `defaultFloatingId`. */ setRenderedFloatingId: React.Dispatch>; virtualFocus: boolean; parentVirtualFocus: boolean; /** Re-emits `onItemHighlighted` after the item registry settles. */ syncHighlightedItem: () => void; } export declare const MenuRootContext: React.Context | undefined>; export declare function useMenuRootContext(optional?: false): MenuRootContext; export declare function useMenuRootContext(optional: true): MenuRootContext | undefined;