export declare class WorkflowImportError extends Error { constructor(message: string); } export type WorkflowEditorNodeType = 'text' | 'asset' | 'aspectRatio' | 'model' | 'llm' | 'transformText' | 'splitText' | 'ifElse' | 'groupItems' | 'sliceAssets' | 'forEach' | 'forEachEnd' | 'stickyNote' | 'approval' | 'modelInput'; export declare const VALID_EDITOR_NODE_TYPES: readonly WorkflowEditorNodeType[]; export interface WorkflowExportData { version: '1.0'; name: string; description: string; editorInfo: { nodes: Array<{ type: WorkflowEditorNodeType; [key: string]: unknown; }>; edges: Array<{ [key: string]: unknown; }>; inputKeys: string[]; }; inputs: unknown[]; tagSet: string[]; uiConfig?: object; exportedAt: string; exportedBy: string; } /** * Validates a workflow export payload (e.g. from a JSON file import). * * Throws a `WorkflowImportError` with a human-readable message on the first * violation found. Returns the validated data cast to `WorkflowExportData`. * * Checks performed: * 1. Data is a non-null object * 2. `version` field is present and equals "1.0" * 3. `editorInfo` has non-empty `nodes` and `edges` arrays * 4. Each node's `type` is a recognized editor node type * 5. `inputs` is an array */ export declare function validateEditorInfo(data: unknown): WorkflowExportData; //# sourceMappingURL=workflow_import_validator.d.ts.map