/** * Turning raw browser instrument output into a verdict. * * Pure functions only — no CDP, no session, no I/O — so the judgement calls * (what counts as a poor LCP, which function is actually hot) can be read and * tested on their own. Used by the tools in `browser-profile-tools.ts`. */ export declare function gradeVitals(vitals: Record): { assessment: Record; worst: string[]; }; interface CpuProfileNode { id: number; callFrame: { functionName?: string; url?: string; lineNumber?: number; }; hitCount?: number; } export interface TopFunction { functionName: string; url?: string; line?: number; selfMs: number; selfPercent: number; } /** * Self time per function from a V8 .cpuprofile. Sampling profiles record a hit * count per node; self time is that share of the wall-clock window. */ export declare function summarizeCpuProfile(profile: { nodes?: CpuProfileNode[]; startTime?: number; endTime?: number; }, top: number): { durationMs: number; totalSamples: number; topFunctions: TopFunction[]; }; export {}; //# sourceMappingURL=browser-metrics.d.ts.map