/** * Provides a global error handler to report errors.. */ import { DReactionCore } from 'dreaction-client-core'; import { LogBoxStatic as LogBoxStaticPublic } from 'react-native/Libraries/LogBox/LogBox'; interface LogBoxStaticPrivate extends LogBoxStaticPublic { /** * @see https://github.com/facebook/react-native/blob/v0.72.1/packages/react-native/Libraries/LogBox/LogBox.js#L29 */ addException: (error: any) => void; } declare const LogBox: LogBoxStaticPrivate; export interface ErrorStackFrame { fileName: string; functionName: string; lineNumber: number; columnNumber?: number | null; } export interface TrackGlobalErrorsOptions { veto?: (frame: ErrorStackFrame) => boolean; } /** * Track global errors and send them to DReaction logger. */ declare const trackGlobalErrors: (options?: TrackGlobalErrorsOptions) => (dreaction: DReactionCore) => { onConnect: () => void; features: { reportError: (error: Parameters[0]) => void; }; }; export default trackGlobalErrors; //# sourceMappingURL=trackGlobalErrors.d.ts.map