export interface QueueInterface { push(value: T): void; error(error: Error): void; done(): void; } export interface IterableQueueInterface extends AsyncIterableIterator, QueueInterface { } export declare class IterableQueue implements IterableQueueInterface { #private; push(value: T): void; done(): void; error(error: Error): void; next(): Promise>; [Symbol.asyncIterator](): AsyncIterableIterator; static create(): IterableQueueInterface; }