import { type AgentActor } from '@n8n/api-types'; import { TransactionRunner, type OperationContext, type User } from '@n8n/db'; import { AgentSkillRefsService } from './agent-skill-refs.service'; import type { AgentHistory } from './entities/agent-history.entity'; import type { Agent } from './entities/agent.entity'; import { AgentHistoryRepository } from './repositories/agent-history.repository'; import { AgentTaskSnapshotRepository } from './repositories/agent-task-snapshot.repository'; import { AgentTaskRepository } from './repositories/agent-task.repository'; import { AgentRepository } from './repositories/agent.repository'; import { type AgentDefinition, type PendingSkillRefs, type AgentDefinitionMetadata } from './utils/agent-definition'; export declare class AgentDefinitionService { private readonly taskRepository; private readonly historyRepository; private readonly taskSnapshotRepository; private readonly agentRepository; private readonly transactionRunner; private readonly agentSkillRefs; constructor(taskRepository: AgentTaskRepository, historyRepository: AgentHistoryRepository, taskSnapshotRepository: AgentTaskSnapshotRepository, agentRepository: AgentRepository, transactionRunner: TransactionRunner, agentSkillRefs: AgentSkillRefsService); captureVersion(agent: Agent, savedBy: User | string, ctx: OperationContext, source?: AgentActor): Promise; readDraft(agent: Agent, ctx?: OperationContext, pending?: PendingSkillRefs): Promise; readVersion(version: AgentHistory, ctx?: OperationContext): Promise; replaceDraft(agent: Agent, definition: AgentDefinition, ctx?: OperationContext, skillPinsFrom?: Pick, metadata?: AgentDefinitionMetadata): Promise; }