/** * FlowDrop Workflow Validation * * Lightweight validation utilities for workflow JSON data. * Checks minimum required fields without relying on a full JSON Schema validator library. * * @module utils/validation */ /** * Result of a workflow validation check. */ export interface WorkflowValidationResult { valid: boolean; /** Human-readable description of the first validation failure, or undefined if valid. */ error?: string; } /** * Validate that the given value has the minimum required fields of a FlowDrop Workflow. * * Required fields (matching the Workflow type and workflow.schema.json): * - `id` — string * - `name` — string * - `nodes` — array * - `edges` — array * * @param data - The parsed JSON value to validate. * @returns A `WorkflowValidationResult` indicating whether the data is valid. */ export declare function validateWorkflowData(data: unknown): WorkflowValidationResult;