import { FetchResult } from './typings' ; export interface CacheLayer < K , V > { get ( key , fetcher ? ) : Promise < V | void > | V | void ; has ( key ) : Promise < boolean > | boolean ; set ( key , value , maxAge ? ) : Promise < boolean > | boolean ; getStats ? ( name ? ) : any ; }