import { Direction, IBoundaryNodes } from '../interfaces'; import { LGraphNode } from '../LGraphNode'; /** * Finds the nodes that are farthest in all four directions, representing the boundary of the nodes. * @param nodes The nodes to check the edges of * @returns An object listing the furthest node (edge) in all four directions. * `null` if no nodes were supplied or the first node was falsy. */ export declare function getBoundaryNodes(nodes: LGraphNode[]): IBoundaryNodes | null; /** * Distributes nodes evenly along a horizontal or vertical plane. * @param nodes The nodes to distribute * @param horizontal If true, distributes along the horizontal plane. Otherwise, the vertical plane. */ export declare function distributeNodes(nodes: LGraphNode[], horizontal?: boolean): void; /** * Aligns all nodes along the edge of a node. * @param nodes The nodes to align * @param direction The edge to align nodes on * @param align_to The node to align all other nodes to. If undefined, the farthest node will be used. */ export declare function alignNodes(nodes: LGraphNode[], direction: Direction, align_to?: LGraphNode): void;