import { RefMap } from '../a11y-tree'; export declare const HIGHLIGHT_CONTAINER_ID = "webmcpcli-highlight-container"; export declare const HIGHLIGHT_CONTAINER_STYLE_ID = "webmcpcli-highlight-container-style"; export type HighlightRect = { top: number; left: number; width: number; height: number; }; /** * 解析高亮矩形。 * Tiny3 `ti-icon` / `tp-icon` 字形常画在 ::before 上,宿主 getBoundingClientRect 宽或高为 0, * 旧逻辑直接跳过导致帮助中心关闭/全屏等图标有 ref 却不高亮。 */ export declare function resolveHighlightRect(el: HTMLElement): HighlightRect | null; export declare const highlight: (refMap: RefMap, parentIframe?: HTMLIFrameElement | null) => void; /** 移除高亮, 可反复调用 */ export declare const unhighlight: () => void; /** 全局监听变化,随时准备移除高亮, 可反复调用 */ export declare const globalRemoveListener: () => void;