import { ICachePair } from '.'; export declare abstract class IAsyncStorageStrategy { abstract getAll(cacheKey: string, ctx?: any): Array> | Promise>>; abstract add(entity: ICachePair, cacheKey: string, ctx?: any): void | Promise; /** * @deprecated Use update instead. */ abstract updateAtIndex(index: number, entity: ICachePair, cacheKey: string, ctx?: any): void | Promise; abstract update?(index: number, entity: ICachePair, cacheKey: string, ctx?: any): Promise; /** * @deprecated Use remove instead. */ abstract removeAtIndex(index: number, cacheKey: string, ctx?: any): void | Promise; abstract remove?(index: number, entity: ICachePair, cacheKey: string, ctx?: any): Promise; abstract removeAll(cacheKey: string, ctx?: any): void | Promise; abstract addMany(entities: ICachePair[], cacheKey: string, ctx?: any): Promise; }