import { AngularFirestore, DocumentChangeAction, DocumentReference } from '@angular/fire/firestore'; import { ControlListType, DictionarySafetyControls, MappedSafetyControls, SafetyControl } from '@digitaldealers/typings'; import { LocalStorageService } from 'angular-2-local-storage'; import { Observable } from 'rxjs'; export declare class ControlService { private _db; private _storage; private readonly collectionName; constructor(_db: AngularFirestore, _storage: LocalStorageService); static prepareList(data: DocumentChangeAction[]): MappedSafetyControls; static prepareDictionary(data: DocumentChangeAction[]): DictionarySafetyControls; getList(type?: ControlListType): Observable; save(data: SafetyControl): Observable; update(id: string, data: SafetyControl): Observable; delete(id: string): Observable; }