export interface BatchPromiseOptions { /** Minimum time (in ms) to pass after the last call, before triggering the batch */ throttleMs?: number; } /** Creates an async function, which can collect several calls to it, and execute them in a single batch via provided callback. */ export declare function batch(runBatch: (batch?: TArg[]) => Promise | Promise | undefined | void, options?: BatchPromiseOptions): { (arg: TArg, options?: BatchPromiseOptions): Promise; isBusy: boolean; }; //# sourceMappingURL=batch.d.ts.map