export declare function catchErrors(fn: (...args: A) => Promise, errorHandler: (code: number, message: string, error: Error, args: A) => Promise): (...args: A) => Promise;