import { type ExceptionHandlerOptions } from './NativeGlobalExceptionHandler'; import { CrashType, type JSExceptionHandler, type NativeExceptionHandler } from './types'; export declare function setJSExceptionHandler(customHandler?: JSExceptionHandler, allowedInDevMode?: boolean): void; export declare function getJSExceptionHandler(): JSExceptionHandler | undefined; /** * Sets a handler for native exceptions with platform-specific options. * * @example * // New preferred way - using options object * setNativeExceptionHandler((error) => { * console.log('Native error:', error); * }, { * forceAppToQuit: true, // Android: force app to quit * callPreviouslyDefinedHandler: false // iOS: call previous handler * }); * * @example * // Simple usage with defaults * setNativeExceptionHandler((error) => { * console.log('Native error:', error); * }); */ export declare function setNativeExceptionHandler(customErrorHandler?: NativeExceptionHandler, options?: ExceptionHandlerOptions): Promise; /** * @deprecated Use the new signature with options object instead * @example * // Old way (still works but deprecated) * setNativeExceptionHandler(handler, true, false); */ export declare function setNativeExceptionHandler(customErrorHandler?: NativeExceptionHandler, forceApplicationToQuit?: boolean, executeDefaultHandler?: boolean): Promise; /** * @deprecated Use setNativeExceptionHandler instead */ export declare function setHandlerForNativeException(callback?: NativeExceptionHandler, callPreviouslyDefinedHandler?: boolean): void; export declare function simulateNativeCrash(crashType?: CrashType): void; export * from './types'; declare const _default: { setJSExceptionHandler: typeof setJSExceptionHandler; getJSExceptionHandler: typeof getJSExceptionHandler; setNativeExceptionHandler: typeof setNativeExceptionHandler; setHandlerForNativeException: typeof setHandlerForNativeException; simulateNativeCrash: typeof simulateNativeCrash; }; export default _default; //# sourceMappingURL=index.d.ts.map