import { type DependencyList, type RefObject } from 'react'; export interface UseIntersectionOptions extends IntersectionObserverInit { /** Dependencies that triggers checking ref and recreating observer. */ extraDeps?: DependencyList; } /** * Rect hook of using IntersectionObserver on element. * @param ref Ref with element. * @param callback Observer callback. * @param options Observe options. */ export declare function useIntersection(ref: RefObject | RefObject | RefObject, callback: (entry: IntersectionObserverEntry) => void, { extraDeps, ...options }?: UseIntersectionOptions): void;