import type { Readable } from 'node:stream'; export declare const WRAP_FRAME_BYTES: number; export type FrameMode = 'unknown' | 'ndjson' | 'lsp'; /** Incremental, bounded framing. Raw JSON bodies are retained for transparent forwarding. */ export declare class WrapFrames { mode: FrameMode; private buf; constructor(mode?: FrameMode); push(chunk: Buffer): string[]; end(): string[]; } export declare function readFrames(stream: Readable, frames: WrapFrames, onBody: (body: string) => void, onError: (e: unknown) => void, onEnd: () => void): void; //# sourceMappingURL=wrap-wire.d.ts.map