import { HTMLAttributes, Ref, RefObject } from 'react'; import { A11yPortal, A11yPortalOptions } from '../portal'; import { A11yOverlayRef } from '../types'; export interface A11yPopoverOptions extends A11yPortalOptions { closeOnScroll?: boolean; } export interface A11yPopover extends Omit, 'portalProps' | 'portalRef'> { popoverProps: HTMLAttributes; popoverRef: RefObject; } export declare const usePopover: (options: A11yPopoverOptions, ref: Ref>) => A11yPopover;