import { Observable } from 'rxjs'; import { DocumentAdded, DocumentRemoved, DocumentModified } from './document.actions'; import { ShowErrorMessage } from '../notification/notification.actions'; import { WithoutMeta, FireStoreDocument } from '@digitaix/types'; export declare class DocumentService { basePath: string; buildPath(path: string): string; buildCollectionPath(path: string): string; load(collectionPath: string, query?: Query): Observable; subscribe(collectionPath: string, query?: Query): Observable | DocumentRemoved | DocumentModified | ShowErrorMessage>; create(collectionPath: string, document: WithoutMeta, documentId?: string): Observable; delete(collectionPath: string, documentId: string): Observable; update(collectionPath: string, documentId: string, document: Partial>): Observable; get(collectionPath: string, documentId: string): Observable; getMany(collectionPath: string, documentIds: string[]): Observable; reset(removeLoadedDocuments?: boolean): void; init(): Promise; }