import type { Node as X6Node } from '@antv/x6'; import type { HookHub } from '@antv/xflow-hook'; import type { IHooks } from '../../hooks/interface'; import type { NsGraph } from '../../interface'; import type { IContext, IArgsBase } from '../../command/interface'; import { ICommandHandler } from '../../command/interface'; declare type ICommand = ICommandHandler; export declare namespace NsCenterNode { const command: import("../../command/interface").IGraphCommand; const hookKey = "centerNode"; interface IArgs extends IArgsBase { nodeConfig: NsGraph.INodeConfig; } interface IResult { x6Node: X6Node; } interface ICmdHooks extends IHooks { centerNode: HookHub; } } export declare class CenterNodeCommand implements ICommand { contextProvider: ICommand['contextProvider']; ctx: IContext; init(): void; execute: () => Promise; undo: () => Promise; redo: () => Promise; isUndoable(): boolean; } export {};