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