import { DOMCoordinates, Pixel, Rect } from "../..";
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
export type ZoomedMouseEvent<T extends MouseEvent | PointerEvent> = {
    clientX: Pixel;
    clientY: Pixel;
    offsetX: Pixel;
    offsetY: Pixel;
    ev: T;
};
/**
 * Return a POJO containing the original event as well as the client position and the client offset
 * where the event would target if the spreadsheet was not zoomed
 * @param ev unzoomed mouse event
 * @param originalTargetPosition The original target bounding rect the resulting ZoomedMouseEvent offset must refer to
 * @returns a ZoomedMouseEvent
 */
export declare function withZoom<T extends MouseEvent>(env: SpreadsheetChildEnv, ev: T, originalTargetPosition?: DOMCoordinates | null): ZoomedMouseEvent<T>;
/**
 * Return a Rect with position and size on the zoomed canvas
 */
export declare function getZoomedRect(zoom: number, rect: Rect): Rect;
