/** * @Author: lcl * @Date: 2024/3/14 */ import { HookHub, IArgsBase, ICommandHandler, ICmdHooks as IHooks } from '@antv/xflow'; type ICommand = ICommandHandler; export declare namespace NsGraphSubmit { /** Command: 用于注册named factory */ const command: import("@antv/xflow").IGraphCommand; /** hook name */ const hookKey = "graphSubmit"; /** hook 参数类型 */ interface IArgs extends IArgsBase { } /** hook handler 返回类型 */ interface IResult { err: any; } /** hooks 类型 */ interface ICmdHooks extends IHooks { graphSubmit: HookHub; } } export declare class GraphSubmitCommand implements ICommand { /** api */ contextProvider: ICommand['contextProvider']; init(): void; /** 执行Cmd */ execute: () => Promise; /** undo cmd */ undo: () => Promise; /** redo cmd */ redo: () => Promise; isUndoable(): boolean; } export {};