///
import { EventEmitter } from 'events';
declare function once(emitter: EventEmitter, name: string): once.CancelablePromise;
declare namespace once {
interface CancelFunction {
(): void;
}
interface CancelablePromise extends Promise {
cancel: CancelFunction;
}
type CancellablePromise = CancelablePromise;
function spread(emitter: EventEmitter, name: string): once.CancelablePromise;
}
export = once;