/**
 * Creates a collector that accumulates data Buffers from a stream up to
 * specified byte and line limits. After either limit is exceeded, further
 * data is ignored.
 */
export declare function createTruncatingCollector(stream: NodeJS.ReadableStream, byteLimit?: number, lineLimit?: number): {
    getString: () => string;
    hit: boolean;
};
