import { ICacheableDataCollection } from '../interfaces/data-collection'; import { IDataResource, ICacheableDataResource } from '../interfaces/data-resource'; import { IObjectsById } from '../interfaces'; export interface IStoreService { getDataObject(type: 'collection', url: string): Promise; getDataObject(type: string, id: string): Promise; getDataObject(type: 'collection' | string, id_or_url: string): Promise; getDataResources(keys: Array): Promise>; saveResource(type: string, url_or_id: string, value: IDataResource): void; saveCollection(url_or_id: string, value: ICacheableDataCollection): void; clearCache(): any; deprecateResource(type: string, id: string): any; deprecateCollection(key_start_with: string): any; removeObjectsWithKey(key: string): any; }