export type StdioLineHandler = (stream: "stdout" | "stderr", line: string) => void; /** * Tee `process.stdout` / `process.stderr`: every write still reaches the real * stream (the terminal is untouched), and each *completed* line is also handed to * `onLine`. Output is line-buffered — a partial write is held until its newline — * and a trailing partial line is flushed on restore so nothing is dropped. * * Entirely contained in this process: the returned function reinstates the * original `write`s, leaving no trace of the wrapping behind. */ export declare function teeStdio(onLine: StdioLineHandler): () => void; //# sourceMappingURL=stdio-tee.d.ts.map