import type { AnyIterable } from "../../types"; /** * Retrieves the element at a given index from an input iterable. * * @group Greedy helpers * @template T - The type of elements in the input iterable. * @param i - The index of the element to retrieve. * @returns A function that accepts an input iterable and returns the element at the specified index. * * @example * ```ts * const input = [1, 2, 3]; * const elementAtIndex2 = at(2)(input); * console.log(elementAtIndex2); // Logs 3 * ``` */ export declare const at: (i: number) => (input: AnyIterable) => Promise; /** * Retrieves the element at a given index from an input sync iterable. * * @group Greedy helpers * @template T - The type of elements in the input sync iterable. * @param i - The index of the element to retrieve. * @returns A function that accepts an input sync iterable and returns the element at the specified index. * * @example * ```ts * const input = [1, 2, 3]; * const elementAtIndex2 = atSync(2)(input); * console.log(elementAtIndex2); // Logs 3 * ``` * * @remarks * Available as `at` when imported from `peter-piper/sync`. */ export declare const atSync: (i: number) => (input: Iterable) => T | undefined;