import { Transform, type TransformCallback } from 'node:stream'; export declare const DEFAULT_MAX_JSONL_FRAME_BYTES: number; export declare class FrameTooLargeError extends Error { readonly direction: string; readonly limit: number; readonly code = "DAEMON_FRAME_TOO_LARGE"; constructor(direction: string, limit: number); } export declare class BoundedLineTransform extends Transform { private readonly maxLineBytes; private readonly direction; private bytesSinceNewline; constructor(maxLineBytes?: number, direction?: string); _transform(chunk: Buffer | string, encoding: BufferEncoding, callback: TransformCallback): void; } export declare function assertBoundedSerializedFrame(serializedFrame: string, maxFrameBytes?: number, direction?: string): void;