import type { Edge, Node } from '../../../types.js'; export declare const isDiamond: (node: Node) => boolean; /** * Moves an edge's terminal leg along the rail it turns onto, so it meets its node where the * node's shape has a port: a diamond at the vertex of the face, a rectangle at the face centre * when endpoint clipping left the leg against a corner. A leg moves only when no other edge ends * on that face and the moved route hits no node or label, overlaps no edge, and crosses or touches * no edge it did not already. Returns whether any route changed; endpoints are left deduplicated, * so the caller re-prepares them for the renderer. */ export declare function alignTerminalLegsToPorts(edges: Edge[], nodeByIdMap: Map): boolean;