/** * Browser performance metrics for ExploreChimp — builds {@link MetricsPayload} * (`agents.proto`) in the page and returns it to Node. */ import type { MetricsPayload } from './agents-explorechimp-json'; export declare function parseExploreChimpLongTaskThresholdMs(): number; /** * Injects observers on every new document (Playwright init script). Idempotent per document. */ export declare function installExploreChimpPerfMetricsObservers(page: { addInitScript?: (...args: any[]) => Promise | void; }, longTaskThresholdMs: number): Promise; /** Same semantics as watcher.getMetricsSince — filters perf entries by wall-clock `since`. */ export declare function collectMetricsSince(page: { evaluate?: (fn: (arg: A) => T, arg: A) => Promise; }, sinceTimestamp: number): Promise; /** Clears in-page metric buffers (watcher.resetMetrics). */ export declare function resetExploreChimpPerfMetricsBuffers(page: { evaluate?: (fn: () => void, arg?: unknown) => Promise | void; }): Promise; //# sourceMappingURL=perf-metrics.d.ts.map