import { RedisCache } from 'apollo-server-cache-redis';
import { KeyValueCacheType } from './typings';
export declare type RedisCacheType = RedisCache & {
rehydrate(): void;
};
/**
* @todo can rehydrate, integrate with sponge...
*/
export interface CacheConfigMap extends Map<string, any> {
get(key: 'cache'): KeyValueCacheType;
set(key: 'cache', value: KeyValueCacheType): this;
}
export declare const config: CacheConfigMap;
/**
* @todo cleanup typings & conditional
*/
export declare function toCache(): KeyValueCacheType | RedisCacheType;