import type { IParallelEnumerable, ParallelGeneratorType } from "../../types/index.js"; type FromParallelFunc = { /** * Creates an IParallelEnumerable from a function that returns an Array of Promises * @param type Array of Promises * @param generator Function that gives back an array of promises * @returns IParallelEnumerable */ (type: ParallelGeneratorType.ArrayOfPromises, generator: () => Promise[]): IParallelEnumerable; /** * Creates an IParallelEnumerable from a function that returns a Array Promise * @param type Promise to Array * @param generator Async function which returns an array of values * @returns IParallelEnumerable */ (type: ParallelGeneratorType.PromiseToArray, generator: () => Promise): IParallelEnumerable; /** * Creates an IParallelEnumerable from a function that returns an promise of an promise array of valus * @param type Promise of Promises * @param generator Async function that returns an array of value promises * @returns IParallelEnumerable */ (type: ParallelGeneratorType.PromiseOfPromises, generator: () => Promise[]>): IParallelEnumerable; }; export declare const fromParallel: FromParallelFunc; export {};