import type { Edge as X6Edge } from '@antv/x6'; import type { NsGraph } from '../../interface'; import type { IContext, IArgsBase } from '../../command/interface'; import { ICommandHandler } from '../../command/interface'; import type { IHooks } from '../../hooks/interface'; import type { HookHub } from '@antv/xflow-hook'; declare type ICommand = ICommandHandler; export declare namespace NsUpdateEdge { const command: import("../../command/interface").IGraphCommand; const hookKey = "updateEdge"; const XFlowEdgeSetOptions: X6Edge.SetOptions; interface IArgs extends IArgsBase { /** edgeConfig */ edgeConfig: NsGraph.IEdgeConfig; /** options */ options: X6Edge.SetOptions; /** 更新的Service */ updateEdgeService?: IUpdateEdgeService; /** 更新Label的Service */ updateEdgeLabelService?: IUpdateEdgeLabelService; } const XFlowUpdateLabelService: (edge: X6Edge, edgeConfig: NsGraph.IEdgeConfig, options?: X6Edge.SetOptions) => Promise; interface IResult { edgeConfig: NsGraph.IEdgeConfig; edgeCell: X6Edge; } interface IUpdateEdgeService { (args: IArgs): Promise; } interface IUpdateEdgeLabelService { (edge: X6Edge, edgeConfig: NsGraph.IEdgeConfig, options: X6Edge.SetOptions): Promise; } interface ICmdHooks extends IHooks { updateEdge: HookHub; } } export declare class UpdateEdgeCommand implements ICommand { contextProvider: ICommand['contextProvider']; ctx: IContext; init(): void; execute: () => Promise; undo: () => Promise; redo: () => Promise; isUndoable(): boolean; } export {};