import { GetSchemes, ClassicPreset } from "rete"; import { FlowNode } from "./flow"; export type HFNodeData = FlowNode & { deleteNode?: () => Promise; replaceWithCreatedBlock?: (block: FlowNode) => Promise; assignSelectedBlocksToContainer?: (blockIds?: string[]) => Promise; clearContainerSubflow?: () => Promise; [key: string]: unknown; }; export type HFNode = ClassicPreset.Node & { data?: HFNodeData; }; export type HFConnection = ClassicPreset.Connection; export type HFSchemes = GetSchemes;