/** * Retain the newest bytes of one command-output stream under a hard bound. * * Bytes stay undecoded until the command closes, so a UTF-8 code point split * across ordinary stream chunks is not corrupted. The backing store grows * geometrically up to the configured cap and becomes a ring only when output * crosses it; no incoming chunk is retained by reference. */ export declare class BoundedTailCapture { private readonly capBytes; private storage; private start; private length; private lostBytes; constructor(capBytes: number); push(chunk: Buffer): void; /** Ordered copy of the retained raw bytes. */ get bytes(): Buffer; get text(): string; get truncated(): boolean; /** Diagnostic invariant used by the internal killing observers. */ get retainedBytes(): number; /** Diagnostic invariant used by the internal killing observers. */ get allocatedBytes(): number; private ensureCapacity; } //# sourceMappingURL=output.d.ts.map