import type { AIMessageContent, ChatRequestParams, ChatServiceConfig } from '../type'; export interface ILLMService { /** * 处理批量请求(非流式) */ handleBatchRequest(params: ChatRequestParams, config: ChatServiceConfig): Promise; /** * 处理流式请求 */ handleStreamRequest(params: ChatRequestParams, config: ChatServiceConfig): Promise; } /** * Enhanced LLM Service with error handling and connection management */ export declare class LLMService implements ILLMService { private sseClient; private batchClient; private isDestroyed; private logger; /** * 处理批量请求(非流式) */ handleBatchRequest(params: ChatRequestParams, config: ChatServiceConfig): Promise; /** * 处理流式请求 */ handleStreamRequest(params: ChatRequestParams, config: ChatServiceConfig): Promise; /** * 关闭所有客户端连接 */ closeConnect(): void; /** * 获取连接统计 */ getSSEStats(): { id: string; status: string; info: any; } | null; /** * 销毁服务 */ destroy(): Promise; }