/** * Weavetab — anticaptcha/solver.ts * Zero-API-key autonomous CAPTCHA solving via CDP mouse simulation. * * Strategies (no external services, no API keys): * - Slider/GeeTest: real bezier-curve drag with human timing + slight overshoot correction * - Press-and-hold: sustained mousedown with random micro-jitter * - Checkbox (reCAPTCHA / hCaptcha): real mouse click through iframe coordinates * - Invisible (v3, Turnstile): interaction burst to trigger score boost * - Image-select: screenshot → structural analysis (best-effort without vision API) * - Math/text: DOM scrape + solve * * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; import { CaptchaDetection } from "./detector.js"; export interface CaptchaSolution { solved: boolean; method: "automated" | "vision_assisted" | "manual_guidance" | "failed"; confidence: number; solution?: string; /** True only when ALL automated approaches have been exhausted. */ requiresUserIntervention: boolean; userInstructions?: string; timeToSolve: number; } export declare function solveCaptcha(session: CDP.Client, detection: CaptchaDetection): Promise;