import { Point, Line } from '@antv/x6-geometry'; import { KeyValue } from '@antv/x6-common'; import { Registry } from '../registry'; import { Edge } from '../../model/edge'; import { CellView } from '../../view/cell'; import * as connectionPoints from './main'; export declare namespace ConnectionPoint { type Definition = (line: Line, view: CellView, magnet: SVGElement, options: T, type: Edge.TerminalType) => Point; type CommonDefinition = Definition; interface BaseOptions { /** * Offset the connection point from the anchor by the specified * distance along the end edge path segment. * * Default is `0`. */ offset?: number | Point.PointLike; } interface StrokedOptions extends BaseOptions { /** * If the stroke width should be included when calculating the * connection point. * * Default is `false`. */ stroked?: boolean; } } export declare namespace ConnectionPoint { type Presets = (typeof ConnectionPoint)['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 ConnectionPoint { const presets: typeof connectionPoints; const registry: Registry; }