import { Point, type Vector } from "@hylimo/diagram-common"; import { type Matrix } from "transformation-matrix"; import { type SnapState, type SnapOptions, type Snaps, type SnapLines } from "./model.js"; /** * Computes the point snaps * * @param referenceSnapPoints the reference snap points (usually visible, non-selected elements) * @param elementSnapPoints the element snap points (usually selected elements) * @param elementOffset The offset to apply to the elements being moved * @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 getPointSnaps(referenceSnapPoints: Point[], elementSnapPoints: Point[], elementOffset: Vector, snapState: SnapState, context: string, options: SnapOptions): void; /** * Creates snap lines from point snaps for rendering. * Groups points by context and coordinate to create visual guides. * * @param nearestSnapsX The nearest snaps in the X direction * @param nearestSnapsY The nearest snaps in the Y direction * @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 createPointSnapLines(nearestSnapsX: Snaps, nearestSnapsY: Snaps, transform: Matrix, contextGlobalRotations: Map, snapLines: SnapLines): void; //# sourceMappingURL=pointSnap.d.ts.map