import StackTrace from 'stacktrace-js';
export declare const FATAL_FLAG = "com.firebase.crashlytics.reactnative.fatal";
interface NativeErrorFrame {
    src: string;
    line: number;
    col: number;
    fn: string;
    file: string;
}
interface NativeErrorObj {
    message: string;
    isUnhandledRejection: boolean;
    frames: NativeErrorFrame[];
}
interface NativeModule {
    isCrashlyticsCollectionEnabled: boolean;
    isErrorGenerationOnJSCrashEnabled: boolean;
    isCrashlyticsJavascriptExceptionHandlerChainingEnabled: boolean;
    logPromise(message: string): Promise<void>;
    setAttribute(name: string, value: string): Promise<void>;
    recordErrorPromise(errorObj: NativeErrorObj): Promise<void>;
    crashWithStackPromise(errorObj: NativeErrorObj): Promise<void>;
}
export declare function createNativeErrorObj(error: Error, stackFrames: StackTrace.StackFrame[], isUnhandledRejection: boolean, jsErrorName?: string): NativeErrorObj;
export declare const setGlobalErrorHandler: (nativeModule: NativeModule) => (error: unknown, fatal?: boolean) => Promise<void>;
export declare const setOnUnhandledPromiseRejectionHandler: (nativeModule: NativeModule) => (_id: number, error: Error) => Promise<void>;
export {};
//# sourceMappingURL=handlers.d.ts.map