/**
 * Node.js EventEmitter shim
 * Basic event emitter implementation for browser environment
 */
export type EventListener = (...args: unknown[]) => void;
declare const kEvents: unique symbol;
declare const kMaxListeners: unique symbol;
export declare class EventEmitter {
    [kEvents]?: Map<string, EventListener[]>;
    [kMaxListeners]?: number;
    private _getEvents;
    on(event: string, listener: EventListener): this;
    addListener(event: string, listener: EventListener): this;
    once(event: string, listener: EventListener): this;
    off(event: string, listener: EventListener): this;
    removeListener(event: string, listener: EventListener): this;
    removeAllListeners(event?: string): this;
    emit(event: string, ...args: unknown[]): boolean;
    listeners(event: string): EventListener[];
    rawListeners(event: string): EventListener[];
    listenerCount(event: string): number;
    eventNames(): string[];
    setMaxListeners(n: number): this;
    getMaxListeners(): number;
    prependListener(event: string, listener: EventListener): this;
    prependOnceListener(event: string, listener: EventListener): this;
    static listenerCount(emitter: EventEmitter, event: string): number;
}
declare const events: typeof EventEmitter & {
    EventEmitter: typeof EventEmitter;
    once: (emitter: EventEmitter, event: string) => Promise<unknown[]>;
    on: (emitter: EventEmitter, event: string) => AsyncIterable<unknown[]>;
    getEventListeners: (emitter: EventEmitter, event: string) => EventListener[];
    listenerCount: (emitter: EventEmitter, event: string) => number;
};
export default events;
//# sourceMappingURL=events.d.ts.map