import type { ToolDescriptor } from '@n8n/agents'; import type { AgentIntegrationConfig, AgentSkill, StoredAgentConfig } from '@n8n/api-types'; import { Project, WithTimestampsAndStringId } from '@n8n/db'; import { type Relation } from '@n8n/typeorm'; import type { AgentHistory } from './agent-history.entity'; export type AgentScope = 'project' | 'instance'; export type ProjectScoped> = T & { projectId: string; }; export type ProjectAgent = ProjectScoped; export declare function isProjectAgent>(agent: T): agent is ProjectScoped; export declare class Agent extends WithTimestampsAndStringId { name: string; project: Project | null; projectId: string | null; scope: AgentScope; schema: StoredAgentConfig | null; integrations: AgentIntegrationConfig[]; tools: Record; skills: Record; availableInMCP: boolean; setupCompletedAt: Date | null; versionId: string | null; activeVersionId: string | null; activeVersion?: Relation | null; revision: number; publicationRevision: number; }