import { default as React } from 'react'; /** * Observe an element and expose the latest IntersectionObserver entry fields. */ export declare function useIntersectionObserver(ref: React.RefObject, { threshold, rootMargin, root }: IntersectionObserverInit): { readonly boundingClientRect: DOMRectReadOnly; readonly intersectionRatio: number; readonly intersectionRect: DOMRectReadOnly; readonly isIntersecting: boolean; readonly rootBounds: DOMRectReadOnly | null; readonly target: Element | null; readonly time: DOMHighResTimeStamp; };