import { type ChatHubUpdateAgentRequest, type ChatHubCreateAgentRequest, type ChatHubAgentDto, type ChatModelDto } from '@n8n/api-types'; import { Logger } from '@n8n/backend-common'; import type { EntityManager, User } from '@n8n/db'; import type { ChatHubAgent } from './chat-hub-agent.entity'; import { ChatHubAgentRepository } from './chat-hub-agent.repository'; import { ChatHubCredentialsService } from './chat-hub-credentials.service'; import { ChatHubAttachmentService } from './chat-hub.attachment.service'; import { ChatHubWorkflowService } from './chat-hub-workflow.service'; import { WorkflowExecutionService } from '../../workflows/workflow-execution.service'; import { ChatHubSettingsService } from './chat-hub.settings.service'; import { ChatHubToolService } from './chat-hub-tool.service'; import { ChatHubExecutionService } from './chat-hub-execution.service'; import { DynamicNodeParametersService } from '../../services/dynamic-node-parameters.service'; export declare class ChatHubAgentService { private readonly logger; private readonly chatAgentRepository; private readonly chatHubCredentialsService; private readonly chatHubAttachmentService; private readonly chatHubWorkflowService; private readonly chatHubExecutionService; private readonly workflowExecutionService; private readonly chatHubSettingsService; private readonly dynamicNodeParametersService; private readonly chatHubToolService; constructor(logger: Logger, chatAgentRepository: ChatHubAgentRepository, chatHubCredentialsService: ChatHubCredentialsService, chatHubAttachmentService: ChatHubAttachmentService, chatHubWorkflowService: ChatHubWorkflowService, chatHubExecutionService: ChatHubExecutionService, workflowExecutionService: WorkflowExecutionService, chatHubSettingsService: ChatHubSettingsService, dynamicNodeParametersService: DynamicNodeParametersService, chatHubToolService: ChatHubToolService); getAgentsByUserIdAsModels(userId: string): Promise; convertAgentEntityToModel(agent: ChatHubAgent): ChatModelDto; getAgentsByUserId(userId: string): Promise; getAgentById(id: string, userId: string, trx?: EntityManager): Promise; getAgentByIdAsDto(id: string, userId: string): Promise; createAgent(user: User, data: ChatHubCreateAgentRequest): Promise; updateAgent(id: string, user: User, updates: ChatHubUpdateAgentRequest): Promise; private toDto; deleteAgent(id: string, userId: string): Promise; private ensureSemanticSearchOptions; private insertEmbeddings; deleteAllEmbeddingsForUser(userId: string): Promise; private deleteEmbeddingsByAgentId; private deleteEmbeddingsByKnowledgeId; addFilesToAgent(agentId: string, user: User, files: Express.Multer.File[]): Promise; private runIndexingInBackground; private updateKnowledgeItemStatuses; deleteAgentFile(agentId: string, user: User, fileKnowledgeId: string): Promise; private prepareFilesForIndexing; }