import * as React from 'react'; import { type MenuItemInteractionProps } from '../utils/useMenuItem.js'; import type { MenuItemProps } from './types.js'; /** @internal True inside a checkbox/radio item so its `MenuItemIndicator` knows whether the item is checked. */ export declare const ItemIndicatorContext: React.Context; /** @internal Wires a {@link MenuItem} into the shared menu-item interactions, closing the menu and refocusing the trigger on selection. */ export declare function useMenuItem({ disabled, textValue, onSelect, closeOnSelect, props, }: { disabled?: boolean | undefined; textValue?: string | undefined; onSelect?: ((event: Event) => void) | undefined; /** Overrides the root's `closeOnSelect`; a part may also supply its own default. */ closeOnSelect?: boolean | undefined; props: MenuItemProps; }): MenuItemInteractionProps; /** * Selectable menu item with `role="menuitem"` and roving-focus/typeahead, firing `onSelect` and closing the menu on selection unless prevented or `closeOnSelect` is `false`. * * @example * ```tsx * console.log('Edit')}>Edit * ``` */ export declare const MenuItem: { ({ as, disabled, textValue, onSelect, closeOnSelect, ref: forwardedRef, ...props }: MenuItemProps): React.ReactNode; displayName: string; };