/** Test-only counts of named work boundaries, not a process-wide profiler. */ export interface PerfWorkCounters { /** Calls into a tree-sitter parser through the shared parse-budget boundary. */ sourceParses: number; fullNodeTableLoads: number; adjacencyBuilds: number; edgeStoreStatementPrepares: number; /** UTF-8 payload bytes sent through the two atomic artifact writers; excludes SQLite. */ atomicArtifactPayloadBytes: number; } /** Inert outside a measurement; the production path takes one branch. */ export declare function recordPerfWork(metric: keyof PerfWorkCounters, amount?: number): void; /** Avoid encoding the payload merely to measure it when no test is observing. */ export declare function recordAtomicArtifactPayload(data: string): void; /** Run one test operation with isolated counters, including its awaited async work. */ export declare function measurePerfWorkForTests(run: () => T | Promise): Promise<{ result: T; counters: Readonly; }>; //# sourceMappingURL=perf-counters.d.ts.map