import { DiagramNode } from '@likec4/core/types'; import { Compound, ParallelRect, Rect, Spacing, Step } from './_types'; export type NormalizedSpacing = { left: number; right: number; top: number; bottom: number; }; export declare function normalizeSpacing(padding?: Spacing | number): NormalizedSpacing; export declare function rectFromSteps(steps: Array): Rect; /** * From steps find boxes that must be marked as parallel on the layout */ export declare function findParallelRects(steps: Array): Array; /** * Builds a tree of compounds from actors and nodes. * @param actors the actors in the sequence view * @param nodes the nodes in likec4 diagram * @returns an array of compounds where each compound is a node in the sequence view * that is an ancestor of one of the actors */ export declare function buildCompounds(actors: ReadonlyArray, nodes: ReadonlyArray): Array;