import { Cache } from "@peerbit/cache"; import { CollectNextRequest, type IterationRequest, type SearchRequest, type SearchRequestIndexed } from "@peerbit/document-interface"; import type * as indexerTypes from "@peerbit/indexer-interface"; export declare class ResumableIterators> { readonly index: indexerTypes.Index; readonly queues: Cache<{ iterator: indexerTypes.IndexIterator; request: SearchRequest | SearchRequestIndexed | IterationRequest; keepAlive: boolean; }>; constructor(index: indexerTypes.Index, queues?: Cache<{ iterator: indexerTypes.IndexIterator; request: SearchRequest | SearchRequestIndexed | IterationRequest; keepAlive: boolean; }>); iterateAndFetch(request: SearchRequest | SearchRequestIndexed | IterationRequest, options?: { keepAlive?: boolean; }): Promise>; next(request: SearchRequest | SearchRequestIndexed | IterationRequest | CollectNextRequest, options?: { keepAlive?: boolean; }): Promise>; close(close: { idString: string; }): void; private clear; clearAll(): Promise; has(id: string): boolean; getPending(id: string): Promise; } //# sourceMappingURL=resumable-iterator.d.ts.map