/** Forward-only, request-local references. Never rewrite a previous observation. * Exact string keys verify equality, not just a digest. The budget bounds retained * text and reference metadata; eviction only loses compression opportunities. */ export declare class ResponseDedup { private readonly seen; private bytes; replace(text: string, at: string): string; } /** Only peel the complete, known Codex transport header. Preserve it on every * observation, including exit status. Arbitrary content containing "Output:" * is not a transport envelope and must never be split heuristically. */ export declare function responseEnvelope(text: string): { header: string; body: string; }; /** Patch just one JSON string value, preserving every other lexical byte. An * ambiguous duplicate/nested key is deliberately ineligible. JSON parsing is * used for validation, never to reserialize large integers or unknown metadata. */ export declare function replaceJsonText(text: string, key: 'output' | 'stdout' | 'stderr', value: string): string; /** The actual functions.exec wire payload wraps shell output in JSON with a * changing chunk ID and wall time. Preserve that envelope on every observation. */ export declare function responseJsonEnvelope(text: string): string | undefined; //# sourceMappingURL=response-dedup.d.ts.map