/** * Weavetab — tools/scrape.ts * browser_scrape: Rapid structured data extraction using CSS selectors/XPath. * * Secret containment: any element marked data-wt-secret or type="password" has * all requested attributes replaced with "[REDACTED]" in the returned result. * This is evaluated inside the in-page expression so the secret value never * crosses the CDP returnByValue boundary. * * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; import type { Config } from "../config/loader.js"; export interface ScrapeOptions { query: string; type?: "css" | "xpath"; attributes?: string[]; multiple?: boolean; } export declare function browserScrape(session: CDP.Client, options: ScrapeOptions, _config: Config): Promise<{ success: boolean; data: any[]; message: string; }>;