import type { Edge, Node } from '../../../types.js'; /** * How far apart two node centres may sit across the line and still count as aligned. The line is * drawn at the source's centre, so that distance lands on the target end, which the renderer * clips to the target afterwards. */ export declare const ALIGNED_CENTRE_TOLERANCE = 1; /** * Replaces the route of an edge between two nodes in different groups (lanes, or subgraphs inside them) whose centres are * aligned within {@link ALIGNED_CENTRE_TOLERANCE} by one straight segment between their facing * faces: a diamond's vertex, a rectangle's face centre. An edge keeps its route when another edge * meets either node through those faces, when the segment would pass a node or a label, overlap * an edge, or cross or touch an edge the current route does not. Returns whether any route * changed; the caller re-anchors labels and re-prepares endpoints for the renderer. */ export declare function straightenAlignedCrossLaneEdges(edges: Edge[], nodeByIdMap: Map): boolean;