export interface UseScrollAnimationOptions { /** Intersection threshold (0-1). Default: 0.1 */ threshold?: number; /** Root margin for intersection observer */ rootMargin?: string; /** Whether to trigger only once. Default: true */ triggerOnce?: boolean; } export interface UseScrollAnimationResult { /** Ref to attach to the target element */ ref: React.RefObject; /** Whether the element is visible in viewport */ isVisible: boolean; } /** * Scroll-triggered animation hook using IntersectionObserver. * Returns a ref and visibility state for triggering animations when elements enter viewport. * * @param options - Configuration options for the intersection observer * @returns Object containing ref and isVisible state * * @example * ```tsx * const { ref, isVisible } = useScrollAnimation({ threshold: 0.2 }); * return ( * * Content * * ); * ``` */ export declare const useScrollAnimation: (options?: UseScrollAnimationOptions) => UseScrollAnimationResult; //# sourceMappingURL=useScrollAnimation.d.ts.map