/** * Agent Spec Validator * * Validates workflows against Agent Spec constraints for export, * and validates imported Agent Spec documents for correctness. */ import type { AgentSpecFlow } from '../../types/agentspec.js'; import type { StandardWorkflow } from '../WorkflowAdapter.js'; /** Validation result */ export interface AgentSpecValidationResult { valid: boolean; errors: string[]; warnings: string[]; } /** * Validate a FlowDrop StandardWorkflow for Agent Spec export compatibility. * * Checks: * - Must have exactly 1 start node (terminal/triggers) * - Must have at least 1 end node (terminal/outputs) * - Gateway nodes must have branches defined */ export declare function validateForAgentSpecExport(workflow: StandardWorkflow): AgentSpecValidationResult; /** * Validate an imported Agent Spec Flow document. * * Checks: * - Has a start_node reference that exists * - At least one end_node exists * - All edge references point to existing nodes * - BranchingNode has branches * - Data flow edges reference valid properties */ export declare function validateAgentSpecFlow(flow: AgentSpecFlow): AgentSpecValidationResult;