import { ErrorType } from "../errors/utils.js"; //#region src/utils/createBatchScheduler.d.ts type Resolved = [result: returnType[number], results: returnType]; type BatchResultsCompareFn = (a: result, b: result) => number; type CreateBatchSchedulerArguments = { fn: (args: parameters[]) => Promise; id: number | string; shouldSplitBatch?: ((args: parameters[]) => boolean) | undefined; wait?: number | undefined; sort?: BatchResultsCompareFn | undefined; }; type CreateBatchSchedulerReturnType = { flush: () => void; schedule: parameters extends undefined ? (args?: parameters | undefined) => Promise> : (args: parameters) => Promise>; }; type CreateBatchSchedulerErrorType = ErrorType; /** @internal */ declare function createBatchScheduler({ fn, id, shouldSplitBatch, wait, sort }: CreateBatchSchedulerArguments): CreateBatchSchedulerReturnType; //#endregion export { CreateBatchSchedulerErrorType, createBatchScheduler }; //# sourceMappingURL=createBatchScheduler.d.ts.map