export interface SimpleEventEmitterProperty { stop: () => void; } declare const _subscriptions: unique symbol; declare const _oneTimeEvents: unique symbol; export default class SimpleEventEmitter { private [_subscriptions]; private [_oneTimeEvents]; constructor(); on(event: string, callback: (data: T) => void): SimpleEventEmitterProperty; off(event: string, callback?: (data: T) => void): this; once(event: string, callback?: (data: T) => void): Promise; emit(event: string, data?: any): this; emitOnce(event: string, data?: any): this; pipe(event: string, eventEmitter: SimpleEventEmitter): SimpleEventEmitterProperty; pipeOnce(event: string, eventEmitter: SimpleEventEmitter): Promise; } export {}; //# sourceMappingURL=SimpleEventEmitter.d.ts.map