import type { AgentSessionStopResponse } from '@n8n/api-types'; import { ExecutionsConfig } from '@n8n/config'; import { type PubSubCommandMap } from '@n8n/decorators'; import { Publisher } from '@n8n/backend-services'; import { AgentExecutionThreadRepository } from './repositories/agent-execution-thread.repository'; import { AgentExecutionService } from './agent-execution.service'; import { AgentChatExecutionService } from './agent-chat-execution.service'; import { AgentMessageQueueService } from './agent-message-queue.service'; import { AgentQueuedTestStreamService } from './agent-queued-test-stream.service'; import { AgentChatAttachmentService } from './agent-chat-attachment.service'; import { SystemAgentRegistry } from './system-agents/system-agent-registry'; export declare class AgentSessionStopService { private readonly executionService; private readonly messageQueue; private readonly publisher; private readonly executionsConfig; private readonly systemAgents; private readonly chatExecutionService; private readonly queuedStreams; private readonly attachments; private readonly threads; constructor(executionService: AgentExecutionService, messageQueue: AgentMessageQueueService, publisher: Publisher, executionsConfig: ExecutionsConfig, systemAgents: SystemAgentRegistry, chatExecutionService: AgentChatExecutionService, queuedStreams: AgentQueuedTestStreamService, attachments: AgentChatAttachmentService, threads: AgentExecutionThreadRepository); stopSession(projectId: string, agentId: string, threadId: string, userId: string): Promise; stopProjectSessions(projectId: string): Promise; onStopSession({ agentId, threadId, executionIds, queueIds, }: PubSubCommandMap['stop-agent-session']): void; }