/** * Width clamp for frames rendered out-of-process by the isolated interactive * engine. * * Remote components ({@link RemoteRenderer}, {@link RemoteComponent}) request a * re-render from the engine child asynchronously and keep returning the last * applied frame until the fresh one arrives. Across a terminal resize this * replays lines wrapped at the previous width; pi-tui's differential renderer * treats any rendered line wider than the terminal as a fatal invariant * violation and crashes the whole TUI (uncaughtException in doRender). * * Clamping the stale frame to the currently requested width keeps every * returned line legal while the engine catches up; the properly re-wrapped * frame replaces the clamped one as soon as it is applied. * * The result is memoized on (frame identity, width) so steady-state renders * cost one identity check and re-scans happen only on resize or frame change. */ export declare class RemoteFrameWidthClamp { private source; private width; private clamped; clamp(lines: string[], width: number): string[]; } //# sourceMappingURL=remote-frame-clamp.d.ts.map