import type { FC, MouseEvent } from "react"; import type { MenuItemModel, MenuModel } from "../../menus"; import type { MenuListProps } from "../MenuList"; import type { PopoverProps } from "../Popover"; /** * Properties for the `BoundMenu` component. */ export interface BoundMenuProps extends Omit { /** * The menu containing items to display. */ menu: MenuModel; /** * Callback that will be invoked when a menu item is selected. */ onMenuItemClick?: (e: MouseEvent, item: MenuItemModel) => void; /** * Properties that will be applied to the MenuList. */ MenuListProps?: Partial; } /** * A menu that is bound to a MenuModel. Any child components passed in will also * appear in the popup, but won't behave like menu items. */ declare const BoundMenu: FC; export default BoundMenu;