import type { CredentialProvider } from '@n8n/agents'; import { type AgentConfigValidationResponse, type AgentIntegrationConfig, type AgentTaskConfig } from '@n8n/api-types'; import { WorkflowRepository } from '@n8n/db'; import { NodeTypes } from '../../node-types'; import { AiGatewayService } from '../../services/ai-gateway.service'; import { AgentDefinitionService } from './agent-definition.service'; import { AgentPolicyService } from './agent-policy.service'; import { AgentSkillRefsService } from './agent-skill-refs.service'; import { type PendingSkillRefs } from './utils/agent-definition'; import type { AgentHistory } from './entities/agent-history.entity'; import type { Agent } from './entities/agent.entity'; import type { AgentSkillRefs } from './json-config/agent-document'; import { ChatIntegrationRegistry } from './integrations/agent-chat-integration'; import { AgentRepository } from './repositories/agent.repository'; type AgentValidationScope = 'runtime' | 'publish'; type TaskBody = AgentTaskConfig; export declare class AgentValidationService { private readonly agentRepository; private readonly definitionService; private readonly nodeTypes; private readonly workflowRepository; private readonly chatIntegrationRegistry; private readonly aiGatewayService; private readonly agentSkillRefs; private readonly agentPolicyService; constructor(agentRepository: AgentRepository, definitionService: AgentDefinitionService, nodeTypes: NodeTypes, workflowRepository: WorkflowRepository, chatIntegrationRegistry: ChatIntegrationRegistry, aiGatewayService: AiGatewayService, agentSkillRefs: AgentSkillRefsService, agentPolicyService: AgentPolicyService); private isAiGatewayModelSupported; validateAgentIsRunnable(agentId: string, projectId: string, credentialProvider: CredentialProvider): Promise<{ missing: string[]; }>; validateAgentConfiguration(agentId: string, projectId: string, credentialProvider: CredentialProvider, scope?: AgentValidationScope): Promise; validateLoadedAgentConfiguration(agent: Agent, projectId: string, credentialProvider: CredentialProvider, scope?: AgentValidationScope, pending?: PendingSkillRefs): Promise; validateAgentEntityConfiguration(agent: Agent, skillRefs: AgentSkillRefs, projectId: string, tasks: ReadonlyMap, credentialProvider: CredentialProvider, scope?: AgentValidationScope): Promise; validateAgentHistoryConfiguration(agentId: string, projectId: string, history: AgentHistory, currentIntegrations: AgentIntegrationConfig[], credentialProvider: CredentialProvider): Promise; private validateDefinition; private runValidation; private collectSkillNameWarnings; private missingConfigIssues; private collectIssues; private prefetchReferenceLookups; private dedupe; private collectCoreIssues; private collectMainCredentialIssues; private collectVertexModelIssues; private collectSubAgentRefIssues; private collectSkillIssues; private collectTaskIssues; private collectVectorStoreIssues; private collectChannelIssues; private collectRestrictedTypeIssues; private collectToolIssues; private collectWorkflowToolIssues; private collectNodeToolIssues; private gatewayCoversNodeToolSlot; private collectMcpServerIssues; private mcpCredentialTypeMatches; private credentialSupportsModel; private findCredentialSafe; private collectAzureEndpointIssues; private collectCustomToolIssues; private collectNodeCredentialIssues; private getVisibleCredentialSlots; } export {};