/** * Yields a tuple for each item in the iterable with the index of said item. * * @category Generators * @example * ```typescript * zipIndex(["foo", "bar"]); // [[0, "foo"], [1, "bar"]] * ``` * @param iterable Iterable to add indexes to. * @yields Tuples with the index of each item. */ export declare const zipIndex: < SecondIterable extends import("@vangware/types").IsomorphicIterable, >( iterableSecond: SecondIterable, ) => SecondIterable extends import("@vangware/types").IsomorphicIterable< infer SecondItem > ? SecondIterable extends { readonly [Symbol.asyncIterator]: () => AsyncIterator< SecondItem, any, undefined >; } ? { readonly [Symbol.asyncIterator]: () => AsyncIterableIterator< readonly [number, SecondItem] >; readonly next: ( ...args: [] | [undefined] ) => Promise< IteratorResult >; readonly return?: | (( value?: any, ) => Promise< IteratorResult >) | undefined; readonly throw?: | (( e?: any, ) => Promise< IteratorResult >) | undefined; } : { readonly [Symbol.iterator]: () => IterableIterator< readonly [number, SecondItem] >; readonly next: ( ...args: [] | [undefined] ) => IteratorResult; readonly return?: | (( value?: any, ) => IteratorResult) | undefined; readonly throw?: | (( e?: any, ) => IteratorResult) | undefined; } : never;