import type { StreamConverter } from '../../format-adapter.js'; import type { ChatStreamChunk } from '../../canonical/types.js'; /** 上游 anthropic SSE -> canonical chat chunk[](有状态) */ export declare class AnthropicUpstreamStream implements StreamConverter { private requestId; private model; transform(sseBlock: string): any[]; flush(): any[]; } /** canonical chat chunk[] -> 客户端 anthropic SSE(有状态) */ export declare class AnthropicDownstreamStream implements StreamConverter { private state; transform(chunk: ChatStreamChunk): string[]; flush(): string[]; } /** 解析一条 openai SSE chunk 文本为 ChatStreamChunk(供 router 上游链路使用) */ export declare function parseOpenAISSEChunkToChat(line: string): ChatStreamChunk | null; //# sourceMappingURL=stream.d.ts.map