/** * Turns a viewport click point into a FeedbackPayload["anchor"] (schema v2): * position percentages, selector, element identity (tag/id/testid/role/ * text/label/rect), and structural context (nearest heading + landmark path). * * CRITICAL: the crosshair capture layer sits on top of the page, so a naive * elementFromPoint would resolve to the widget itself. We (a) temporarily set * the capture layer to pointer-events:none and (b) walk `elementsFromPoint` * skipping every node inside the widget host. The resulting target is always * a HOST-page element, never one of ours. Nothing here throws — selector / * element / heading / landmark are null on any error. * * PRIVACY: input values are never captured. For input/textarea/select the * `text` field is always null (label may carry placeholder/aria-label). */ import type { FeedbackPayload } from "../types"; type Anchor = FeedbackPayload["anchor"]; export declare function computeAnchor(clientX: number, clientY: number, host: Element, captureLayer: HTMLElement | null): Anchor; export {};