import type { WorkflowIssue } from "./errors"; import type { WorkflowGraph } from "./WorkflowGraph"; /** Checks that need the finished graph. Problems found while chaining are already in `graph.issues`. */ export declare function validate(graph: WorkflowGraph): WorkflowIssue[]; /** * Edges the API stores as the backward condition of another edge: index of the later edge → index of the earlier one. * The later edge goes the opposite way between the same two nodes, and neither has a backward condition of its own. */ export declare function reverseEdgeMerges(graph: WorkflowGraph): Map; /** * Breadth-first depth of every node reachable from the start node, in visiting order. Forward edges come first; * an edge's backward condition is followed only to reach a node the forward search can't. */ export declare function depthsFrom(graph: WorkflowGraph): Map;