import type { Bounds, Vector } from "@hylimo/diagram-common"; import { type Matrix } from "transformation-matrix"; import { type Gaps, type SnapState, type SnapOptions, type GapSnap, type SnapLines } from "./model.js"; /** * Computes the gaps between elements * Used in {@code getGapSnaps} * * @param referenceBounds the bounds of elements to compute gaps for (usually visible, non-selected elements) * @returns the gaps between elements */ export declare function getGaps(referenceBounds: Bounds[]): Gaps; /** * Computes the gap snaps * * @param elementBounds the bounds of the elements to move * @param elementOffset The offset to apply to the elements being moved * @param visibleGaps visible gaps from {@code getVisibleGaps} * @param snapState The current snap state with nearest snaps and minimum offset * @param context The context in which the snapping is performed * @param options enable/disable snapping in x and y direction */ export declare function getGapSnaps(elementBounds: Bounds, elementOffset: Vector, visibleGaps: Gaps, snapState: SnapState, context: string, options: SnapOptions): void; /** * Creates snap lines from gap snaps for rendering. * Generates visual guides for various gap snap types (center, sides) based on detected gaps. * * @param gapSnaps The gap snaps for which to create snap lines * @param transform The transformation matrix to apply to the snap points * @param contextGlobalRotations Map of global rotation values for each context * @param snapLines The map to populate with snap lines (modified) */ export declare function createGapSnapLines(gapSnaps: GapSnap[], transform: Matrix, contextGlobalRotations: Map, snapLines: SnapLines): void; //# sourceMappingURL=gapSnap.d.ts.map