declare type AsyncOrSyncIterable = import("../../lib/AsyncOrSyncIterable.js").AsyncOrSyncIterable; export default class CountClosing implements AsyncGenerator { private _closed; private readonly _iterator; private readonly _throwError; constructor(iterable: AsyncOrSyncIterable, throwError?: boolean); readonly closed: number; next(): Promise>; return(): Promise<{ done: true; value: undefined; }>; throw(err: any): Promise>; [Symbol.asyncIterator](): AsyncGenerator; } export {};