declare type UseIntersectionObserverInit = Pick; declare type UseIntersection = { disabled?: boolean; } & UseIntersectionObserverInit; declare function useIntersection({ rootMargin, disabled }: UseIntersection): [(element: T | null) => void, boolean]; export default useIntersection;