/** * Zips an iterable of iterables into grouped iterables containing elements that share the same index. * * @typeParam TT - Element type produced by each inner iterable. * @param src - Iterable yielding the sequences to zip together. * @returns A deferred iterable whose elements are iterables of co-indexed values. * @throws Error Rethrows any error thrown while enumerating the source sequences. * * @example * ```ts * const sequences = [ * [1, 2, 3], * ["a", "b", "c"], * ]; * const grouped = Array.from(_zipAll(sequences), (group) => [...group]); * console.log(grouped); // [[1, "a"], [2, "b"], [3, "c"]] * ``` * * or using the curried version: * ```ts * const grouped = Array.from( * pipeInto( * [ * [1, 2, 3], * ["a", "b", "c"], * [true, false, true], * ], * zipAll() * ), * (group) => [...group] * ); * console.log(grouped); * // [[1, "a", true], [2, "b", false], [3, "c", true]] * ``` */ export declare function _zipAll(src: Iterable>): Iterable>; /** * Curried version of {@link _zipAll}. */ export declare const zipAll: () => (src: Iterable>) => Iterable>;