import type { WalkontableInstance } from '../types'; import type { default as Settings } from '../settings'; import type { GeometryReader } from '../domMeasure/geometryReader'; import type { default as Table } from '../table/baseTable'; interface MousePositionDeps { wtSettings: Settings; geometryReader: GeometryReader; wtTable: Table; rootWindow: Window; facadeGetter: Function; } /** * Finds which column the mouse is over within a given column range. * * @param {Walkontable} wotInstance The Walkontable instance. * @param {number} row Row to use for measuring cell widths. * @param {number} startColumn First column in the range. * @param {number} endColumn Last column in the range (inclusive). * @param {number} relativeX Mouse X position relative to the first cell's left edge (or right edge in RTL). * @returns {number | null} Column index, or null if the mouse is outside the range. */ export declare function findColumnAtX(wotInstance: WalkontableInstance, row: number, startColumn: number, endColumn: number, relativeX: number): number | null; /** * Finds which row the mouse is over within a given row range. * * @param {Walkontable} wotInstance The Walkontable instance. * @param {number} column Column to use for measuring cell heights. * @param {number} startRow First row in the range. * @param {number} endRow Last row in the range (inclusive). * @param {number} relativeY Mouse Y position relative to the first cell's top edge. * @returns {number | null} Row index, or null if the mouse is outside the range. */ export declare function findRowAtY(wotInstance: WalkontableInstance, column: number, startRow: number, endRow: number, relativeY: number): number | null; /** * Returns the cell coordinates for the given mouse position and whether the mouse is * outside the visible viewport. When the mouse is outside, the nearest edge cell is returned. * * @param {MousePositionDeps} deps The layout/settings/geometry dependencies (satisfied by `Event`'s deps). * @param {number} mouseX Client X coordinate of the mouse. * @param {number} mouseY Client Y coordinate of the mouse. * @returns {{ coords: CellCoords, isOutside: boolean }} */ export declare function getCellCoordsFromMousePosition(deps: MousePositionDeps, mouseX: number, mouseY: number): { coords: any; isOutside: boolean; }; export {};