import { HookHub, IArgsBase, ICommandHandler, ICmdHooks as IHooks, NsGraph } from '@antv/xflow'; type ICommand = ICommandHandler; export declare namespace NsEditNode { /** Command: 用于注册named factory */ const command: import("@antv/xflow").IGraphCommand; /** hook name */ const hookKey = "editNode"; /** hook 参数类型 */ interface IArgs extends IArgsBase { nodeConfig: NsGraph.INodeConfig; } /** hook handler 返回类型 */ interface IResult { err: any; } /** hooks 类型 */ interface ICmdHooks extends IHooks { editNode: HookHub; } } export declare class EditNodeCommand implements ICommand { /** api */ contextProvider: ICommand['contextProvider']; init(): void; /** 执行Cmd */ execute: () => Promise; /** undo cmd */ undo: () => Promise; /** redo cmd */ redo: () => Promise; isUndoable(): boolean; showModal: (node: NsGraph.INodeConfig, graphData: NsGraph.IGraphData, graphMeta: NsGraph.IGraphMeta) => void; onCancel: (container: DocumentFragment) => void; onOk: (data: { node: NsGraph.INodeConfig; graphData: NsGraph.IGraphData; graphMeta: NsGraph.IGraphMeta; }, container: DocumentFragment) => void; switchStep: (data: { node: NsGraph.INodeConfig; graphData: NsGraph.IGraphData; graphMeta: NsGraph.IGraphMeta; }, container: DocumentFragment) => import("react/jsx-runtime").JSX.Element; } export {};