// eslint-disable-next-line import/namespace // @ts-ignore import type { StackFrame } from 'react-native/Libraries/Core/NativeExceptionsManager'; // @ts-ignore import type { HermesParsedStack } from 'react-native/Libraries/Core/Devtools/parseHermesStack'; // Fixing react-native/Libraries/Core/Devtools/symbolicateStackTrace // since the native type definitions are wrong lol /** @see https://github.com/facebook/react-native/blob/v0.72.1/packages/react-native/Libraries/Core/Devtools/parseErrorStack.js#L41-L57 */ export type ParseErrorStackFn = ( errorStack?: string | T | HermesParsedStack ) => Array;