import type { Syringe } from 'mana-syringe'; import type { IGraphCommand } from '../../command/interface'; import type { HookHub } from '@antv/xflow-hook'; import type { IHooks } from '../../hooks/interface'; import type { Simplify } from '../../common/types'; /** commands */ import { NsAddNode } from './node-add'; import { NsDelNode } from './node-del'; import { NsSelectNode } from './node-select'; import { NsMoveNode } from './node-move'; import { NsUpdateNode } from './node-update'; import { NsCenterNode } from './node-center'; import { NsFrontNode } from './node-front'; import { NsBackNode } from './node-back'; import { NsHighlightNode } from './node-highlight'; import { NsUpdateNodePort } from './node-update-port'; /** 注册Command Handler Class */ export declare const registerNodeCommand: (register: Syringe.Register) => void; /** app onStart 时, 注册 Command Hooks */ export declare const hookhubList: { command: IGraphCommand; hookKey: string; createHook?: () => HookHub; }[]; /** 扩展 Command Hooks 类型*/ export interface ICmdHooks extends NsAddNode.ICmdHooks, NsDelNode.ICmdHooks, NsSelectNode.ICmdHooks, NsMoveNode.ICmdHooks, NsUpdateNode.ICmdHooks, NsCenterNode.ICmdHooks, NsFrontNode.ICmdHooks, NsBackNode.ICmdHooks, NsHighlightNode.ICmdHooks, NsUpdateNodePort.ICmdHooks, IHooks { } /** Command 参数类型*/ export declare namespace NsNodeCmd { namespace AddNode { type IArgs = Simplify; type IResult = Simplify; } namespace DelNode { type IArgs = Simplify; type IResult = Simplify; } namespace SelectNode { type IArgs = Simplify; type IResult = Simplify; } namespace MoveNode { type IArgs = Simplify; type IResult = Simplify; } namespace UpdateNodePort { type IArgs = Simplify; type IResult = Simplify; } namespace UpdateNode { type IArgs = Simplify; type IResult = Simplify; } namespace CenterNode { type IArgs = Simplify; type IResult = Simplify; } namespace FrontNode { type IArgs = Simplify; type IResult = Simplify; } namespace BackNode { type IArgs = Simplify; type IResult = Simplify; } namespace HighlightNode { type IArgs = Simplify; type IResult = Simplify; } }