/** Provides a way for callbacks to signal early completion */ export declare class StopError extends Error { } /** * Converts an async iterable into a series of callbacks. The function returns * a promise that resolves when the stream is done * * @param callback the callback that gets called for each value */ export declare function toCallbacks(callback: (result: IteratorResult) => Promise): (source: AsyncIterable) => Promise;