export declare function handleErrors(isVerbose: boolean, fn: Function): Promise;