/**
 * Responses协议事件序列化适配器
 * 将内部ResponsesSseEvent对象转换为真实的SSE wire格式
 */
import type { ResponsesSseEvent } from '../../types/responses-types.js';
import type { EventSerializer } from './base-serializer.js';
/**
 * Responses协议SSE事件序列化器
 * 负责将内部事件对象转换为符合LMStudio/官方SDK习惯的SSE格式
 */
export declare class ResponsesEventSerializer implements EventSerializer<ResponsesSseEvent> {
    /**
     * 将Responses事件序列化为SSE wire格式
     */
    serializeToWire(event: ResponsesSseEvent): string;
    /**
     * 从SSE wire格式反序列化为Responses事件
     */
    deserializeFromWire(wireData: string): ResponsesSseEvent;
    /**
     * 验证SSE wire格式
     */
    validateWireFormat(wireData: string): boolean;
    private decorate;
    /**
     * 序列化response.created事件
     * 格式: event: response.created\ndata: {"response": {...}}\n\n
     */
    private serializeResponseCreated;
    /**
     * 序列化response.in_progress事件
     */
    private serializeResponseInProgress;
    /**
     * 序列化response.reasoning_text.delta事件
     */
    private serializeReasoningTextDelta;
    /**
     * 序列化response.reasoning_text.done事件
     */
    private serializeReasoningTextDone;
    /**
     * 序列化response.content_part.added事件
     */
    private serializeContentPartAdded;
    /**
     * 序列化response.content_part.done事件
     */
    private serializeContentPartDone;
    /**
     * 序列化response.output_item.added事件
     */
    private serializeOutputItemAdded;
    /**
     * 序列化response.output_item.done事件
     */
    private serializeOutputItemDone;
    /**
     * 序列化response.output_text.delta事件
     */
    private serializeOutputTextDelta;
    /**
     * 序列化response.output_text.done事件
     */
    private serializeOutputTextDone;
    /**
     * 序列化response.function_call_arguments.delta事件
     */
    private serializeFunctionCallArgumentsDelta;
    /**
     * 序列化response.function_call_arguments.done事件
     */
    private serializeFunctionCallArgumentsDone;
    /**
     * 序列化response.required_action事件
     */
    private serializeRequiredAction;
    /**
     * 序列化response.completed事件
     */
    private serializeResponseCompleted;
    /**
     * 序列化response.done事件
     */
    private serializeResponseDone;
    /**
     * 序列化response.error事件
     */
    private serializeResponseError;
    /**
     * 序列化response.cancelled事件
     */
    private serializeResponseCancelled;
    /**
     * 构建标准SSE事件格式
     */
    private buildSSEEvent;
    /**
     * 创建标准response.created事件
     */
    static createResponseCreatedEvent(response: any, timestamp?: number): ResponsesSseEvent;
    /**
     * 创建标准response.in_progress事件
     */
    static createResponseInProgressEvent(timestamp?: number): ResponsesSseEvent;
    /**
     * 创建标准response.completed事件
     */
    static createResponseCompletedEvent(responseId: string, status: string, usage?: any, timestamp?: number): ResponsesSseEvent;
    /**
     * 创建标准response.required_action事件
     */
    static createRequiredActionEvent(toolCalls: any[], timestamp?: number): ResponsesSseEvent;
    /**
     * 创建标准response.done事件
     */
    static createResponseDoneEvent(requestId: string, totalEvents: number, timestamp?: number): ResponsesSseEvent;
    /**
     * 创建标准response.error事件
     */
    static createResponseErrorEvent(error: Error, requestId: string, timestamp?: number): ResponsesSseEvent;
    private buildEventPayload;
    /**
     * 解析 wire 中的时间戳字符串
     */
    private parseTimestamp;
}
/**
 * 默认Responses事件序列化器实例
 */
export declare const defaultResponsesEventSerializer: ResponsesEventSerializer;
