import { ConnectionMode, withResolvers, type ConnectionState, type CoordinateExtent, type InternalNodeUpdate, type UpdateNodePositions, type NodeOrigin, type OnConnect, type OnError, type OnViewportChange, type SelectionRect, type SnapGrid, type Handle, type Transform, type PanZoomInstance, type PanBy, type OnConnectStart, type OnConnectEnd, type OnSelectionDrag, type OnMoveStart, type OnMove, type OnMoveEnd, type UpdateConnection, type EdgeLookup, type ConnectionLookup, type NodeLookup, type NodeChange, type EdgeChange, type ParentLookup, type AriaLabelConfig, type SetCenter, type ZIndexMode } from '@xyflow/system'; import type { Edge, Node, OnNodesChange, OnEdgesChange, DefaultEdgeOptions, FitViewOptions, OnNodesDelete, OnEdgesDelete, OnSelectionChangeFunc, UnselectNodesAndEdgesParams, OnDelete, OnNodeDrag, OnBeforeDelete, IsValidConnection, InternalNode } from '.'; export type ReactFlowStore = { rfId: string; width: number; height: number; transform: Transform; nodes: NodeType[]; nodesInitialized: boolean; nodeLookup: NodeLookup>; parentLookup: ParentLookup>; edges: EdgeType[]; edgeLookup: EdgeLookup; connectionLookup: ConnectionLookup; onNodesChange: OnNodesChange | null; onEdgesChange: OnEdgesChange | null; hasDefaultNodes: boolean; hasDefaultEdges: boolean; domNode: HTMLDivElement | null; paneDragging: boolean; noPanClassName: string; panZoom: PanZoomInstance | null; minZoom: number; maxZoom: number; translateExtent: CoordinateExtent; nodeExtent: CoordinateExtent; nodeOrigin: NodeOrigin; nodeDragThreshold: number; connectionDragThreshold: number; nodesSelectionActive: boolean; userSelectionActive: boolean; userSelectionRect: SelectionRect | null; connection: ConnectionState>; connectionMode: ConnectionMode; connectionClickStartHandle: (Pick & Required>) | null; snapToGrid: boolean; snapGrid: SnapGrid; nodesDraggable: boolean; autoPanOnNodeFocus: boolean; nodesConnectable: boolean; nodesFocusable: boolean; edgesFocusable: boolean; edgesReconnectable: boolean; elementsSelectable: boolean; elevateNodesOnSelect: boolean; elevateEdgesOnSelect: boolean; selectNodesOnDrag: boolean; multiSelectionActive: boolean; onNodeDragStart?: OnNodeDrag; onNodeDrag?: OnNodeDrag; onNodeDragStop?: OnNodeDrag; onSelectionDragStart?: OnSelectionDrag; onSelectionDrag?: OnSelectionDrag; onSelectionDragStop?: OnSelectionDrag; onMoveStart?: OnMoveStart; onMove?: OnMove; onMoveEnd?: OnMoveEnd; onConnect?: OnConnect; onConnectStart?: OnConnectStart; onConnectEnd?: OnConnectEnd; onClickConnectStart?: OnConnectStart; onClickConnectEnd?: OnConnectEnd; connectOnClick: boolean; defaultEdgeOptions?: DefaultEdgeOptions; fitViewQueued: boolean; fitViewOptions: FitViewOptions | undefined; fitViewResolver: ReturnType> | null; onNodesDelete?: OnNodesDelete; onEdgesDelete?: OnEdgesDelete; onDelete?: OnDelete; onError?: OnError; onViewportChangeStart?: OnViewportChange; onViewportChange?: OnViewportChange; onViewportChangeEnd?: OnViewportChange; onBeforeDelete?: OnBeforeDelete; onSelectionChangeHandlers: OnSelectionChangeFunc[]; ariaLiveMessage: string; autoPanOnConnect: boolean; autoPanOnNodeDrag: boolean; autoPanSpeed: number; connectionRadius: number; isValidConnection?: IsValidConnection; lib: string; debug: boolean; ariaLabelConfig: AriaLabelConfig; zIndexMode: ZIndexMode; onNodesChangeMiddlewareMap: Map[]) => NodeChange[]>; onEdgesChangeMiddlewareMap: Map[]) => EdgeChange[]>; }; export type ReactFlowActions = { setNodes: (nodes: NodeType[]) => void; setEdges: (edges: EdgeType[]) => void; setDefaultNodesAndEdges: (nodes?: NodeType[], edges?: EdgeType[]) => void; updateNodeInternals: (updates: Map, params?: { triggerFitView: boolean; }) => void; updateNodePositions: UpdateNodePositions; resetSelectedElements: () => void; unselectNodesAndEdges: (params?: UnselectNodesAndEdgesParams) => void; addSelectedNodes: (nodeIds: string[]) => void; addSelectedEdges: (edgeIds: string[]) => void; setMinZoom: (minZoom: number) => void; setMaxZoom: (maxZoom: number) => void; setTranslateExtent: (translateExtent: CoordinateExtent) => void; setNodeExtent: (nodeExtent: CoordinateExtent) => void; cancelConnection: () => void; updateConnection: UpdateConnection>; reset: () => void; triggerNodeChanges: (changes: NodeChange[]) => void; triggerEdgeChanges: (changes: EdgeChange[]) => void; panBy: PanBy; setCenter: SetCenter; }; export type ReactFlowState = ReactFlowStore & ReactFlowActions; //# sourceMappingURL=store.d.ts.map