import type { BatchInput, BatchOptions, BatchResult, BatchSummary } from './types.js'; export type { AiGate, BatchAiOptions, BatchError, BatchInput, BatchOptions, BatchProgress, BatchRecord, BatchResult, BatchSummary, } from './types.js'; export { delay, mapOrdered, mapSync, mapUnordered } from './concurrency.js'; export { formatSummary } from './report.js'; /** * Analyse a stream of records, yielding one result each. * * The generator's **return value** is the summary, which `for await` discards — * use `runBatch` if that is what you want, or drive `.next()` yourself. */ export declare function streamBatch(source: AsyncIterable | Iterable, options?: BatchOptions): AsyncGenerator; /** * Run a batch to completion and return the summary. * * This is the shape for large input: results are handed to `onResult` as they * arrive and then dropped, so memory stays flat no matter how long the file is. */ export declare function runBatch(source: AsyncIterable | Iterable, options?: BatchOptions & { onResult?: (result: BatchResult) => void | Promise; }): Promise; //# sourceMappingURL=index.d.ts.map