import React from "react"; import type { PopoverMenuElement, PopoverMenuProps as BaseProps } from "./popover-menu"; export type PopoverMenuProps = BaseProps & { /** The minimum width of the Popover Menu. */ minWidth?: number; /** * A function that should return the contents of the Popover Menu. * Popover Menu contents should be limited to Popover Menu Items. * * @param hidePopover - A function that can be called to hide the * popover. */ renderPopover: (hidePopover: () => void) => React.ReactElement; /** * A function that should return the element that the Popover Menu * will be attached to. * * @param showPopover - A function that can be called to show the * popover. * @param hidePopover - A function that can be called to hide the * popover. */ renderAnchor: (showPopover: () => void, hidePopover: () => void) => React.ReactElement; }; export declare const PopoverMenu: React.ForwardRefExoticComponent void) => React.ReactElement; /** * A function that should return the element that the Popover Menu * will be attached to. * * @param showPopover - A function that can be called to show the * popover. * @param hidePopover - A function that can be called to hide the * popover. */ renderAnchor: (showPopover: () => void, hidePopover: () => void) => React.ReactElement; } & React.RefAttributes>;