import type { Edge, Node } from '../entities'; import { EventInfo, EVENT_NAME } from '../types'; import type { GraphStoreContext, SetEdgeElementEvent, SetNodeElementEvent, UpdateEdgePropertiesEvent, UpdateNodePropertiesEvent, UpdateSizeEvent, UpdateTransformEvent } from './graph-store-types'; export declare const createGraphStore: ({ emit, context, }: { emit(eventName: EVENT_NAME, eventInfo?: EventInfo | undefined): void; context: Omit; }) => import("xstate").StateMachine { nodes: Node[]; edges: Edge[]; positions: Record; }; } | { graphType?: "tree" | undefined; layoutAlgorithm: import("../types").TreeLayoutAlgorithm; modelFactory: (graphData: import("../types").LayoutTreeGraphData) => { nodes: Node[]; edges: Edge[]; positions: Record; }; }; } | { type: "CHANGE_DATA"; data: { graphData: import("../types").NormalGraphData; } | { graphData: import("../types").TreeNodeData; }; } | { type: "LIFT_NODES"; data: { nodes: import("../types").LayoutNodeData[]; }; } | { type: "LIFT_NODE"; data: { id: string; type: "SET" | "ADD"; x: number; y: number; }; } | { type: "SET_NODES_EDGES"; data: { nodes: Node[]; edges: Edge[]; positions: Record; }; } | { type: "EXECUTE_LAYOUT"; } | { type: "SUCCESS_LAYOUT"; } | { type: "ADD_NODE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "REMOVE_NODE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "REMOVE_NODE_BY"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "UPDATE_NODE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | UpdateNodePropertiesEvent | SetNodeElementEvent | { type: "ADD_EDGE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "REMOVE_EDGE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "REMOVE_EDGE_BY"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "UPDATE_EDGE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | UpdateEdgePropertiesEvent | SetEdgeElementEvent | { type: "UPDATE_CONFIGURE"; data: { configure: Partial<{ animate: boolean; animateOptions: Required<{ duration?: number | undefined; }>; defaultNode?: import("../types").NodeConfig | undefined; defaultEdge?: import("../types").EdgeConfig | undefined; elementsSelectable?: boolean | undefined; }>; }; } | UpdateSizeEvent | { type: "UPDATE_LAYOUT_CONFIG"; data: { layoutConfig: import("../types").LayoutConfig; }; } | UpdateTransformEvent | { type: "SET_NODE_EXCLUSIVE_STATE"; data: { id: string; state: string; list?: string[] | undefined; }; } | { type: "SET_EDGE_EXCLUSIVE_STATE"; data: { id: string; state: string; list?: string[] | undefined; }; } | { type: "CLEAR_NODES_STATES"; data: { states?: string | string[] | undefined; ids?: string[] | undefined; }; } | { type: "CLEAR_EDGES_STATES"; data: { states?: string | string[] | undefined; ids?: string[] | undefined; }; } | { type: "SET_NODES_STATE"; data: { state: string; enable?: boolean | undefined; ids?: string[] | undefined; }; } | { type: "SET_EDGES_STATE"; data: { state: string; enable?: boolean | undefined; ids?: string[] | undefined; }; }, { value: any; context: import("./graph-store-types").NormalGraphStoreContext | import("./graph-store-types").TreeGraphStoreContext; }, import("xstate").BaseActionObject, { executeLayout: { data: {}; }; }, import("xstate").ResolveTypegenMeta { nodes: Node[]; edges: Edge[]; positions: Record; }; } | { graphType?: "tree" | undefined; layoutAlgorithm: import("../types").TreeLayoutAlgorithm; modelFactory: (graphData: import("../types").LayoutTreeGraphData) => { nodes: Node[]; edges: Edge[]; positions: Record; }; }; } | { type: "CHANGE_DATA"; data: { graphData: import("../types").NormalGraphData; } | { graphData: import("../types").TreeNodeData; }; } | { type: "LIFT_NODES"; data: { nodes: import("../types").LayoutNodeData[]; }; } | { type: "LIFT_NODE"; data: { id: string; type: "SET" | "ADD"; x: number; y: number; }; } | { type: "SET_NODES_EDGES"; data: { nodes: Node[]; edges: Edge[]; positions: Record; }; } | { type: "EXECUTE_LAYOUT"; } | { type: "SUCCESS_LAYOUT"; } | { type: "ADD_NODE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "REMOVE_NODE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "REMOVE_NODE_BY"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "UPDATE_NODE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | UpdateNodePropertiesEvent | SetNodeElementEvent | { type: "ADD_EDGE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "REMOVE_EDGE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "REMOVE_EDGE_BY"; data: import("./graph-store-types").ApplyDataPatchEvent; } | { type: "UPDATE_EDGE"; data: import("./graph-store-types").ApplyDataPatchEvent; } | UpdateEdgePropertiesEvent | SetEdgeElementEvent | { type: "UPDATE_CONFIGURE"; data: { configure: Partial<{ animate: boolean; animateOptions: Required<{ duration?: number | undefined; }>; defaultNode?: import("../types").NodeConfig | undefined; defaultEdge?: import("../types").EdgeConfig | undefined; elementsSelectable?: boolean | undefined; }>; }; } | UpdateSizeEvent | { type: "UPDATE_LAYOUT_CONFIG"; data: { layoutConfig: import("../types").LayoutConfig; }; } | UpdateTransformEvent | { type: "SET_NODE_EXCLUSIVE_STATE"; data: { id: string; state: string; list?: string[] | undefined; }; } | { type: "SET_EDGE_EXCLUSIVE_STATE"; data: { id: string; state: string; list?: string[] | undefined; }; } | { type: "CLEAR_NODES_STATES"; data: { states?: string | string[] | undefined; ids?: string[] | undefined; }; } | { type: "CLEAR_EDGES_STATES"; data: { states?: string | string[] | undefined; ids?: string[] | undefined; }; } | { type: "SET_NODES_STATE"; data: { state: string; enable?: boolean | undefined; ids?: string[] | undefined; }; } | { type: "SET_EDGES_STATE"; data: { state: string; enable?: boolean | undefined; ids?: string[] | undefined; }; }, import("xstate").BaseActionObject, { executeLayout: { data: {}; }; }>>; //# sourceMappingURL=graph-store.d.ts.map