/** * Creates a function that will "batch" calls that are within the `timeout` * * The first time the function that is created is called, it will wait the `timeout` for additional calls. * After the `timeout` expires the result of one execution of `fn` will be resolved to all calls during the `timeout`. * * If `runNowFn` is specified it will be run synchronously without a timeout. Useful for functions that are used to set rather than get. * * @param {() => Promise} fn * @param {number} timeout (ms) * @param {(arg: U) => void} [runNowFn] * @returns {(arg?: U) => Promise} */ export declare function deferAndCombine(fn: (requestCount: number) => Promise, timeout: number, runNowFn?: (arg: U) => void): (arg?: U) => Promise; //# sourceMappingURL=deferAndCombine.d.ts.map