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'; /** commands */ import { NsAddEdge } from './edge-add'; import { NsDelEdge } from './edge-del'; import { NsUpdateEdge } from './edge-update'; import { NsHighlightEdge } from './edge-highlight'; import { NsFrontEdge } from './edge-front'; import { NsBackEdge } from './edge-back'; import type { Simplify } from '../../common/types'; /** 注册Command Handler Class */ export declare const registerEdgeCommand: (register: Syringe.Register) => void; /** app onStart 时, 注册 Command Hooks */ export declare const hookhubList: { hookKey: string; command: IGraphCommand; createHook?: () => HookHub; }[]; /** 扩展 Command Hooks 类型*/ export interface ICmdHooks extends NsAddEdge.ICmdHooks, NsDelEdge.ICmdHooks, NsUpdateEdge.ICmdHooks, NsHighlightEdge.ICmdHooks, NsFrontEdge.ICmdHooks, NsBackEdge.ICmdHooks, IHooks { } /** Command 参数类型*/ export declare namespace NsEdgeCmd { namespace AddEdge { type IArgs = Simplify; type IResult = Simplify; } namespace DelEdge { type IArgs = Simplify; type IResult = Simplify; } namespace UpdateEdge { type IArgs = Simplify; type IResult = Simplify; } namespace HighlightEdge { type IArgs = Simplify; type IResult = Simplify; } namespace FrontEdge { type IArgs = Simplify; type IResult = Simplify; } namespace BackEdge { type IArgs = Simplify; type IResult = Simplify; } }