import React from 'react'; import type { GroupContextValue, IItemContext, IRootContext, MenuKey, PortalProps, TriggerRef } from './menu.types.js'; declare const useRootContext: () => IRootContext; declare const Root: React.ForwardRefExoticComponent void; } & React.RefAttributes>; declare const Trigger: React.ForwardRefExoticComponent & { isDisabled?: boolean; } & React.RefAttributes>; /** * @warning when using a custom ``, you might have to adjust the Content's offset to account for nav elements like headers. */ declare function Portal({ forceMount, hostName, children }: PortalProps): React.JSX.Element | null; declare const Overlay: React.ForwardRefExoticComponent>; /** * @info `position`, `top`, `left`, and `maxWidth` style properties are controlled internally. Opt out of this behavior by setting `disablePositioningStyle` to `true`. */ declare const Content: React.ForwardRefExoticComponent>; declare const Close: React.ForwardRefExoticComponent>; /** * Hook to access Menu Group context. * Provides selection state, disabled state, and selection mode. * * @throws Error if used outside a Menu Group component */ declare function useGroupContext(): GroupContextValue; /** * Hook to access Menu Item context. * Provides the item's id, selected state, and disabled state. * * @throws Error if used outside a Menu Item component */ declare function useItemContext(): IItemContext; declare const Group: React.ForwardRefExoticComponent; defaultSelectedKeys?: Iterable; onSelectionChange?: (keys: Set) => void; disabledKeys?: Iterable; isDisabled?: boolean; shouldCloseOnSelect?: boolean; disallowEmptySelection?: boolean; } & React.RefAttributes>; declare const Item: React.ForwardRefExoticComponent & { id?: MenuKey; isDisabled?: boolean; shouldCloseOnSelect?: boolean; isSelected?: boolean; onSelectedChange?: (selected: boolean) => void; variant?: import("./menu.types.js").ItemVariant; } & React.RefAttributes>; declare const ItemTitle: React.ForwardRefExoticComponent>; declare const ItemDescription: React.ForwardRefExoticComponent>; declare const ItemIndicator: React.ForwardRefExoticComponent>; declare const Label: React.ForwardRefExoticComponent>; export { Close, Content, Group, Item, ItemDescription, ItemIndicator, ItemTitle, Label, Overlay, Portal, Root, Trigger, useGroupContext, useItemContext, useRootContext, }; //# sourceMappingURL=menu.d.ts.map