/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ /** * Repaints from a clean screen when the terminal changes width. * * A live region is erased by walking the cursor up as many lines as were * written. Narrowing the window invalidates that count before it is used: the * terminal has already reflowed each of those lines into two rows, so the walk * covers half the frame and leaves the top half stranded — one orphaned copy * per resize, stacking up above the run. * * Height changes need none of this. Nothing reflows, the line count still * holds, and the renderer's own full clear covers a frame that no longer fits. * So this fires on width alone, and the screen is left intact for the resize * that does not break it. */ export declare function useRepaintOnResize(columns: number): void;