import { RefObject } from "react"; interface Args extends IntersectionObserverInit { elementRef: RefObject; freezeOnceVisible?: boolean; disable?: boolean; } declare type ReturnType = [boolean, IntersectionObserverEntry | undefined]; declare function useIntersectionObserver({ elementRef, threshold, root, rootMargin, freezeOnceVisible, disable, }: Args): ReturnType; export default useIntersectionObserver;