export type AsyncQueue = { push: (value: T) => void; fail: (err: Error) => void; close: () => void; iterable: AsyncIterable; }; export declare function createAsyncQueue(options?: { onCancel?: () => void; }): AsyncQueue;