import type { Ref } from 'vue';
interface IntersectionObserverProps {
    target: Ref<Element | null | undefined>;
    root?: Ref<any>;
    onIntersect: IntersectionObserverCallback;
    rootMargin?: string;
    threshold?: number;
}
declare type Nullable<T> = T | null;
export declare function useIntersectionObserver({ target, root, onIntersect, rootMargin, threshold, }: IntersectionObserverProps): {
    observer: Ref<Nullable<IntersectionObserver>, Nullable<IntersectionObserver>>;
    stop: () => void;
};
export {};
