/**
 * Generates the nearest point (reference point) for a given point
 * onto a given set of lines.
 *
 * The reference point is clamped to the actual line segments, i.e. it
 * always lies on one of the given lines (docking to a segment end /
 * bendpoint if necessary) instead of on the infinite line extending a
 * segment.
 *
 * @param point
 * @param lines
 *
 * @return
 */
export function getReferencePoint(point: Point, lines: Line[]): Point | undefined;

/**
 * Convert the given bounds to a lines array containing all edges.
 *
 * @param bounds
 *
 * @return
 */
export function asEdges(bounds: Rect | Point): Line[];

/**
 * Convert the given waypoints to a lines array containing all segments.
 *
 * @param waypoints
 *
 * @return
 */
export function asLines(waypoints: Point[]): Line[];

type Point = import("diagram-js/lib/util/Types").Point;
type Rect = import("diagram-js/lib/util/Types").Rect;

export type Line = Point[];
//# sourceMappingURL=LineUtil.d.ts.map