/** * Callback invoked for each value during iteration. May be sync or async. */ export type IterateFn = (value: T) => void | Promise; /** * Callback invoked for each page of values during iteration. May be sync or async. */ export type IteratePageFn = (values: T[]) => void | Promise; /** * Iterates over each value in the array sequentially, awaiting each callback before proceeding to the next. * * @param values - Array of values to iterate over. * @param useFn - Callback invoked for each value. * * @example * ```ts * await iterate([1, 2, 3], async (value) => { * await processItem(value); * }); * ``` */ export declare function iterate(values: T[], useFn: IterateFn): Promise;