import * as React from 'react'; import { type UseInViewOptions } from 'motion/react'; /** * Options for the useIsInView hook. */ interface IUseIsInViewOptions { /** Enable intersection observer tracking. */ inView?: boolean; /** Only trigger once when element enters viewport. */ inViewOnce?: boolean; /** Root margin for intersection observer. */ inViewMargin?: UseInViewOptions['margin']; } /** * Hook that tracks whether an element is visible in the viewport * using the Intersection Observer API via motion/react. * * @param ref - Forwarded ref to merge with local ref * @param options - InView configuration options * @returns Object with local ref and isInView boolean * * @example * ```tsx * const { ref, isInView } = useIsInView(forwardedRef, { inView: true, inViewOnce: true }); * ``` */ declare function useIsInView(ref: React.Ref, options?: IUseIsInViewOptions): { ref: React.RefObject; isInView: boolean; }; export { useIsInView, type IUseIsInViewOptions }; //# sourceMappingURL=UseIsInView.d.ts.map