import * as React from 'react'; import { MoveByOffset } from '../common'; import { AppendTo, Placement } from '../Popover'; import { DropdownBaseProps } from '../DropdownBase'; export interface PopoverTriggerElementProps { /** Defines a callback function which is called when the trigger element is clicked. */ onClick?: () => void; /** Opens the menu when it is closed, and closes it when it is open. */ toggle: () => void; /** Opens the menu. */ open: () => void; /** Closes the menu. */ close: (event?: React.SyntheticEvent) => void; /** Specifies whether the menu is currently open. */ isOpen: boolean; /** Sets the reference that positions the menu against the trigger element. */ ref?: React.RefObject; } export interface PopoverMenuProps { /** Defines a component that calls out a Popover menu (``, `