import { JsErrorReport, MonitorConstructor } from '../../types';
import { ReactInfo } from '../../types/thrift/browser/collector_v2/js_error';
export interface JsErrorProps {
    ignoreErrors: (string | RegExp)[];
    onerror: boolean;
    onunhandledrejection: boolean;
    captureGlobalAsync?: boolean;
    dedupe?: boolean;
}
export interface TearDown {
    (): void;
}
export declare type ReportJsError = (ex: any, extra?: Record<string, string>, react?: ReactInfo) => void;
export declare type JsErrorMonitorConstructor = MonitorConstructor<JsErrorProps, JsErrorReport, [
    window: Window
], [
    ReportJsError,
    TearDown
]>;
