import { DocometBuffer } from './docomet-buffer.js'; import { DocometInspectableObjectClass } from '../docomet-inspectable.js'; import type { Readable } from 'node:stream'; /** * Stream * @see {@link DocometBuffer} * @see {@link DocometEncoding} */ export declare class DocometStream extends DocometInspectableObjectClass { /** * Converts stream to buffer * @param stream Readable stream * @returns Buffer */ static toBufferAsync(stream: Readable): Promise; /** * Reads line from stream * @param stream Readable stream * @param encoding Encoding of stream * @returns Async generator of lines */ static readLineAsync(stream: Readable, encoding?: string): AsyncGenerator; /** * Reads all lines from stream * @param stream Readable stream * @param encoding Encoding of stream * @returns Array of lines */ static readLinesAsync(stream: Readable, encoding?: string): Promise; /** * Reads entire stream as string * @param stream Readable stream * @returns String content */ static readAsync(stream: Readable): Promise; }