Files
2026-06-13 17:36:44 -07:00

23 lines
683 B
TypeScript

import { Writable } from 'node:stream';
import Rx from 'rxjs';
import { Command } from './command.js';
/**
* Class responsible for actually writing output onto a writable stream.
*/
export declare class OutputWriter {
private readonly outputStream;
private readonly group;
readonly buffers: string[][];
activeCommandIndex: number;
readonly error: Rx.Observable<unknown>;
private get errored();
constructor({ outputStream, group, commands, }: {
outputStream: Writable;
group: boolean;
commands: Command[];
});
private ensureWritable;
write(command: Command | undefined, text: string): void;
private flushBuffer;
}