import { KeyValue } from '@antv/x6-common'; import { Registry } from '../registry'; import { ToolsView } from '../../view/tool'; import { Button } from './button'; import { Boundary } from './boundary'; import { Vertices } from './vertices'; import { Segments } from './segments'; export declare namespace NodeTool { const presets: { boundary: typeof Boundary; button: typeof Button; 'button-remove': typeof ToolsView.ToolItem; 'node-editor': typeof ToolsView.ToolItem; }; type Definition = ToolsView.ToolItem.Definition; const registry: Registry>; } export declare namespace NodeTool { type Presets = (typeof NodeTool)['presets']; type OptionsMap = { readonly [K in keyof Presets]-?: ConstructorParameters[0]; }; type NativeNames = keyof Presets; interface NativeItem { name: T; args?: OptionsMap[T]; } interface ManaualItem { name: Exclude; args?: ToolsView.ToolItem.Options; } } export declare namespace EdgeTool { const presets: { boundary: typeof Boundary; vertices: typeof Vertices; segments: typeof Segments; button: typeof Button; 'button-remove': typeof ToolsView.ToolItem; 'source-anchor': typeof ToolsView.ToolItem; 'target-anchor': typeof ToolsView.ToolItem; 'source-arrowhead': typeof ToolsView.ToolItem; 'target-arrowhead': typeof ToolsView.ToolItem; 'edge-editor': typeof ToolsView.ToolItem; }; type Definition = NodeTool.Definition; const registry: Registry>; } export declare namespace EdgeTool { type Presets = (typeof EdgeTool)['presets']; type OptionsMap = { readonly [K in keyof Presets]-?: ConstructorParameters[0]; }; type NativeNames = keyof Presets; interface NativeItem { name: T; args?: OptionsMap[T]; } interface ManaualItem { name: Exclude; args?: ToolsView.ToolItem.Options; } }