/** * @license * Copyright 2024 Nuraly, Laabidi Aymen * SPDX-License-Identifier: MIT */ import { Workflow, WorkflowNode, NodeTemplate, OutputVariable } from '../workflow-canvas.types.js'; /** * Get upstream nodes connected to a given node */ export declare function getUpstreamNodes(workflow: Workflow, nodeId: string): WorkflowNode[]; /** * Get the node template for a given node type */ export declare function getNodeTemplate(nodeType: string): NodeTemplate | undefined; /** * Get available variables from upstream nodes */ export declare function getAvailableVariables(workflow: Workflow, nodeId: string): { node: WorkflowNode; variables: OutputVariable[]; }[]; /** * Flatten output variables into a simple list with full paths */ export declare function flattenVariables(variables: OutputVariable[], _prefix?: string): { path: string; description: string; type: string; }[]; /** * Get all available variable paths for a node (flattened) */ export declare function getAllAvailableVariablePaths(workflow: Workflow, nodeId: string): { nodeName: string; path: string; description: string; type: string; }[]; /** * Extract variable paths from a JSON object recursively */ export declare function extractPathsFromJson(obj: any, prefix: string, maxDepth?: number, currentDepth?: number): { path: string; type: string; value?: any; }[]; /** * Fetch latest node outputs from the API */ export declare function fetchLatestNodeOutputs(workflowId: string, baseUrl?: string): Promise>; /** * Get dynamic variables from actual execution data */ export declare function getDynamicVariablesFromOutput(_nodeId: string, nodeName: string, nodeType: string, nodeConfig: any, outputData: any): { nodeName: string; path: string; description: string; type: string; }[]; /** * Get all available variables combining static schema and dynamic execution data */ export declare function getAllAvailableVariablesWithDynamic(workflow: Workflow, nodeId: string, baseUrl?: string): Promise<{ nodeName: string; nodeId: string; path: string; description: string; type: string; isDynamic?: boolean; }[]>; //# sourceMappingURL=variable-resolver.d.ts.map