n8n
Version:
n8n Workflow Automation Tool
21 lines (20 loc) • 1.09 kB
TypeScript
import { type User } from '@n8n/db';
import z from 'zod';
import type { CollaborationService } from '../../../../collaboration/collaboration.service';
import type { Telemetry } from '../../../../telemetry';
import type { WorkflowFinderService } from '../../../../workflows/workflow-finder.service';
import type { WorkflowHistoryService } from '../../../../workflows/workflow-history/workflow-history.service';
import type { WorkflowService } from '../../../../workflows/workflow.service';
import type { ToolDefinition } from '../../mcp.types';
declare const inputSchema: z.ZodObject<{
workflowId: z.ZodString;
versionId: z.ZodString;
}, "strip", z.ZodTypeAny, {
workflowId: string;
versionId: string;
}, {
workflowId: string;
versionId: string;
}>;
export declare const createRestoreWorkflowVersionTool: (user: User, workflowFinderService: WorkflowFinderService, workflowHistoryService: WorkflowHistoryService, workflowService: WorkflowService, telemetry: Telemetry, collaborationService: CollaborationService) => ToolDefinition<typeof inputSchema.shape>;
export {};