import { RefObject } from "react"; /** * Detects if a given element is in the viewport. * @param ref - React ref to the element * @param rootMargin - Margin around the root (optional) */ export declare function useOnScreen(ref: RefObject, rootMargin?: string): boolean;