import { Instance, Props as TippyProps } from 'tippy.js';
import { UsePopoverProps } from './usePopover.types';
/**
 * Controls the logic of instantiating and managing a tippy instance.
 * Takes multiple configuration props that control closing, placement or behavior.
 * Exposes functions used for ref callbacks on consuming components, programatic open/close methods and properties.
 */
export default function usePopover(props?: UsePopoverProps): {
    close: () => void | undefined;
    instance: Instance<TippyProps> | null;
    isOpen: boolean;
    open: () => void | undefined;
    popper: HTMLElement | null;
    reference: HTMLElement | null;
    setPopper: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
    setReference: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
};
export type UsePopoverType = ReturnType<typeof usePopover>;
//# sourceMappingURL=usePopover.d.ts.map