import type { BuiltTool, CredentialProvider } from '@n8n/agents'; import type { User } from '@n8n/db'; import { CredentialsService } from '../../../credentials/credentials.service'; import type { AgentCredentialProvider } from '../agent-credential-provider.contracts'; import { AgentSkillRefsService } from '../agent-skill-refs.service'; import { AgentValidationService } from '../agent-validation.service'; import { AgentsSettingsService } from '../agents-settings.service'; import { AgentsService } from '../agents.service'; import { N8nMemory } from '../integrations/n8n-memory'; import { AgentThreadRepository } from '../repositories/agent-thread.repository'; import { AgentsBuilderToolsService } from './agents-builder-tools.service'; import type { BuilderCredentialService, BuilderToolsOptions } from './builder-session'; export declare class AgentsBuilderService { private readonly agents; private readonly tools; private readonly memory; private readonly threads; private readonly credentials; private readonly settings; private readonly validation; private readonly skillRefs; constructor(agents: AgentsService, tools: AgentsBuilderToolsService, memory: N8nMemory, threads: AgentThreadRepository, credentials: CredentialsService, settings: AgentsSettingsService, validation: AgentValidationService, skillRefs: AgentSkillRefsService); private assertProjectScope; private assertAccess; getTools(user: User, projectId: string, resolveTargetAgentId: () => Promise, credentialProviderFor: (agentId: string) => CredentialProvider, credentialService: BuilderCredentialService, options?: BuilderToolsOptions): BuiltTool[]; getRuntimeSkills(): import("@n8n/agents").RuntimeSkill[]; getSessionContext(user: User, projectId: string, agentId: string): Promise; getCredentialDefaults(user: User, projectId: string, agentId: string): Promise<{ channelCredentialIds: string[]; managedCredentialAvailable: boolean; }>; createCredentialProvider(user: User, projectId: string, agentId: string): AgentCredentialProvider; validateAgent(user: User, projectId: string, agentId: string, credentialProviderFor: (agentId: string) => CredentialProvider): Promise<{ valid: boolean; issueCodes: ("incompatible_credential" | "incompatible_reference" | "invalid_credential" | "invalid_value" | "missing_credential" | "missing_reference" | "missing_required" | "restricted_node_type")[]; issueCount: number; capabilityCount: number; } | undefined>; deleteBuilderSessions(prefix: string): Promise; }