import type { DomicileHost } from "../domicile-host"; import type { Box } from "./windows"; export type Pointer = { /** * Put the pointer at a place in the page, in `clientX`/`clientY` * coordinates, as focus that follows the pointer needs. Clamped to the * page's box; NaN throws. * * With `unlessOver`, a box in the same coordinates, the pointer stays put * while it is over that box. The engine decides, since the page cannot see * the pointer move over a browser window's page. */ warp: (x: number, y: number, unlessOver?: Box) => void; /** * Hold the pointer inside `boxes`, in the page's CSS pixels, for a window * whose `pointerConstraint` is "confine"; none lets go, as the page going * away does. Resolves false where the engine cannot hold it: nested in * another compositor, or headless. */ confine: (boxes: readonly Box[]) => Promise; }; export declare const pointer: (host: Pick) => Pointer;