/** * Escapes raw U+2028 / U+2029 on a Codex child's stdout before the SDK's * readline-based JSONL parser consumes it. * * Node's readline splits lines on U+2028 (LINE SEPARATOR) and U+2029 * (PARAGRAPH SEPARATOR) in addition to \n and \r. The Codex CLI embeds raw * separator characters from tool output into JSON event lines without * escaping them, so the SDK's readline splits a single JSON event into * fragments and `JSON.parse` fails with "Failed to parse item:". * * Within a JSONL event line, U+2028 / U+2029 can only appear inside string * literals, where the six-character escapes \u2028/\u2029 parse back to the * identical code points — the replacement never changes the JSON value. */ import { Transform } from 'node:stream'; import type { ChildProcess } from 'node:child_process'; export declare function createJsonLineSeparatorEscapeStream(): Transform; export declare function escapeChildStdoutLineSeparators(child: ChildProcess): void; //# sourceMappingURL=json-line-separator-stream.d.ts.map