/** * Weavetab — tools/find.ts * browser_find: DEPRECATED — prefer browser_click with action:'find' which uses the same * resolution chain but with memory-intercept and URC cache for 10x faster results. * This shim is kept for backward compatibility only. * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; import type { Config } from "../config/loader.js"; export interface FindOptions { query: string; role?: string; fuzzy?: boolean; matchPlaceholder?: boolean; matchTitle?: boolean; all?: boolean; limit?: number; } export interface FindItem { ref?: string; selector: string; label: string; tag?: string; rect: { x: number; y: number; width: number; height: number; }; } export interface FindResult { success: boolean; found: boolean; total_matches?: number; matches?: FindItem[]; rect?: { x: number; y: number; width: number; height: number; }; nodeId?: number; selector?: string; label?: string; } export declare function browserFind(session: CDP.Client, options: FindOptions, _config: Config): Promise;