export declare const FRAME_SHIELD_ATTRIBUTE = "data-select-mode-frame-shield"; export declare const FRAME_SHIELD_CSS = "iframe { pointer-events: none !important; }"; /** * Select mode shields iframes from the pointer so presses over an embed reach * this document instead of the embed's own (often cross-origin) one. The hit * element is then whatever sits behind the frame, so lift the shield for one * native hit test to find the frame the user actually pointed at. A frame * injected as raw HTML has no React source, so prefer its nearest * React-rendered ancestor, which the agent can edit. React 19 renders * too, so stop below it: a widget script appends its frame straight to the * body, and selecting the frame beats selecting the whole page. */ export declare function getSelectionTargetForEmbeddedFrameHit({ hitElement, clientX, clientY, }: { hitElement: Element; clientX: number; clientY: number; }): Element;