/** Test/performance instrumentation. Never adds response headers or logs data. */ import { type RequestDiagnosticRecord } from "./requestDiagnostics.js"; export type { RequestDiagnosticRecord } from "./requestDiagnostics.js"; export declare function runWithRequestDiagnostics(options: { surface: RequestDiagnosticRecord["surface"]; bindings: { d1?: boolean; kv?: boolean; r2?: boolean; }; }, run: () => Promise, observe: (record: RequestDiagnosticRecord) => void | Promise): Promise; /** Wrap before passing this same binding to Auth and D1DatabaseDriver. */ export declare function instrumentD1(db: D1Database): D1Database; export declare function instrumentKv(namespace: KVNamespace): KVNamespace; /** Payload bytes only; unconsumed/partially consumed GET bodies remain unknown. * A successful PUT of the exact GET stream confirms both transfers without * wrapping the stream (R2 needs its native known-length property). */ export declare function instrumentR2(bucket: R2Bucket): R2Bucket; //# sourceMappingURL=testing.d.ts.map