import type { IActionHandler } from "sprotty"; import type { Action } from "sprotty-protocol"; import type { SRoot } from "../../model/sRoot.js"; import type { SCanvas } from "../../model/canvas/sCanvas.js"; import type { SnapLine } from "./model.js"; /** * State manager for snap lines */ export declare class SnapLinesStateManager implements IActionHandler { /** * Lookup for registered snap lines * Entries are sorted by the sequence number of the transaction */ private readonly snapLinesLookup; /** * Ids of commited transactions * Entries for these are removed as soon as possible */ private readonly commitedTransactionIds; handle(action: Action): void; /** * Returns the snap lines for the given context * Also cleans up the state and removes no longer needed entries * * @param context the context to get the snap lines for * @returns the snap lines for the given context */ getSnapLines(context: Readonly): SnapLine[]; } //# sourceMappingURL=snapLinesStateManager.d.ts.map