import { type Awaitable } from "../resource/scope.ts"; import type { IterationOptions, IterationResult, IterationScope } from "./scoped.iteration.ts"; export declare function iterate(parent: S, items: Iterable | AsyncIterable, options: IterationOptions, operation: (item: Awaited, ctx: S, index: number) => Awaitable, collect: (index: number, value: R) => void): Promise;