import { Point } from '../../util/canvas-util'; import { DiagramModel } from '../model/diagram-model'; /** * A layout algorithm that can be applied to a diagram. * @public */ export interface DiagramLayout { /** * Rearranges the diagram elements of the given model according to a layout algorithm. * @public */ apply(model: DiagramModel): DiagramModel; } /** * Mapping of available layout algorithms. */ export declare const layouts: { [key: string]: DiagramLayout; }; export declare const getLocationsOfNodes: (model: DiagramModel) => { [key: string]: Point; };