/** Exact image-to-input mapping. This module never infers a crop or display scale. */ export interface GeometryRect { x: number; y: number; width: number; height: number; } export interface CaptureTransform { /** Dimensions of the original capture, before cropping/resizing. */ capture: { width: number; height: number; }; /** Crop within the original capture. Omit only for a full capture. */ crop?: GeometryRect; /** Exact image supplied to vision; content excludes letterbox padding. */ image: { width: number; height: number; content?: GeometryRect; }; /** Original capture's rectangle in the input API's coordinate space. */ input: GeometryRect & { space: "device-pixel" | "screen-logical" | "css-viewport"; }; revision: string; windowId?: string; } export declare function pointInRect(point: { x: number; y: number; }, rect: GeometryRect): boolean; /** A point is usable only for the same capture revision and live target bounds. */ export declare function mapGroundedPoint(options: { point: { x: number; y: number; space: "normalized" | "image-pixel"; }; transform: CaptureTransform; currentRevision: string; currentWindowId?: string; liveBounds?: GeometryRect; }): { x: number; y: number; }; /** * Window capture backends currently expose no independent DPI/crop metadata. * Accept a 1:1 capture only; guessing a scale can click another application. */ export declare function windowCaptureTransform(capture: { width: number; height: number; }, window: GeometryRect & { windowId: string; }, revision: string): CaptureTransform;