import { ApiParams } from './grpc-gateway'; /** * This class will dedupe api calls * Multiple calls within a period of time will only fire up one api call to the server, * all the other calls will get the same response as the fired one * * Only api calls in the DEDUPE_API list will be affected. */ export declare class DedupeApi { private pool; private cleaner; private apiQueue; constructor(); dedupe(func: (apiName: string, params?: ApiParams, forceLongOrShort?: boolean) => Promise, apiName: string, params?: ApiParams, forceCall?: boolean, forceLongOrShort?: boolean): Promise; clean(): void; /** * Get rid of data in pool that exists for more than EXPIRE_TIME */ private cleanData; private getKey; } //# sourceMappingURL=dedupe-api.d.ts.map