import type { SpyConsole, PageSpyPlugin, OnInitParams } from '@huolala-tech/page-spy-types';
import { InitConfig } from '../config';
export default class ErrorPlugin implements PageSpyPlugin {
    name: string;
    static hasInitd: boolean;
    $pageSpyConfig: InitConfig | null;
    onInit({ config }: OnInitParams<InitConfig>): void;
    onReset(): void;
    onUncaughtError(): void;
    onResourceLoadError(): void;
    onUnhandledRejectionError(): void;
    uncaughtErrorListener: (e: ErrorEvent) => void;
    resourceLoadErrorListener: (evt: Event) => void;
    rejectionListener: (evt: PromiseRejectionEvent) => void;
    sendMessage(data: any, errorDetail: SpyConsole.DataItem['errorDetail'] | null): void;
}
