import { IndexedSelector } from "../types/IndexedSelector"; /** * Projects each element of the source iterable into a new form. * * @typeParam T - Element type produced by the source iterable. * @typeParam TOut - Element type produced by the selector. * @param src - Source iterable to transform. * @param selector - Selector receiving each element and its index, producing the projected value. * @returns A deferred iterable yielding the selector results for each source element. * @throws Error Rethrows any error thrown by `selector`. * * @example * ```ts * const squares = [..._map([1, 2, 3], (value) => value * value)]; * console.log(squares); // [1, 4, 9] * ``` * * or using the curried version: * ```ts * const squares = [ * ...pipeInto( * [1, 2, 3], * map((value) => value * value) * ), * ]; * console.log(squares); // [1, 4, 9] * ``` */ export declare function _map(src: Iterable, selector: IndexedSelector): Iterable; /** * Curried version of {@link _map}. */ export declare const map: (selector: IndexedSelector) => (src: Iterable) => Iterable;