1*26ad19fcSEvan Bacon/** 2*26ad19fcSEvan Bacon * Copyright (c) 650 Industries. 3*26ad19fcSEvan Bacon * Copyright (c) Meta Platforms, Inc. and affiliates. 4*26ad19fcSEvan Bacon * 5*26ad19fcSEvan Bacon * This source code is licensed under the MIT license found in the 6*26ad19fcSEvan Bacon * LICENSE file in the root directory of this source tree. 7*26ad19fcSEvan Bacon */ 8*26ad19fcSEvan Bacontype ExtendedError = any; 9*26ad19fcSEvan Bacondeclare class SyntheticError extends Error { 10*26ad19fcSEvan Bacon name: string; 11*26ad19fcSEvan Bacon} 12*26ad19fcSEvan Bacondeclare function parseException(e: ExtendedError, isFatal: boolean): { 13*26ad19fcSEvan Bacon isComponentError: boolean; 14*26ad19fcSEvan Bacon message: any; 15*26ad19fcSEvan Bacon originalMessage: any; 16*26ad19fcSEvan Bacon name: any; 17*26ad19fcSEvan Bacon componentStack: any; 18*26ad19fcSEvan Bacon stack: (import("stacktrace-parser").StackFrame & { 19*26ad19fcSEvan Bacon collapse?: boolean | undefined; 20*26ad19fcSEvan Bacon })[]; 21*26ad19fcSEvan Bacon id: number; 22*26ad19fcSEvan Bacon isFatal: boolean; 23*26ad19fcSEvan Bacon extraData: { 24*26ad19fcSEvan Bacon jsEngine: any; 25*26ad19fcSEvan Bacon rawStack: any; 26*26ad19fcSEvan Bacon }; 27*26ad19fcSEvan Bacon}; 28*26ad19fcSEvan Bacon/** 29*26ad19fcSEvan Bacon * Logs exceptions to the (native) console and displays them 30*26ad19fcSEvan Bacon */ 31*26ad19fcSEvan Bacondeclare function handleException(e: any): void; 32*26ad19fcSEvan Bacondeclare const ErrorUtils: { 33*26ad19fcSEvan Bacon parseException: typeof parseException; 34*26ad19fcSEvan Bacon handleException: typeof handleException; 35*26ad19fcSEvan Bacon SyntheticError: typeof SyntheticError; 36*26ad19fcSEvan Bacon}; 37*26ad19fcSEvan Baconexport default ErrorUtils; 38*26ad19fcSEvan Bacon//# sourceMappingURL=index.d.ts.map