export interface UseInViewOptions { /** Stay true once the element has been seen (default), for work done once. */ once?: boolean; /** How far outside the viewport counts as in view, as a CSS margin. */ rootMargin?: string; } /** * Whether an element is on screen, through an `IntersectionObserver`: hand * the returned ref to the element, and start what it needs — an image, a * font, a read — once `inView` turns true. * * Where the browser has no observer (a test, an old engine) the element * counts as in view at once, so the work runs rather than never. */ export declare function useInView(options?: UseInViewOptions): [(node: T | null) => void, boolean]; export default useInView;