export declare function errorBoundary(toRun: Function, onError?: Function, blockError?: boolean): Promise;