/** * Weavetab — tools/eval.ts * browser_eval: Run arbitrary sandboxed JS via Runtime.evaluate. * Special command: expression "Weavetab.usage()" returns session metrics. * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; import type { Config } from "../config/loader.js"; export interface EvalOptions { expression: string; timeout?: number; } export declare function browserEval(session: CDP.Client, options: EvalOptions, _config: Config): Promise<{ success: boolean; result: any; type: string; error?: string; url?: string; title?: string; }>;