/** * Computes the cartesian product of the provided sequences while preserving source order. * * @typeParam T - Element type produced by each source iterable. * @param sequences - Iterable of iterables for which to compute the cartesian product. * @returns A deferred iterable yielding every ordered combination of the source sequences. * @example * ```ts * const combinations = [ * ...cartesian([ * ["A", "B"], * [1, 2], * ].map((arr) => arr.values())), * ].map((combo) => [...combo]); * console.log(combinations); // [["A", 1], ["A", 2], ["B", 1], ["B", 2]] * ``` */ export declare const cartesian: (sequences: Iterable>) => Iterable>;