//#region src/promise/filter.d.ts /** * Iterates over an array and returns a promise that resolves with an array of elements * that pass the predicate test. Supports concurrency limiting. * * @template T - The type of the array elements * @param array - The array to iterate over * @param predicate - The function to test each element (can be async or return a promise) * @param concurrency - The maximum number of concurrent operations (default: Infinity) * @returns Returns a promise that resolves with an array of elements that passed the test * * @example * const numbers = [1, 2, 3, 4, 5]; * const evens = await filter(numbers, (n) => n % 2 === 0); * * @example * const users = await filter(userIds, (id) => checkUserActive(id), 2); // Max 2 concurrent checks */ declare function filter(array: T[], predicate: (value: T, index: number) => Promise | boolean, concurrency?: number): Promise; //#endregion export { filter }; //# sourceMappingURL=filter.d.cts.map