import { type RefObject } from 'react'; /** Whether the element has come within two screens of view, which it then stays: for work that * is only worth doing for what a reader is about to see, such as loading a summary. The margin * grows only the root, so it goes on the box the element scrolls in, which would clip it first. */ export declare function useNearViewport(ref: RefObject): boolean;