/** * Weavetab — src/sensors/pacing.ts * Human Pacing System — pass-through wrapper that records timing telemetry. * All human-like delays live in ghost.ts (ghostMove, ghostType). * This file does NOT add its own delays — eliminates the "double pacing" bug. * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; export declare const HumanPace: { afterRead: () => Promise; betweenClicks: () => Promise; afterNavigate: () => Promise; thinkingPause: () => Promise; fieldToField: () => Promise; beforeSubmit: () => Promise; }; export interface ToolCallMetrics { tool: string; inputTokens: number; outputTokens: number; totalTokens: number; latencyMs: number; timestamp: number; } /** * Returns a session-level usage summary. * Exposed to browser_eval via window.__wt_get_usage(). */ export declare function getUsageStats(): { totalCalls: number; totalTokens: number; byTool: { tool: string; calls: number; tokens: number; avgLatencyMs: number; }[]; topSlowest: string[]; }; /** * Wraps a tool action — records timing + updates HUD state. * No artificial delays added here; ghost.ts handles human-like pacing. */ export declare function agentAction(session: CDP.Client, type: 'clicking' | 'typing' | 'reading' | 'thinking' | 'navigating', fn: () => Promise, toolName?: string): Promise;