import React from 'react'; import { InternalPosition, Offset, PopoverProps } from './interfaces'; export default function usePopoverPosition({ popoverRef, bodyRef, arrowRef, getTrack, triggerClampRef, contentRef, allowScrollToFit, allowVerticalOverflow, preferredPosition, renderWithPortal, keepPosition, hideOnOverscroll, minVisibleBlockSize }: { popoverRef: React.RefObject; bodyRef: React.RefObject; arrowRef: React.RefObject; getTrack: () => null | HTMLElement | SVGElement; contentRef: React.RefObject; triggerClampRef?: React.RefObject; allowScrollToFit?: boolean; allowVerticalOverflow?: boolean; preferredPosition: PopoverProps.Position; renderWithPortal?: boolean; keepPosition?: boolean; hideOnOverscroll?: boolean; minVisibleBlockSize?: number; }): { updatePositionHandler: (onContentResize?: any) => void; popoverStyle: Partial; internalPosition: InternalPosition | null; positionHandlerRef: React.MutableRefObject<() => void>; isOverscrolling: boolean; };