import { t as IRestApiContext } from "./types2.cjs"; import { PublishTimelineEvent, PublishTimelineEvent as PublishTimelineEvent$1 } from "@n8n/api-types"; import { IConnections, INode, IWorkflowGroup } from "n8n-workflow"; //#region src/api/workflowHistory.d.ts type WorkflowHistory = { versionId: string; authors: string; createdAt: string; updatedAt: string; workflowPublishHistory: WorkflowPublishHistory[]; name: string | null; description: string | null; }; type WorkflowVersionData = Pick; type WorkflowPublishHistory = { createdAt: string; id: number; event: 'activated' | 'deactivated'; userId: string | null; versionId: string | null; workflowId: string; }; type WorkflowVersionId = WorkflowHistory['versionId']; type WorkflowVersion = WorkflowHistory & { workflowId: string; nodes: INode[]; connections: IConnections; nodeGroups?: IWorkflowGroup[]; }; type WorkflowHistoryActionTypes = Array<'restore' | 'publish' | 'unpublish' | 'clone' | 'open' | 'download' | 'name'>; type WorkflowHistoryRequestParams = { take: number; skip?: number; }; type UpdateWorkflowHistoryVersion = { nodes?: INode[]; connections?: IConnections; nodeGroups?: IWorkflowGroup[]; authors?: string; name?: string | null; description?: string | null; }; declare const getWorkflowHistory: (context: IRestApiContext, workflowId: string, queryParams: WorkflowHistoryRequestParams) => Promise; declare const getWorkflowVersion: (context: IRestApiContext, workflowId: string, versionId: string) => Promise; declare const getWorkflowVersionsByIds: (context: IRestApiContext, workflowId: string, versionIds: string[]) => Promise<{ versions: Array<{ versionId: string; createdAt: string; }>; }>; declare const getPublishTimeline: (context: IRestApiContext, workflowId: string) => Promise; declare const updateWorkflowHistoryVersion: (context: IRestApiContext, workflowId: string, versionId: string, data: UpdateWorkflowHistoryVersion) => Promise; //#endregion export { WorkflowHistoryRequestParams as a, WorkflowVersionData as c, getWorkflowHistory as d, getWorkflowVersion as f, WorkflowHistoryActionTypes as i, WorkflowVersionId as l, updateWorkflowHistoryVersion as m, UpdateWorkflowHistoryVersion as n, WorkflowPublishHistory as o, getWorkflowVersionsByIds as p, WorkflowHistory as r, WorkflowVersion as s, PublishTimelineEvent$1 as t, getPublishTimeline as u }; //# sourceMappingURL=workflowHistory.d.cts.map