import * as firebase from 'firebase'; /** * Basic interface to providers that will interact Firebase Firestore. */ export interface BasicFirestore { getCollection(name: string): Promise; watchCollection(name: string): firebase.firestore.CollectionReference; addToCollection(name: string, item: any): Promise; getDocument(name: string): Promise; watchDocument(name: string): firebase.firestore.DocumentReference; addDocument(name: string, item: any): Promise; updateDocument(name: string, item: any): Promise; removeDocument(name: string): Promise; unsubscribe(subscriptions: object): any; }