import { Batcher } from "./types"; /** * Factory to make an API call batcher. * * It will wait for a complete `tick` to accumulate all the requests * before sending it as one call to a given API. * Once the response is received, it will then spread the results to each request Promise, * just like if each request had been made separately. * * Inspired by https://github.com/graphql/dataloader */ export declare const makeBatcher: (request: (input: I[], params: P) => Promise, params: P) => Batcher; //# sourceMappingURL=index.d.ts.map