mirror of https://github.com/ANL-CEEESA/RELOG.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
620 B
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
|