import { Action } from 'easy-peasy'; import { Selection as D3Selection, ZoomBehavior } from 'd3'; import { ElementId, Elements, Transform, Node, Edge, Rect, Dimensions, XYPosition, OnConnectFunc, SelectionRect } from '../types'; declare type TransformXYK = { x: number; y: number; k: number; }; declare type NodePosUpdate = { id: ElementId; pos: XYPosition; }; declare type NodeDimensionUpdate = { id: ElementId; nodeElement: HTMLDivElement; }; declare type SelectionUpdate = { isActive: boolean; selection?: SelectionRect; }; declare type D3Init = { zoom: ZoomBehavior; selection: D3Selection; }; declare type SetSnapGrid = { snapToGrid: boolean; snapGrid: [number, number]; }; export interface StoreModel { width: number; height: number; transform: Transform; nodes: Node[]; edges: Edge[]; selectedElements: Elements; selectedNodesBbox: Rect; d3Zoom: ZoomBehavior | null; d3Selection: D3Selection | null; d3Initialised: boolean; nodesSelectionActive: boolean; selectionActive: boolean; selection: SelectionRect | null; userSelectionRect: SelectionRect; connectionSourceId: ElementId | null; connectionPosition: XYPosition; snapToGrid: boolean; snapGrid: [number, number]; isInteractive: boolean; onConnect: OnConnectFunc; setOnConnect: Action; setNodes: Action; setEdges: Action; updateNodeDimensions: Action; updateNodePos: Action; setSelection: Action; setNodesSelection: Action; setSelectedElements: Action; updateSelection: Action; updateTransform: Action; updateSize: Action; initD3: Action; setSnapGrid: Action; setConnectionPosition: Action; setConnectionSourceId: Action; setInteractive: Action; setUserSelection: Action; updateUserSelection: Action; unsetUserSelection: Action; } declare const store: import("easy-peasy").Store>; export default store;