import type { AnyIterable } from "../../types"; /** * Concatenates multiple input iterables into a single asynchronous iterable. * * @group Lazy helpers * @template T - The type of elements in the input iterables. * @param iterables - The iterables to concatenate. * @returns A function that accepts an input iterable and returns a concatenated asynchronous iterable. * * @example * ```ts * const input1 = [1, 2, 3]; * const input2 = [4, 5, 6]; * const concatenatedIterable = concat(input2)(input1); * * (async () => { * for await (const x of concatenatedIterable) { * console.log(x); // Logs 1, 2, 3, 4, 5, 6 * } * })(); * ``` */ export declare const concat: (...iterables: AnyIterable[]) => (input: AnyIterable) => AsyncIterable>; /** * Concatenates multiple input sync iterables into a single sync iterable. * * @group Lazy helpers * @template T - The type of elements in the input sync iterables. * @param iterables - The sync iterables to concatenate. * @returns A function that accepts an input sync iterable and returns a concatenated sync iterable. * * @example * ```ts * const input1 = [1, 2, 3]; * const input2 = [4, 5, 6]; * const concatenatedSyncIterable = concatSync(input2)(input1); * * for (const x of concatenatedSyncIterable) { * console.log(x); // Logs 1, 2, 3, 4, 5, 6 * } * ``` * * @remarks * Available as `concat` when imported from `peter-piper/sync`. */ export declare const concatSync: (...iterables: Iterable[]) => (input: Iterable) => Iterable;