import type { PathFindingFunction, SVGDrawFunction } from '../functions'; import type { Node, EdgeProps } from 'reactflow'; export type EdgeParams = Pick; export type GetSmartEdgeOptions = { gridRatio?: number; nodePadding?: number; drawEdge?: SVGDrawFunction; generatePath?: PathFindingFunction; }; export type GetSmartEdgeParams = EdgeParams & { options?: GetSmartEdgeOptions; nodes: Node[]; }; export type GetSmartEdgeReturn = { svgPathString: string; edgeCenterX: number; edgeCenterY: number; }; export declare const getSmartEdge: ({ options, nodes, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition }: GetSmartEdgeParams) => GetSmartEdgeReturn | null; export type GetSmartEdgeFunction = typeof getSmartEdge;