import { type VisualNode } from "./VisualNode";
export interface VisualEdge {
    readonly fromNode: string;
    readonly fromPort: string;
    readonly toNode: string;
    readonly toPort: string;
}
export interface VisualGraph {
    readonly nodes: readonly VisualNode[];
    readonly edges: readonly VisualEdge[];
}
export type SerializedVisualGraph = {
    readonly nodes: readonly VisualNode[];
    readonly edges: readonly VisualEdge[];
};
export declare function validateGraph(graph: VisualGraph): readonly string[];
export declare function serializeGraph(graph: VisualGraph): SerializedVisualGraph;
export declare function deserializeGraph(serialized: SerializedVisualGraph): VisualGraph;
//# sourceMappingURL=VisualGraph.d.ts.map