declare type UseIntersectionObserverInit = Pick; declare type UseIntersection = { disabled?: boolean; } & UseIntersectionObserverInit; /** * Cherry-picked from https://github.com/vercel/next.js/blob/canary/packages/next/client/use-intersection.tsx */ declare const useIntersection: ({ rootMargin, disabled }: UseIntersection) => [(element: T | null) => void, boolean]; export default useIntersection;