import { type RefObject } from 'react'; /** * Options for IntersectionObserver */ export type UseIntersectionObserverOptions = { freezeOnceVisible?: boolean; } & IntersectionObserverInit; /** * Hook that tracks element intersection with viewport * * @template T - The type of the HTML element * @param options - IntersectionObserver options * @returns Tuple of [ref, isIntersecting] * * @example * ```tsx * const Component = () => { * const [ref, isVisible] = useIntersectionObserver({ threshold: 0.5 }); * return
{isVisible ? 'Visible' : 'Hidden'}
; * }; * ``` */ export declare function useIntersectionObserver(options?: UseIntersectionObserverOptions): [RefObject, boolean]; //# sourceMappingURL=useIntersectionObserver.d.ts.map