## API Report File for "@rushstack/stream-collator"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

import { ITerminalChunk } from '@rushstack/terminal';
import { TerminalWritable } from '@rushstack/terminal';

// @beta @deprecated
export class CollatedTerminal {
    constructor(destination: TerminalWritable);
    // (undocumented)
    writeChunk(chunk: ITerminalChunk): void;
    // (undocumented)
    writeStderrLine(message: string): void;
    // (undocumented)
    writeStdoutLine(message: string): void;
}

// @beta
export class CollatedWriter extends TerminalWritable {
    constructor(taskName: string, collator: StreamCollator);
    get bufferedChunks(): ReadonlyArray<ITerminalChunk>;
    // @internal (undocumented)
    _flushBufferedChunks(): void;
    get isActive(): boolean;
    onClose(): void;
    onWriteChunk(chunk: ITerminalChunk): void;
    // (undocumented)
    readonly taskName: string;
    // (undocumented)
    readonly terminal: CollatedTerminal;
}

// @beta
export interface IStreamCollatorOptions {
    destination: TerminalWritable;
    onWriterActive?: (writer: CollatedWriter) => void;
}

// @beta
export class StreamCollator {
    constructor(options: IStreamCollatorOptions);
    get activeTaskName(): string;
    get activeWriter(): CollatedWriter | undefined;
    // (undocumented)
    readonly destination: TerminalWritable;
    registerTask(taskName: string): CollatedWriter;
    // (undocumented)
    readonly terminal: CollatedTerminal;
    // @internal (undocumented)
    _writerClose(writer: CollatedWriter, bufferedChunks: ITerminalChunk[]): void;
    get writers(): ReadonlySet<CollatedWriter>;
    // @internal (undocumented)
    _writerWriteChunk(writer: CollatedWriter, chunk: ITerminalChunk, bufferedChunks: ITerminalChunk[]): void;
}

```
