/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ import { RuntimeContext } from '../execution/runtime-context.js'; type UniformlyChunkedFn = (chunkSize: number, state: S) => number; declare function chunkedSubtask(ctx: RuntimeContext, initialChunk: number, state: S, f: UniformlyChunkedFn, update: (ctx: RuntimeContext, state: S, processed: number) => Promise | void): Promise; export { chunkedSubtask };