/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type RibbonBounds, type RibbonEnd, type RibbonPath, type RibbonRouteOptions } from "./geometry.js"; /** One link as its host hands it over: its ends as they draw, the elements they meet, its weight and its caption. */ export interface LinkToRoute { readonly from: RibbonEnd; readonly to: RibbonEnd; /** The element the link leaves, as a key: links leaving one element's end share it, and spread there. */ readonly fromAt: string; /** The element the link enters, as a key: links entering one element's start share it. */ readonly toAt: string; /** Its weight: its stroke's width, as the host weighs it. */ readonly weight: number; /** Its caption; `undefined` for none. */ readonly label: string | undefined; /** Its planned lane and caption, where its host lays bands out for them (`lanes.ts`). */ readonly plan?: RibbonRouteOptions | undefined; } /** A routed link: its paths, its ends with their ports, and its caption where it is placed. */ export interface RoutedLink extends RibbonPath { readonly from: RibbonEnd; readonly to: RibbonEnd; readonly label: string | undefined; } /** * Lays a family of links out: each one's ports, its route and its caption. * * @param links - The links, in drawing order * @param bounds - The edges nothing of a link crosses * @returns Each link routed, in the order given */ export declare function routeLinks(links: readonly LinkToRoute[], bounds: RibbonBounds): RoutedLink[]; //# sourceMappingURL=route.d.ts.map