import { type AgentVersionListItemDto, UpdateAgentVersionDto, PaginationDto, PublishAgentDto, RevertAgentToVersionDto } from '@n8n/api-types'; import type { AuthenticatedRequest } from '@n8n/db'; import type { Response } from 'express'; import { AgentPublishService } from './agent-publish.service'; import { AgentRunnableStateService } from './agent-runnable-state.service'; import { CollaborationService } from '../../collaboration/collaboration.service'; export declare class AgentPublishController { private readonly agentPublishService; private readonly agentRunnableStateService; private readonly collaborationService; constructor(agentPublishService: AgentPublishService, agentRunnableStateService: AgentRunnableStateService, collaborationService: CollaborationService); publish(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string, payload: PublishAgentDto): Promise; skillHashes: Record; outdatedSkillIds: string[]; skillVersions: Record; }>; unpublish(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string): Promise; skillHashes: Record; outdatedSkillIds: string[]; skillVersions: Record; }>; revertToPublished(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string): Promise; skillHashes: Record; outdatedSkillIds: string[]; skillVersions: Record; }>; revertToVersion(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string, payload: RevertAgentToVersionDto): Promise; skillHashes: Record; outdatedSkillIds: string[]; skillVersions: Record; }>; listVersions(req: AuthenticatedRequest<{ projectId: string; agentId: string; }>, _res: Response, agentId: string, query: PaginationDto): Promise; getVersion(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string, versionId: string): Promise; listPublishHistory(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string, query: PaginationDto): Promise; updateVersion(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string, versionId: string, payload: UpdateAgentVersionDto): Promise; }