import { Point } from '@antv/x6-geometry'; import { KeyValue } from '@antv/x6-common'; import { Registry } from '../registry'; import { Edge } from '../../model/edge'; import { EdgeView } from '../../view'; import * as anchors from './main'; export declare namespace EdgeAnchor { type Definition = (this: EdgeView, view: EdgeView, magnet: SVGElement, ref: Point | Point.PointLike | SVGElement, options: T, type: Edge.TerminalType) => Point; type CommonDefinition = Definition; type ResolvedDefinition = (this: EdgeView, view: EdgeView, magnet: SVGElement, refPoint: Point, options: T) => Point; } export declare namespace EdgeAnchor { type Presets = (typeof EdgeAnchor)['presets']; type OptionsMap = { readonly [K in keyof Presets]-?: Parameters[3]; }; type NativeNames = keyof Presets; interface NativeItem { name: T; args?: OptionsMap[T]; } interface ManaualItem { name: Exclude; args?: KeyValue; } } export declare namespace EdgeAnchor { const presets: typeof anchors; const registry: Registry; }