export default class PendingRequestStore { /** * @type {{ [requestId: string]: { promise: Promise, resolve: (value?: any) => void } }} * @private */ private _pendingRequests; /** * Creates a promise for a pending request with given key * @param {string} requestId */ set(requestId: string): void; /** * Gets the promise for a pending request with given key * @param {string} requestId * @returns {Promise | undefined} */ get(requestId: string): Promise | undefined; /** * Resolves the promise of a pending request that matches the given string * @param { string } requestId the requestId to resolve */ resolve(requestId: string): void; /** * Resolves the promise of pending requests that match the given regex * @param { RegExp } regex an regular expression to match store entries */ resolveMatching(regex: RegExp): void; reset(): void; } //# sourceMappingURL=PendingRequestStore.d.ts.map