/** * DOM Debug Highlights for Browser Use * Provides element highlighting and debugging tools for interactive DOM elements. */ import type { DomService } from '../service'; import type { DOMSelectorMap } from '../views'; interface HighlightElement { x: number; y: number; width: number; height: number; interactive_index: number; element_name: string; is_clickable: boolean; is_scrollable: boolean; attributes: Record; frame_id?: string; node_id: number; backend_node_id: number; xpath?: string; text_content: string; reasoning?: { confidence?: string; primary_reason?: string; reasons?: string[]; element_type?: string; }; } /** * Convert selector map to highlight format expected by JavaScript */ export declare function convertSelectorMapToHighlightFormat(selectorMap: DOMSelectorMap): HighlightElement[]; /** * Remove all browser-use highlighting elements from the page */ export declare function removeHighlightingScript(domService: DomService): Promise; /** * Inject JavaScript to highlight interactive elements with detailed hover tooltips */ export declare function injectHighlightingScript(domService: DomService, interactiveElements: DOMSelectorMap): Promise; export {}; //# sourceMappingURL=highlights.d.ts.map