/**
 * Small event utilities for Node-style emitters.
 *
 * Prefer keeping this separate from the main stream implementation so other
 * modules (e.g. archive) can reuse it without pulling in the whole stream API.
 */
type NodeStyleEmitter = {
    on?: (event: string, listener: (...args: any[]) => void) => any;
    once?: (event: string, listener: (...args: any[]) => void) => any;
    off?: (event: string, listener: (...args: any[]) => void) => any;
    removeListener?: (event: string, listener: (...args: any[]) => void) => any;
};
/**
 * Resolve when an emitter fires `event`, reject on `error`.
 */
export declare function onceEvent(emitter: NodeStyleEmitter, event: string): Promise<void>;
export {};
