/** * 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. */ import type { EventEmitterLike } from "../types.js"; /** * Resolve when an emitter fires `event`, reject on `error`. */ export declare function onceEvent(emitter: EventEmitterLike, event: string): Promise;