/** * Copyright (c) 2020 TypeFox GmbH. All rights reserved. * Licensed under the GNU Affero General Public License (AGPL). * See License-AGPL.txt in the project root for license information. */ export declare function find(it: AsyncIterableIterator, predicate: (value: T) => boolean): Promise; export declare function filter(it: AsyncIterableIterator, predicate: (value: T) => boolean): Promise; export interface AsyncCachingIterator extends AsyncIterableIterator { resetCursor(): void; } export declare class AsyncCachingIteratorImpl implements AsyncIterableIterator, AsyncCachingIterator { protected readonly iterable: AsyncIterableIterator; protected cache: T[]; protected cursor: number; protected cacheRead: boolean; constructor(iterable: AsyncIterableIterator); resetCursor(): void; next(value?: any): Promise>; [Symbol.asyncIterator](): this; } //# sourceMappingURL=async-iterator.d.ts.map