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