import { NodeSchema } from "../../../../register/node"; import { MagicFlow } from "../../../../types/flow"; import React from "react"; import { Edge, Node } from "reactflow"; export type FlowInteractionStateType = { isDragging: boolean; showParamsComp: boolean; showSelectionTools: boolean; currentZoom: number; selectionNodes: MagicFlow.Node[]; selectionEdges: Edge[]; }; export type FlowInteractionActionsType = { resetLastLayoutData: () => void; onAddItem: (event: any, nodeData: NodeSchema, extraConfig?: Record) => Promise; layout: () => MagicFlow.Node[]; setShowSelectionTools: React.Dispatch>; onNodesDelete: (_nodes: Node[]) => void; reactFlowWrapper?: React.RefObject; }; export type FlowInteractionCtx = React.PropsWithChildren; export declare const FlowInteractionStateContext: React.Context; export declare const FlowInteractionActionsContext: React.Context; export declare const FlowInteractionContext: React.Context;