import { RefObject } from 'react'; declare type Props = { ref: RefObject; onIntersect: IntersectionObserverCallback; threshold?: number; rootMargin?: string; }; declare const useIntersectionObserver: ({ ref, onIntersect, threshold, rootMargin, }: Props) => void; export default useIntersectionObserver;