/** * Transforms each entity in the async iterator using the provided function. * @param {AsyncIterableIterator} iterator source entity iterator. * @param {(entity: TSource) => TTarget} mapFunc function to transform elements from `TSource` to `TTarget`. * @returns {AsyncIterableIterator} iterator of transformed elements. */ export declare function map(iterator: AsyncIterableIterator, mapFunc: (entity: TSource) => TTarget): AsyncIterableIterator; /** * Transforms an iterator of entity pages into an iterator of entities. * @param {AsyncIterableIterator} pagedIterator iterator of entity pages. * @returns {AsyncIterableIterator} iterator of entities. */ export declare function flatten(pagedIterator: AsyncIterableIterator): AsyncIterableIterator; /** * Loads all entities from an iterator into an array. * @param {AsyncIterableIterator} iterator entity iterator. * @returns {Promise} entity array. */ export declare function toArray(iterator: AsyncIterableIterator): Promise; /** * Loads top n entities from an iterator into an array. * @param {AsyncIterableIterator} iterator source entity iterator. * @param {number} entityCount number of entities to load. * @returns {Promise} entity array that contains a number of top elements specified. If iterator contains * less items than specified in `entityCount` length of the array will be less than `entityCount`. If * iterator contains no entities the array will be empty. */ export declare function take(iterator: AsyncIterableIterator, entityCount: number): Promise; //# sourceMappingURL=IteratorUtilFunctions.d.ts.map