/**
 * Narrow repair for GitHub Copilot Anthropic Messages SSE streams that carry a
 * complete Anthropic turn but omit the required terminal `message_stop` event.
 *
 * The wrapper is deliberately conservative: it is only installed for Copilot
 * `/v1/messages` event streams, passes original SSE frames through unchanged,
 * and appends/inserts a single synthetic `message_stop` only after observing the
 * same terminal evidence Anthropic's parser requires for a complete message.
 */
export declare const COPILOT_ANTHROPIC_SYNTHETIC_MESSAGE_STOP_EVENT = "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n";
/**
 * Wrap a Copilot Anthropic Messages SSE byte stream and repair one narrow class
 * of provider truncation: missing `message_stop` after a fully closed message.
 * Original SSE frames are emitted unchanged; the only possible mutation is one
 * synthetic terminal event at clean EOF or immediately before `[DONE]`.
 */
export declare function createCopilotAnthropicMessagesSseRepairStream(source: ReadableStream<Uint8Array>): ReadableStream<Uint8Array>;
/**
 * Scope the Anthropic SSE repair to GitHub Copilot `/v1/messages` event streams
 * with a body. All other responses are returned as the original instance.
 */
export declare function maybeRepairCopilotAnthropicMessagesResponse(url: string | undefined, response: Response): Response;
//# sourceMappingURL=copilot-anthropic-sse-repair.d.ts.map