/** * Measures the time needed to execute the given action and logs it using the given logger. * @param action The action whose time is to measured. * @param logger The logger the response time should be logged with. console will be used by default. * @param logMessageFormat The format of the log message. You can use the `$(time)` placeholder, * which will be replaced with the execution time in milliseconds. * @param warningThreshold * @returns */ export declare function logExecutionTime(action: () => Promise, logMessageFormat?: string, warningThreshold?: number, logger?: { info(message: string): void; warn(message: string): void; }): Promise; /** * Method decorator which measures the time needed to execute the decorated method. * It retrieves a logger from `TransportLoggerFactory` for class owning the method. * If `TransportLoggerFactory` is not initialized, `console` is used instead. * @param logMessageFormat * Format for the log message. Supports the following placeholders: * $(method) (name of the called method as is) * $(time) (the execution time) * $(arg0) (the first argument of the called method) * $(arg1) (the second argument of the called method) * $(arg2) (the third argument of the called method) */ export declare function logExecutionTimeDecorator(logMessageFormat?: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void; //# sourceMappingURL=logExecutionTime.d.ts.map