/** * Weavetab — intelligence/vision.ts * Local pixel-analysis visual fallback — runs when CDP AX tree returns 0 elements. * No external APIs. No ML. Pure image analysis using sharp. * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; export interface ClickableZone { x: number; y: number; width: number; height: number; } export interface VisualFallback { page_state: "loading" | "blank" | "content" | "error_page"; text_density: number; content_heatmap: string; clickable_zones: ClickableZone[]; } /** * Capture a CDP screenshot, run local pixel analysis, and return * structured signal the agent can use when the AX tree is empty. */ export declare function analyzeVisualFallback(session: CDP.Client): Promise;