import { type BuiltTool, type CredentialProvider } from '@n8n/agents'; import { OutboundHttp } from '@n8n/backend-network'; import type { User } from '@n8n/db'; import type { BuilderCredentialService, BuilderToolsOptions } from './builder-session'; import { CredentialTypes } from '../../../credential-types'; import { CollaborationService } from '../../../collaboration/collaboration.service'; import { CredentialsFinderService } from '@n8n/backend-services'; import { McpRegistryService } from '../../../modules/mcp-registry/registry/mcp-registry.service'; import { NodeTypes } from '../../../node-types'; import { OauthService } from '../../../oauth/oauth.service'; import { AiGatewayService } from '../../../services/ai-gateway.service'; import { AiService } from '../../../services/ai.service'; import { FreeAiCreditsService } from '../../../services/free-ai-credits.service'; import { Telemetry } from '../../../telemetry'; import { AgentConfigService } from '../agent-config.service'; import { AgentCustomToolsService } from '../agent-custom-tools.service'; import { AgentIntegrationPersistenceService } from '../agent-integration-persistence.service'; import { AgentPublishService } from '../agent-publish.service'; import { AgentSkillsService } from '../agent-skills.service'; import { AgentTaskService } from '../agent-task.service'; import { AgentTestRunService } from '../agent-test-run.service'; import { AgentsService } from '../agents.service'; import { BuilderModelLiveLookupService } from './builder-model-live-lookup.service'; import { AgentSkillRefsService } from '../agent-skill-refs.service'; import { AgentSecureRuntime } from '../runtime/agent-secure-runtime'; export interface BuilderTools { json: BuiltTool[]; shared: BuiltTool[]; } export declare class AgentsBuilderToolsService { private readonly agentsService; private readonly agentConfigService; private readonly agentCustomToolsService; private readonly agentIntegrationPersistenceService; private readonly agentSkillsService; private readonly secureRuntime; private readonly builderModelLiveLookupService; private readonly mcpRegistryService; private readonly oauthService; private readonly credentialTypes; private readonly agentTaskService; private readonly agentPublishService; private readonly agentTestRunService; private readonly aiService; private readonly aiGatewayService; private readonly outboundHttp; private readonly nodeTypes; private readonly freeAiCreditsService; private readonly telemetry; private readonly collaborationService; private readonly agentSkillRefs; private readonly credentialsFinderService; constructor(agentsService: AgentsService, agentConfigService: AgentConfigService, agentCustomToolsService: AgentCustomToolsService, agentIntegrationPersistenceService: AgentIntegrationPersistenceService, agentSkillsService: AgentSkillsService, secureRuntime: AgentSecureRuntime, builderModelLiveLookupService: BuilderModelLiveLookupService, mcpRegistryService: McpRegistryService, oauthService: OauthService, credentialTypes: CredentialTypes, agentTaskService: AgentTaskService, agentPublishService: AgentPublishService, agentTestRunService: AgentTestRunService, aiService: AiService, aiGatewayService: AiGatewayService, outboundHttp: OutboundHttp, nodeTypes: NodeTypes, freeAiCreditsService: FreeAiCreditsService, telemetry: Telemetry, collaborationService: CollaborationService, agentSkillRefs: AgentSkillRefsService, credentialsFinderService: CredentialsFinderService); private withConfigMutationMarker; private withConfigSnapshotOnResume; private getEditorLockFailure; getTools(agentId: string, projectId: string, credentialProvider: CredentialProvider, credentialService: BuilderCredentialService, user: User, options?: BuilderToolsOptions): BuilderTools; getToolsForResolvedTarget(resolveTargetAgentId: (pinnedAgentId?: string) => Promise, projectId: string, credentialProviderFor: (agentId: string) => CredentialProvider, credentialService: BuilderCredentialService, user: User, options?: BuilderToolsOptions): BuiltTool[]; private getJsonTools; private createVerifyMcpServerTool; private createFinishSetupTool; private createConfigureChannelTool; getCredentialDefaults(agentId: string, projectId: string): Promise<{ channelCredentialIds: string[]; managedCredentialAvailable: boolean; }>; private listChannelCredentialIds; private createLlmTool; private buildCallAgentTool; private runDraftTest; private buildUnpublishAgentTool; private buildPublishAgentTool; private buildPatchConfigTool; private buildWriteConfigTool; private getSharedTools; private buildCreateTasksTool; private buildUpdateTaskTool; private buildUpdateSkillTool; private buildCreateSkillsTool; private buildCustomToolTool; private getConfigSnapshot; private applyCredentialToMcpServer; private applyFinishSetupToConfig; private getFreshConfigSnapshot; private validateBuilderConfig; private saveBuilderConfig; private writeBuilderConfig; private patchBuilderConfig; private applyConfigPatch; private formatDraftTestResult; private cancelUnsupportedDraftTest; private createModelLookup; }