import { RefObject } from "react";
/**
 * if leave option is true then callback will be called when the target leaves the viewport
 * otherwise when it enters the viewport
 * @param target
 * @param cb
 * @param opts
 */
export declare function useIntersectionObserver(target: RefObject<HTMLElement | null | undefined>, cb: (entry: IntersectionObserverEntry) => void, opts?: {
    leave?: boolean;
    threshold?: number;
    deps?: any[];
}): void;
//# sourceMappingURL=useIntersectionObserver.d.ts.map