import type { HivePubSub, KeyValueCache, KeyValueCacheSetOptions, MeshPubSub, YamlConfig } from '@graphql-mesh/types'; export default class LocalforageCache implements KeyValueCache { private localforage; constructor(config?: YamlConfig.LocalforageConfig & { pubsub?: MeshPubSub | HivePubSub; }); get(key: string): Promise; getKeysByPrefix(prefix: string): Promise; set(key: string, value: V, options?: KeyValueCacheSetOptions): Promise; delete(key: string): Promise; }