/** * Pre-flight the configured workflows against a running ComfyUI. * * This mirrors what ComfyUI's own `validate_workflow` does for a concrete graph, * but for *templated* workflows: it checks the classes and the loader file names, * which are the two things that survive placeholder substitution unchanged. Type * checking a `{{width}}` string would only ever report the placeholder. * * @module dsh-arya-image-gen/validate-workflows */ import type { ComfyUIWorkflowEntry } from './shared.js'; /** Result for one configured workflow. */ export interface WorkflowCheck { name: string; role: 'text-to-image' | 'image-to-image'; ok: boolean; /** Node classes the running ComfyUI does not know. */ missingClasses: string[]; /** Loader file names the running ComfyUI cannot offer. */ missingModels: string[]; /** Set when the workflow JSON itself could not be read. */ error?: string; } /** The object_info shape this module relies on. */ type ObjectInfo = Record; }; }>; /** * Check every workflow against one ComfyUI `/object_info` payload. * * @param entries - configured workflows. * @param info - the server's object_info map. * @returns one result per workflow, in input order. */ export declare function checkWorkflows(entries: readonly ComfyUIWorkflowEntry[], info: ObjectInfo): WorkflowCheck[]; /** * Fetch the live object_info and check the configured workflows. * * @param entries - configured workflows. * @param baseURL - ComfyUI endpoint. * @param headers - extra request headers. * @param signal - cancellation. * @returns one result per workflow. */ export declare function checkWorkflowsAgainstInstall(entries: readonly ComfyUIWorkflowEntry[], baseURL: string, headers: Record, signal?: AbortSignal): Promise; export {};