import { MouseListener as SprottyMouseListener } from "sprotty"; import type { ToolTypeProvider } from "../features/toolbox/toolState.js"; import type { KeyState } from "../features/key-state/keyState.js"; /** * Mouse listener which provides helper methods to determine the current tool type and if the scroll is forced. */ export declare class MouseListener extends SprottyMouseListener { /** * The tool type provider to determine the current tool type */ protected readonly toolTypeProvider: ToolTypeProvider; /** * The key state to check if the space key is pressed */ protected keyState: KeyState; /** * Checks if the current tool type is a regular interaction tool. * Regular interaction tools to not change how users interact with the canvas. * * @returns true if the current tool is a regular interaction tool */ protected isRegularInteractionTool(): boolean; /** * Checks if the scroll is forced by the user. * Scroll is forced if the space key is pressed or the middle mouse button is pressed. * * @param event the mouse event * @returns true if the scroll is forced */ protected isForcedScroll(event: MouseEvent): boolean; } //# sourceMappingURL=mouseListener.d.ts.map