import { type MaybeRef } from './_shared'; import type { Ref } from '@stacksjs/stx'; /** * Reactive IntersectionObserver. * Observes the target element and calls the callback when intersection changes. * * @param target - The element to observe (or a Ref to one) * @param callback - IntersectionObserverCallback * @param options - IntersectionObserverInit options * @returns isSupported ref and stop function */ export declare function useIntersectionObserver(target: MaybeRef, callback: IntersectionObserverCallback, options?: IntersectionObserverInit): UseIntersectionObserverReturn; export declare interface UseIntersectionObserverReturn { isSupported: Ref stop: () => void }