import { CollectionData } from '../models/data/collectionData'; import { Collection } from '../models/domain/collection'; export interface CollectionService { decryptedCollectionCache: any[]; clearCache(): void; get(id: string): Promise; getAll(): Promise; getAllDecrypted(): Promise; upsert(collection: CollectionData | CollectionData[]): Promise; replace(collections: { [id: string]: CollectionData; }): Promise; clear(userId: string): Promise; delete(id: string | string[]): Promise; }