/**
 * Exception boundary
 *
 * @param fn executable function
 * @param onError callback that will be executed once exception occurred
 */
export default function bewareExceptions<T>(fn: () => T, onError?: (reason: any) => void): T | null;
