///
import { Events } from "webextension-polyfill";
import { MockzillaDeep } from "mockzilla";
export declare class MockzillaEvent any> {
private listeners;
private disabled;
private prefix;
constructor(prefix: string);
addListener: jest.Mock;
removeListener: jest.Mock;
hasListener: jest.Mock;
hasListeners: jest.Mock;
disable(): void;
emit(...args: Parameters): void;
private disabledCheck;
}
export declare type MockzillaEventParameters = T extends (...args: any[]) => any ? Parameters : any[];
export declare type MockzillaEventFunction = T extends Events.Event ? (...args: MockzillaEventParameters) => void : (...args: any[]) => void;
export declare type MockzillaEventOf = T extends MockzillaDeep ? MockzillaEvent> : unknown;
export declare function mockEvent(builder: MockzillaDeep): MockzillaEvent>;