import { AgentChat, AgentProcessSummary, AgentArtifact, SendMessagePayload, StreamChunk, MessagesPage } from '../types'; import { GetMessagesOptions, AgentTransport, ActivityTreeNode, UpsertAgentPreferencesRequest, UpsertAgentPreferencesResponse, UpsertAgentPreferencesBatchRequest, UpsertAgentPreferencesBatchResponse } from './AgentTransport'; import { Activity, AgentConfiguration, ActivitySummary, ActivitySummaryParams, AgentMessage, AgentToolCallStatus, DataWithCursor, MultiUserMessagePayload, MultiUserMessageResponse, SortOrder, ModelOption } from '@multiplayer-app/ai-agent-types'; import { ProxyTransportConfig } from '../../config/types'; export declare class ProxyTransport implements AgentTransport { private config; private streamControllers; private socketId?; constructor(config: ProxyTransportConfig); updateConfig(next: ProxyTransportConfig): void; /** * Set the Socket.IO socket ID to exclude from Socket.IO updates */ setSocketId(socketId: string | undefined): void; private withHeaders; private formatHttpError; private request; sendMessage(payload: SendMessagePayload): Promise; streamMessage(payload: SendMessagePayload, onChunk: (chunk: StreamChunk) => void, options?: { streamKey?: string; }): Promise<{ id: string; messages: AgentMessage[]; } | void>; sendMultiUserMessage(payload: MultiUserMessagePayload): Promise; cancelStream(streamKey?: string): void; cancelHttpStream(streamKey?: string): void; listChats(params?: { contextKey?: string; skip?: number; limit?: number; userId?: string; multiUser?: boolean; sortField?: string; sortOrder?: 'asc' | 'desc'; }): Promise>; getChat(chatId: string): Promise; getMessages(chatId: string, options?: GetMessagesOptions): Promise; deleteChat(chatId: string): Promise; listAgents(): Promise; controlAgent(options: { id: string; action: 'stop' | 'resume' | 'retry'; }): Promise; listArtifacts(chatId: string): Promise; listActivities(params?: { groupId?: string; parentId?: string; sourceType?: string; skip?: number; limit?: number; sort?: { field: string; order: SortOrder; }; from?: string; to?: string; tenant?: Record | { all?: boolean; }; ownerId?: string; }): Promise>; listActivitySourceTypes(params?: { groupId?: string; parentId?: string; from?: string; to?: string; tenant?: Record | { all?: boolean; }; ownerId?: string; }): Promise; getActivity(activityId: string): Promise; getActivitySummary(params?: ActivitySummaryParams): Promise; recordToolCallAction(chatId: string, input: { toolCallId: string; action: string; data?: Record; systemMessage?: string; }, options?: { excludeSocketId?: boolean; }): Promise | void>; updateToolCall(input: { chatId: string; messageId: string; toolCallId: string; input?: Record; output?: Record; status?: AgentToolCallStatus; }, options?: { excludeSocketId?: boolean; }): Promise; generateTitle(input: { content: string; contextKey: string; userId?: string; strategy?: 'local' | 'llm'; }): Promise; listModels(): Promise; listAgentConfigurations(contextKey?: string): Promise; upsertAgentPreferences(agentName: string, input: UpsertAgentPreferencesRequest): Promise; upsertAgentPreferencesBatch(input: UpsertAgentPreferencesBatchRequest): Promise; } //# sourceMappingURL=ProxyTransport.d.ts.map