/** * Shared node ID generation and config defaults utilities. * Used by both the visual editor and the workflow adapter to ensure * consistent behavior across all code paths. */ import type { ConfigSchema } from '../types/index.js'; /** * Minimal node shape required for ID generation. * Both WorkflowNode and StandardNode satisfy this interface. */ interface NodeWithMetadata { id: string; data?: { metadata?: { id?: string; }; }; } /** * Generate a unique node ID based on node type and existing nodes. * Format: . * Example: boolean_gateway.1, calculator.2 */ export declare function generateNodeId(nodeTypeId: string, existingNodes: NodeWithMetadata[]): string; /** * Extract default config values from a node's configSchema. * Iterates configSchema.properties and returns an object with each property's * default value (if defined). */ export declare function extractConfigDefaults(configSchema?: ConfigSchema): Record; export {};