import React from "react"; import type { PopoverElement, PopoverProps as BaseProps } from "./popover"; export type PopoverProps = BaseProps & { /** * A function that should return the contents of the Popover. * * @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 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 Popover: React.ForwardRefExoticComponent void) => React.ReactElement; /** * A function that should return the element that the Popover 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>;