import { AggregationCursor } from "mongodb"; import { IDocumentClass } from "../types"; interface IAsyncIterator { next(value?: any): Promise>; } export declare class AggregateAsyncIterator { readonly classObject: TD; readonly cursor: AggregationCursor; private _toDocument; constructor(options: { cursor: AggregationCursor; classObject: TD; toDocument: boolean; }); [Symbol.asyncIterator](): IAsyncIterator; } export {};