import { type AgentChatAttachmentPayload, type AgentSseEvent } from '@n8n/api-types'; import type { Response } from 'express'; import { AgentChatAttachmentService } from './agent-chat-attachment.service'; import { AgentMessageQueueService } from './agent-message-queue.service'; import { AgentQueuedTestStreamService } from './agent-queued-test-stream.service'; import { type FlushableResponse } from './agent-sse-stream'; import type { AgentChatAttachment } from './entities/agent-chat-attachment.entity'; import type { StoredAttachmentRef } from './types/agent-chat-attachment'; export type AgentChatStream = ReturnType; export declare class AgentChatRelayService { private readonly messageQueue; private readonly queuedPreviewStreams; private readonly agentChatAttachmentService; constructor(messageQueue: AgentMessageQueueService, queuedPreviewStreams: AgentQueuedTestStreamService, agentChatAttachmentService: AgentChatAttachmentService); createChatStream(res: FlushableResponse): { send: (event: AgentSseEvent) => void; onExecutionStarted: (id: string, sessionId: string, inputMessageIds: string[]) => void; onChunk: (chunk: import("./types/agent-steering").AgentExecutionStreamChunk) => void; close: () => void; }; relayResume(res: FlushableResponse, resume: (stream: AgentChatStream) => Promise): Promise; storeChatAttachments(params: { attachments: AgentChatAttachmentPayload[] | undefined; agentId: string; projectId: string; threadId: string; resourceId: string; source?: string; }): Promise; relayQueuedMessage(res: FlushableResponse, accept: (send: (event: AgentSseEvent) => void, abortSignal: AbortSignal) => Promise[0] | undefined>): Promise; relayQueuedStop(res: FlushableResponse, threadId: string, request: (onQueued: (id: string) => void) => Promise): Promise; streamAttachment(attachment: AgentChatAttachment, res: Response): Promise; }