import type { ErrorType } from '../errors/utils.js'; 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>; }; export type CreateBatchSchedulerErrorType = ErrorType; /** @internal */ export declare function createBatchScheduler({ fn, id, shouldSplitBatch, wait, sort, }: CreateBatchSchedulerArguments): CreateBatchSchedulerReturnType; export {}; //# sourceMappingURL=createBatchScheduler.d.ts.map