import type { LayoutData } from '../../types.js';
import type { LayoutGraph, LayoutModel } from './types.js';
/** The engine's input for a measured `LayoutData`: nodes, subgraphs (as groups) and edges. */
export declare function toLayoutGraph(data: LayoutData): LayoutGraph;
/** Writes the engine's positions, routes and label centres back onto `LayoutData`. */
export declare function applyLayoutModel(data: LayoutData, model: LayoutModel): void;
/**
 * Moves each axis-tagged route's ends from the bounding box onto the shape outline, using the
 * `intersect` the shape installed when it was drawn. Nodes without one (headless runs) keep the
 * box ends.
 */
export declare function clipRouteEnds(data: LayoutData): void;
/**
 * The layout core shared by the browser renderer and headless tests: translate, run the
 * engine, write back, and put route ends on the shapes.
 */
export declare function runLayeredLayoutCore(data: LayoutData): LayoutModel;
