import { Dispatch, FC, SetStateAction } from 'react'; import { ContentRenderer, PopoverPosition } from 'react-tiny-popover'; interface PopoverType { triggerElement: JSX.Element; /** * The className to apply to the container element */ containerClassName?: string; /** * The className to apply to the input element */ inputClassName?: string; content: JSX.Element | ContentRenderer; /** * The position of the popover. You can provide a single position string, or * an array of position strings. When an array is provided, the popover will * attempt to position itself in the first position in the array, and if that * position is not possible, it will attempt to position itself in the second * position, and so on. * * The possible positions are: * - 'top' * - 'bottom' * - 'left' * - 'right' * - 'auto' * * @default ['bottom', 'top', 'left', 'right'] */ positionOverlay?: PopoverPosition | PopoverPosition[]; /** * Captures clicks outside of the popover container. When set to true, * clicking outside the popover will close it. * @default false */ clickOutsideCapture?: boolean; /** * Indicates whether the popover is open */ open?: boolean; /** * Function to set the state of the popover * @param {boolean | undefined} open the state of the popover * @returns {void} */ setOpen?: Dispatch>; } declare const _Popover: FC; export default _Popover;