UNPKG

@xyflow/react

Version:

React Flow - A highly customizable React library for building node-based editors and interactive flow charts.

17 lines 620 B
import { ReactNode } from 'react'; import { Queue } from './types'; import type { Edge, Node } from '../../types'; /** * This is a context provider that holds and processes the node and edge update queues * that are needed to handle setNodes, addNodes, setEdges and addEdges. * * @internal */ export declare function BatchProvider<NodeType extends Node = Node, EdgeType extends Edge = Edge>({ children, }: { children: ReactNode; }): import("react/jsx-runtime").JSX.Element; export declare function useBatchContext(): { nodeQueue: Queue<any>; edgeQueue: Queue<any>; }; //# sourceMappingURL=index.d.ts.map