/** * Catch errors rejected and thrown to reject a new one. * * `formatError` creates a new function by wrapping the given one. * * @export * @template F * @param {F} resolver - The resolver function that throws or rejects the error. * @param {(err: any) => any} [formatFunction=maskAndLogError] - The function that converts the error. * @returns {(...args: Parameters) => Promise>} The new function. */ export declare function formatError any>(resolver: F, formatFunction?: (err: any) => any): (...args: Parameters) => Promise>;