import Knex from 'knex'; export declare function setupMetrics(metricsOutputFile: string): void; export declare function setupDBMetrics(knex: Knex): void; export declare const timerFactory: (timingMetrics: boolean, prefix: string) => (label: string, cb: () => Promise) => Promise; export declare const timerFactorySync: (timingMetrics: boolean, prefix: string) => (label: string, cb: () => T) => T; /** * If timing metrics are turned this will wrap every function in a timerify which results in performance entries being logged * @param objectOrFunction The object with functions to wrap */ export declare function recordFunctionMetrics(objectOrFunction: T, timingMetrics?: boolean): T; //# sourceMappingURL=metrics.d.ts.map