import { ErrorCombine, ErrorLevel, EventName, IData, ITrackerOptions, PlainObject } from '../types'; import { Errors } from './errors'; import { Xhr } from './xhr'; import { Reporter } from './report'; import { Fetch } from './fetch'; export declare const defaultTrackerOptions: ITrackerOptions; export declare class Monitor { static instance: Monitor; errors: Errors | undefined; xhr: Xhr | undefined; fetch: Fetch | undefined; reporter: Reporter | undefined; errorQueue: ErrorCombine[]; $data: IData; private readonly defaultOptions; $options: ITrackerOptions; private errorQueueTimer; constructor(options: Partial | undefined); static init(options?: Partial | undefined): Monitor; private initOptions; private initGlobalData; initInstances(): void; private handleErrorReport; private initEventListeners; private _on; on(event: EventName | Array, listener: (...args: any[]) => void): Monitor; once(event: EventName, listener: (...args: any[]) => void): Monitor; off(event: EventName, listener: (...args: any[]) => void): Monitor; removeAllListeners(event?: EventName | undefined): Monitor; emit(event: EventName, ...args: any[]): boolean; customEmits(args?: { detail?: string; path?: string; level?: ErrorLevel | string; }): boolean; useVueErrorListener(Vue: any): void; configData(key: string, value: unknown, deepmerge?: boolean): Monitor; configData(options: PlainObject, deepmerge?: boolean): Monitor; }