import { EventService } from '@n8n/backend-services'; import type { CredentialProvider } from '@n8n/agents'; import type { AgentIntegrationConfig, AgentTaskConfig } from '@n8n/api-types'; import { AgentModificationTelemetryService, type AgentModificationEvent, type AgentCreationEvent } from './agent-modification-telemetry.service'; import { AgentUpdateBroadcaster } from './agent-update-broadcaster'; import type { ProjectAgent } from './entities/agent.entity'; export declare class AgentSaveCompletionService { private readonly eventService; private readonly broadcaster; private readonly modificationTelemetry; constructor(eventService: EventService, broadcaster: AgentUpdateBroadcaster, modificationTelemetry: AgentModificationTelemetryService); configurationCreated(event: AgentCreationEvent, pushRef?: string): void; definitionSaved(event: AgentModificationEvent & { agent: ProjectAgent; }, previousIntegrations: AgentIntegrationConfig[], credentialProvider: CredentialProvider, tasks: ReadonlyMap, operation: 'create' | 'update'): Promise; configurationSaved(event: AgentModificationEvent, pushRef: string | undefined, emitSetupCompleted: (() => Promise) | null): Promise; bodySaved(event: AgentModificationEvent, pushRef?: string, recordTelemetry?: boolean): Promise; taskSaved(event: AgentModificationEvent, pushRef?: string): void; private notify; private clearRuntimes; }