import { GraphQLResponse, CachedEntry } from "./queryTypes"; export default class Cache { private cacheSize; constructor(cacheSize?: number); _cache: Map> | CachedEntry>; get noCaching(): boolean; get keys(): string[]; get entries(): [string, Promise> | CachedEntry][]; get(key: string): Promise> | CachedEntry | undefined; set(key: string, results: CachedEntry): void; clearCache(): void; setPendingResult(graphqlQuery: string, promise: Promise>): void; setResults(promise: Promise, cacheKey: string, resp?: GraphQLResponse, err?: Object | null): void; getFromCache(key: string, ifPending: (p: Promise) => void, ifResults: (entry: CachedEntry) => void, ifNotFound: () => void): void; } export declare const DEFAULT_CACHE_SIZE = 10;