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