/** * Browser instrument tools: console output and network / HAR capture. * * monobrowse captures all of this already — these tools are the part an MCP * client can reach. Output is shaped for an agent that has to decide what to * do next: counts first, worst offenders first, long lists capped with an * explicit note about what was dropped. * * Registered from `browser-tools.ts`; shared plumbing lives in * `browser-session.ts`, and the performance/emulation half in * `browser-profile-tools.ts`. */ import type { MCPTool } from './types.js'; export declare function clampLimit(value: unknown, fallback?: number): number; interface NormalizedRequest { url: string; method: string; status?: number; type: string; durationMs?: number; sizeBytes?: number; outcome: 'ok' | 'http-error' | 'no-response' | 'pending'; } /** Best-effort resource type — Chrome's capture records a MIME type, not a type. */ export declare function resourceType(url: string, mimeType?: string): string; /** Glob → RegExp, matching the semantics monobrowse uses for route patterns. */ export declare function globToRegex(pattern: string): RegExp; /** * Every request monobrowse holds for this CDP session: the live request * capture plus anything the HAR recorder has buffered, deduped by id. */ export declare function collectRequests(cdpSessionId: string): Promise; export declare const browserInstrumentTools: MCPTool[]; export default browserInstrumentTools; //# sourceMappingURL=browser-instrument-tools.d.ts.map