interface UseIntersectionState { inView: boolean; entry?: IntersectionObserverEntry; } interface UseIntersectionOptions extends IntersectionObserverInit { triggerOnce?: boolean; } declare type UseIntersectionReturn = [(node: Element) => void, UseIntersectionState]; /** * Hook to track the visibility of a functional component based on IntersectionVisible Observer. * * @see https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API */ export declare const useIntersection: (options?: UseIntersectionOptions) => UseIntersectionReturn; export {};