/**
 * Chat协议事件编排器
 * 负责严格的事件时序组合：role → content OR tool_calls(name → args.delta*) → finish_reason → done
 */
import type { ChatCompletionResponse, ChatReasoningMode, ChatSseEvent } from '../../types/index.js';
import type { ChatEventGeneratorContext, ChatEventGeneratorConfig } from '../event-generators/chat.js';
export interface ChatSequencerConfig extends ChatEventGeneratorConfig {
    includeSequenceNumbers: boolean;
    enableDelay: boolean;
    validateOrder: boolean;
    reasoningMode?: ChatReasoningMode;
    reasoningTextPrefix?: string;
}
export declare const DEFAULT_CHAT_SEQUENCER_CONFIG: ChatSequencerConfig;
/**
 * 主编排器：将Chat响应转换为有序的SSE事件流
 */
export declare function sequenceChatResponse(response: ChatCompletionResponse, context: ChatEventGeneratorContext, config?: ChatSequencerConfig): AsyncGenerator<ChatSseEvent>;
/**
 * 序列化Chat请求（用于请求→SSE转换）
 */
export declare function sequenceChatRequest(request: any, context: ChatEventGeneratorContext, config?: ChatSequencerConfig): AsyncGenerator<ChatSseEvent>;
/**
 * 创建Chat事件序列化器工厂
 */
export declare function createChatSequencer(config?: Partial<ChatSequencerConfig>): {
    /**
     * 序列化响应
     */
    sequenceResponse(response: ChatCompletionResponse, model: string, requestId: string): AsyncGenerator<ChatSseEvent, void, any>;
    /**
     * 序列化请求
     */
    sequenceRequest(request: any, model: string, requestId: string): AsyncGenerator<ChatSseEvent, void, any>;
    /**
     * 获取当前配置
     */
    getConfig(): ChatSequencerConfig;
};
