export declare function catchUserErrors(fn: (...args: Args) => R, errorMsg: string): (...args: Args) => R | undefined;