export type AsyncBatchYieldMode = "frame" | "task"; export interface AsyncBatchOptions { /** Input items processed between main-thread task boundaries. */ chunkSize?: number; /** Yield on an animation frame (default) or a continuation task. */ yieldMode?: AsyncBatchYieldMode; signal?: AbortSignal; onProgress?: (processed: number, total: number | null) => void; } export interface ResolvedAsyncBatchOptions { chunkSize: number; yieldMode: AsyncBatchYieldMode; signal?: AbortSignal; onProgress?: (processed: number, total: number | null) => void; } export declare function resolveAsyncBatchOptions(options: AsyncBatchOptions, defaultChunkSize: number): ResolvedAsyncBatchOptions; export declare function asyncAbortError(): Error; export declare function throwIfAsyncAborted(signal?: AbortSignal): void; export declare function isAsyncIterable(value: unknown): value is AsyncIterable; /** Yield without the nested setTimeout clamp when the platform supports it. */ export declare function yieldAsyncBatch(mode: AsyncBatchYieldMode): Promise; //# sourceMappingURL=async-batch.d.ts.map