/** * Workflow Validator * * Validates ComfyUI workflow JSON against the /object_info schema. * This enables "contract testing" - validating workflow structure WITHOUT * requiring a GPU or live ComfyUI instance. * * Key insight: ComfyUI's /object_info endpoint returns full schemas for all nodes, * including required inputs, types, and allowed values. We can use this to validate * that our workflow builders produce valid output. */ import type { ComfyUIObjectInfo, ComfyUIWorkflow, ValidationResult, ValidationOptions } from "./types.js"; /** * Validate a ComfyUI workflow against a schema. * * @param workflow - The workflow to validate * @param schema - The ComfyUI object_info schema * @param options - Validation options * @returns Validation result with errors and stats */ export declare function validateWorkflow(workflow: ComfyUIWorkflow, schema: ComfyUIObjectInfo, options?: ValidationOptions): ValidationResult; /** * Load the bundled schema snapshot. */ export declare function loadBundledSchema(): Promise; /** * Format validation errors for display. */ export declare function formatValidationErrors(result: ValidationResult): string;