///
///
///
import React from 'react';
import { RefHandler } from 'react-popper';
export interface PopoverProps {
/**
* Contents for the Popover. Usually a `PopoverTitle`, `PopoverBody`, and `PopoverPrimaryButton`
*/
children: React.ReactNode;
/**
* A function that renders JSX and receives an object with `ref`.
* All of these props must be added to the component within the render prop.
*/
launcher: ({ ref }: {
ref: RefHandler;
}) => React.ReactNode;
/**
* Position of popover relative to the launcher.
*/
position?: 'top-start' | 'top' | 'top-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'right-start' | 'right' | 'right-end';
/**
* Whether or not the popover is visible.
*/
isOpen?: boolean;
/**
* Function called when the close button is clicked. You should cause this to set `isOpen=false`
* in your parent component.
*/
onCloseClick: () => void;
/**
* By default popovers will render right before the `