import * as firebase from "firebase"; import { Observer } from "../util"; import { MockCollectionReference } from "./collection-reference"; import { MockDocumentSnapshot } from "./document-snapshot"; import { MockFirestore } from "./firestore"; export declare const SNAPSHOT_NEXT_EVENT = "snapshot:next"; export declare const SNAPSHOT_ERROR_EVENT = "snapshot:error"; export declare class MockDocumentReference implements firebase.firestore.DocumentReference { readonly firestore: MockFirestore; readonly id: string; readonly parent: MockCollectionReference; readonly converter: firebase.firestore.FirestoreDataConverter; private readonly emitEvents; get path(): string; private get emitter(); private get currentData(); constructor(firestore: MockFirestore, id: string, parent: MockCollectionReference, converter: firebase.firestore.FirestoreDataConverter, emitEvents?: boolean); emitChange(): Promise; collection(collectionPath: string): firebase.firestore.CollectionReference; isEqual(other: firebase.firestore.DocumentReference): boolean; set(data: T, options?: firebase.firestore.SetOptions | undefined): Promise; update(data: firebase.firestore.UpdateData): Promise; update(field: string | firebase.firestore.FieldPath, value: any, ...moreFieldsAndValues: any[]): Promise; delete(): Promise; get(options?: firebase.firestore.GetOptions): Promise>; onSnapshot(observer: Observer>): () => void; onSnapshot(options: firebase.firestore.SnapshotListenOptions, observer: Observer>): () => void; onSnapshot(onNext: (snapshot: firebase.firestore.DocumentSnapshot) => void, onError?: ((error: Error) => void) | undefined, onCompletion?: (() => void) | undefined): () => void; onSnapshot(options: firebase.firestore.SnapshotListenOptions, onNext: (snapshot: firebase.firestore.DocumentSnapshot) => void, onError?: ((error: Error) => void) | undefined, onCompletion?: (() => void) | undefined): () => void; withConverter(converter: firebase.firestore.FirestoreDataConverter): MockDocumentReference; }