import type { Edge, Graph, NodeInstance, NodePosition } from "./types"; export type NodeChange = { type: "add"; item: NodeInstance; index?: number; } | { type: "remove"; id: string; } | { type: "replace"; id: string; item: NodeInstance; } | { type: "position"; id: string; position: NodePosition; dragging?: boolean; } | { type: "dimensions"; id: string; dimensions: { width: number; height: number; }; resizing?: boolean; } | { type: "select"; id: string; selected: boolean; }; export type EdgeChange = { type: "add"; item: Edge; index?: number; } | { type: "remove"; id: string; } | { type: "replace"; id: string; item: Edge; } | { type: "select"; id: string; selected: boolean; }; export declare function applyNodeChanges(changes: NodeChange[], nodes: NodeInstance[]): NodeInstance[]; export declare function applyEdgeChanges(changes: EdgeChange[], edges: Edge[]): Edge[]; export declare function applyGraphChanges(graph: Graph, changes: { nodes?: NodeChange[]; edges?: EdgeChange[]; }): Graph; //# sourceMappingURL=changes.d.ts.map