import type { TriggerOutputs, WorkflowDocument, WorkflowGraph } from '@n8n/engine'; import type { INodeExecutionData } from 'n8n-workflow'; import { z } from 'zod'; export declare const resolveSubWorkflowRequestSchema: z.ZodObject<{ workflowId: z.ZodString; executionId: z.ZodString; parent: z.ZodObject<{ executionId: z.ZodString; workflowId: z.ZodString; mode: z.ZodEnum<["cli", "error", "integrated", "internal", "manual", "retry", "trigger", "webhook", "evaluation", "chat", "agent"]>; node: z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodString; typeVersion: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: string; name: string; type: string; typeVersion: number; }, { id: string; name: string; type: string; typeVersion: number; }>; }, "strip", z.ZodTypeAny, { executionId: string; workflowId: string; mode: "agent" | "chat" | "cli" | "error" | "evaluation" | "integrated" | "internal" | "manual" | "retry" | "trigger" | "webhook"; node: { id: string; name: string; type: string; typeVersion: number; }; }, { executionId: string; workflowId: string; mode: "agent" | "chat" | "cli" | "error" | "evaluation" | "integrated" | "internal" | "manual" | "retry" | "trigger" | "webhook"; node: { id: string; name: string; type: string; typeVersion: number; }; }>; context: z.ZodObject<{ userId: z.ZodOptional; projectId: z.ZodOptional; }, "strip", z.ZodTypeAny, { userId?: string | undefined; projectId?: string | undefined; }, { userId?: string | undefined; projectId?: string | undefined; }>; items: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { workflowId: string; executionId: string; parent: { executionId: string; workflowId: string; mode: "agent" | "chat" | "cli" | "error" | "evaluation" | "integrated" | "internal" | "manual" | "retry" | "trigger" | "webhook"; node: { id: string; name: string; type: string; typeVersion: number; }; }; context: { userId?: string | undefined; projectId?: string | undefined; }; items: INodeExecutionData[]; }, { workflowId: string; executionId: string; parent: { executionId: string; workflowId: string; mode: "agent" | "chat" | "cli" | "error" | "evaluation" | "integrated" | "internal" | "manual" | "retry" | "trigger" | "webhook"; node: { id: string; name: string; type: string; typeVersion: number; }; }; context: { userId?: string | undefined; projectId?: string | undefined; }; items: INodeExecutionData[]; }>; export type ResolveSubWorkflowRequest = z.infer; export interface ResolveSubWorkflowResponse { workflowId: string; graph: WorkflowGraph; workflow: WorkflowDocument; triggerOutputs: TriggerOutputs | null; returnLastRunOnly: boolean; } export declare function isResolveSubWorkflowResponse(body: unknown): body is ResolveSubWorkflowResponse;