/** * Weavetab — tools/console.ts * browser_console: Buffer last 50 console entries and exception events. * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; import type { Config } from "../config/loader.js"; export interface ConsoleEntry { type: string; text: string; timestamp: number; url?: string; } export declare function initConsoleBuffering(session: CDP.Client, targetId: string): void; export interface ConsoleOptions { action: "read" | "clear"; } export declare function browserConsole(session: CDP.Client, options: ConsoleOptions, _config: Config, targetId: string): Promise<{ success: boolean; logs: ConsoleEntry[]; }>;