import type { SharedSettings } from "@hylimo/diagram-protocol"; import type { SRoot } from "../../model/sRoot.js"; import type { SnapReferenceData } from "./model.js"; /** * Base class for snap handlers. */ export declare abstract class SnapHandler { protected referenceData: SnapReferenceData; /** * Shared settings for the snap handler. */ protected readonly settings: SharedSettings; /** * Creates a new SnapHandler. * * @param referenceData the reference data to use for snapping * @param settings the shared settings for the snap handler */ constructor(referenceData: SnapReferenceData, settings: SharedSettings | undefined); /** * Updates the reference data for snapping based on the current context. * * @param root The root element of the model */ updateReferenceData(root: SRoot): void; } //# sourceMappingURL=snapHandler.d.ts.map