/** * Weavetab — tools/performance.ts * browser_performance: page performance metrics — Core Web Vitals, memory, navigation timing, resources, raw CDP counters. * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; import type { Config } from "../config/loader.js"; export interface PerformanceOptions { metrics?: ("vitals" | "memory" | "navigation" | "resources" | "raw")[]; } export interface PerformanceResult { success: boolean; metrics?: Record; vitals?: Record; memory?: Record; navigation?: Record | null; slowest_resources?: any[]; } export declare function browserPerformance(session: CDP.Client, _config: Config, options?: PerformanceOptions): Promise;