type UseIntersectionObserverInit = Pick; type UseIntersectionArgs = { disabled?: boolean; } & UseIntersectionObserverInit & { rootRef?: React.RefObject | null; }; /** @see https://foxact.skk.moe/use-intersection */ declare function useIntersection({ rootRef, rootMargin, disabled }: UseIntersectionArgs): [(element: T | null) => void, boolean, () => void]; export { useIntersection }; export type { UseIntersectionArgs };