import type { Benchmark, BenchmarkFn, NormalizedSuiteOptions, Result, SuiteOptions } from './types.d.cts'; /** * create a benchmark object based on the name, group, and fn passed * @param name the name of the benchmark * @param benchmarkGroup either the benchmark function, or the group the benchmark lives in * @param benchmarkFn the benchmark function (only when a group is specified) */ export declare const createBenchmark: ( name: N, benchmarkGroup: string | BenchmarkFn, benchmarkFn?: BenchmarkFn, ) => Benchmark; /** * get the options passed merged with the defaults * @param passedOptions the options passed to merge * @returns the merged options */ export declare const getOptions: (passedOptions?: SuiteOptions) => NormalizedSuiteOptions; /** * return the current timestamp in fraction of milliseconds (as accurate as possible) * @returns the current timestamp */ export declare const now: () => number; /** * sort the results by operations per second (descending) * @param results the results to sort * @returns the sorted results */ export declare const sortResults: (results: Result[]) => Result[]; /** * wait the period of time passed (defaulting to 0) * @param delay the time to wait before resolving * @returns the promise that is resolved after the delay */ export declare const wait: (delay?: number) => Promise;