import type { AnyIterable } from "../../types"; /** * Creates a buffered asynchronous iterable from an input iterable with a specified time delay between elements. * * @group Lazy helpers * @template T - The type of elements in the input iterable. * @param ms - The number of milliseconds to delay between elements. * @returns A function that accepts an input iterable and returns a buffered asynchronous iterable with the specified delay. * * @example * ```ts * const input = [1, 2, 3]; * const bufferedIterable = buffer(500)(input); * * (async () => { * for await (const x of bufferedIterable) { * console.log(x); // Logs 1, 2, 3 with a 500ms delay between each value * } * })(); * ``` */ export declare const buffer: (ms: number) => (input: AnyIterable) => AsyncIterable>;