import type { DOMElement } from '../dom.js'; type ViewportEntry = { /** * Whether the element is currently within the terminal viewport */ isVisible: boolean; }; /** * Hook to detect if a component is within the terminal viewport. * * Returns a callback ref and a viewport entry object. * Attach the ref to the component you want to track. */ export declare function useTerminalViewport(): [ ref: (element: DOMElement | null) => void, entry: ViewportEntry ]; export {}; //# sourceMappingURL=use-terminal-viewport.d.ts.map