import type { Benchmark as BenchmarkInterface, BenchmarkEnableOnCallable, BenchmarkMeasurement, BenchmarkMeasureOptions, BenchmarkOutputCallable, BenchmarkRuns } from "./types.js"; export declare class Benchmark implements BenchmarkInterface { readonly measurements: BenchmarkMeasurement[]; private outputDone; private isAlreadyRunning; private totalElapsed; readonly runs: BenchmarkRuns; private readonly enableOnCallables; private readonly onOutputCallables; private state; get elapsed(): number; enableOn(cb: BenchmarkEnableOnCallable): void; onOutput(cb: BenchmarkOutputCallable): void; enable(): void; disable(): void; /** * When running the output, we need to reverse the callables array, so that the last one added is the first one executed. * * The last one is our built-in console.log output. */ output(): Promise; measure(options: BenchmarkMeasureOptions | string, cb: () => Promise): Promise; private getIsAlreadyRunning; private startRunning; private endRunning; private getIsEnabled; private addElapsed; private addRun; private setState; private startMeasurement; private stopMeasurement; }