/// import type { Writable } from 'stream'; /** Whether a write failed because the terminal went away. */ export declare function isTerminalGone(error: unknown): boolean; /** * Ignore writes that fail because the terminal went away — a detached * `docker run -t`, a dropped SSH session. * * tty writes complete after the call returns, and a stream with no `error` * listener rethrows, so the failure lands as an uncaughtException wherever the * event loop is. Any other stream error is rethrown. */ export declare function tolerateBrokenStdio(streams?: Writable[]): void;