import { Indexed } from "../types/Indexed"; /** * Restores the original sequence order from an iterable of value-index tuples. * * @typeParam T - Element type contained in each indexed entry. * @param src - Iterable of value/index pairs to reorder and unwrap. * @returns A deferred iterable yielding the values ordered by their stored indices. * * @example * ```ts * const indexed: Indexed[] = [ * ["two", 1], * ["zero", 0], * ["one", 2], * ]; * const values = [..._unwrapIndexed(indexed)]; * console.log(values); // ["zero", "two", "one"] * ``` * * or using the curried version: * ```ts * const values = [ * ...pipeInto( * [ * ["two", 1], * ["zero", 0], * ["one", 2], * ] as Indexed[], * unwrapIndexed() * ), * ]; * console.log(values); // ["zero", "two", "one"] * ``` */ export declare function _unwrapIndexed(src: Iterable>): Iterable; /** * Curried version of {@link _unwrapIndexed}. */ export declare const unwrapIndexed: () => (src: Iterable>) => Iterable;