import { type AgentBackgroundJobsResponse, AgentChatCancelDto, AgentChatMessageDto, type AgentChatMessagesResponse, AgentChatQueueReorderDto, type AgentChatQueueResponse, AgentChatQueueSteerDto, AgentChatQueueUpdateDto, AgentChatResumeDto, type AgentThreadUsageResponse, ListSystemAgentThreadsQueryDto, RenameSystemAgentThreadDto, SystemAgentChatQueryDto, type SystemAgentThreadSummary, type SystemAgentThreadsResponse } from '@n8n/api-types'; import type { AuthenticatedRequest } from '@n8n/db'; import type { Response } from 'express'; import { AgentChatAttachmentService } from '../agent-chat-attachment.service'; import { AgentChatExecutionService } from '../agent-chat-execution.service'; import { AgentChatRelayService } from '../agent-chat-relay.service'; import { AgentExecutionOrchestratorService } from '../agent-execution-orchestrator.service'; import { AgentMessageQueueService } from '../agent-message-queue.service'; import type { FlushableResponse } from '../agent-sse-stream'; import { N8NCheckpointStorage } from '../integrations/n8n-checkpoint-storage'; import { N8nMemory } from '../integrations/n8n-memory'; import { SystemAgentExecutionService } from './system-agent-execution.service'; export declare class SystemAgentChatController { private readonly systemAgents; private readonly chatRelay; private readonly messageQueue; private readonly chatExecutionService; private readonly orchestrator; private readonly checkpointStorage; private readonly attachments; private readonly memory; constructor(systemAgents: SystemAgentExecutionService, chatRelay: AgentChatRelayService, messageQueue: AgentMessageQueueService, chatExecutionService: AgentChatExecutionService, orchestrator: AgentExecutionOrchestratorService, checkpointStorage: N8NCheckpointStorage, attachments: AgentChatAttachmentService, memory: N8nMemory); chat(req: AuthenticatedRequest, res: FlushableResponse, agentId: string, payload: AgentChatMessageDto, { projectId }: SystemAgentChatQueryDto): Promise; listThreads(req: AuthenticatedRequest, _res: Response, agentId: string, { limit, cursor, search }: ListSystemAgentThreadsQueryDto): Promise; getThread(req: AuthenticatedRequest<{ agentId: string; threadId: string; }>): Promise; renameThread(req: AuthenticatedRequest, _res: Response, agentId: string, threadId: string, payload: RenameSystemAgentThreadDto): Promise<{ success: boolean; }>; chatResume(req: AuthenticatedRequest, res: FlushableResponse, agentId: string, payload: AgentChatResumeDto): Promise; cancelChatExecution(req: AuthenticatedRequest, _res: Response, agentId: string, threadId: string, executionId: string, payload?: AgentChatCancelDto): Promise<{ cancelRequested: boolean; }>; cancelChatRun(req: AuthenticatedRequest, _res: Response, agentId: string, runId: string, payload?: AgentChatCancelDto): Promise<{ cancelled: boolean; }>; deleteChatThread(req: AuthenticatedRequest, _res: Response, agentId: string, threadId: string): Promise<{ success: boolean; }>; getChatMessages(req: AuthenticatedRequest<{ agentId: string; threadId: string; }>): Promise; getChatAttachment(req: AuthenticatedRequest<{ agentId: string; attachmentId: string; }>, res: Response): Promise; getBackgroundJobs(req: AuthenticatedRequest<{ agentId: string; threadId: string; }>): Promise; getUsage(req: AuthenticatedRequest<{ agentId: string; threadId: string; }>): Promise; getQueuedMessages(req: AuthenticatedRequest<{ agentId: string; threadId: string; }>): Promise; updateQueuedMessage(req: AuthenticatedRequest<{ agentId: string; threadId: string; queueId: string; }>, _res: Response, payload: AgentChatQueueUpdateDto): Promise; reorderQueuedMessage(req: AuthenticatedRequest<{ agentId: string; threadId: string; queueId: string; }>, _res: Response, payload: AgentChatQueueReorderDto): Promise; removeQueuedMessage(req: AuthenticatedRequest<{ agentId: string; threadId: string; queueId: string; }>): Promise<{ removed: boolean; }>; steerQueuedMessage(req: AuthenticatedRequest<{ agentId: string; threadId: string; queueId: string; }>, _res: Response, payload: AgentChatQueueSteerDto): Promise; private usableQueueThread; private queueScope; }