import firebase from 'firebase/compat/app'; import { Observable } from 'rxjs'; export declare type OrderByDirection = firebase.firestore.OrderByDirection; export declare type WhereFilterOp = firebase.firestore.WhereFilterOp; export declare type DocumentReference = firebase.firestore.DocumentReference; export declare type CollectionReference = firebase.firestore.CollectionReference; export declare type DocumentData = firebase.firestore.DocumentData; export declare type DocumentSnapshot = | DocumentSnapshotExists | DocumentSnapshotDoesNotExist; export declare type AsyncType = Observable; export interface DocumentSnapshotExists extends firebase.firestore.DocumentSnapshot { readonly exists: true; data(options?: firebase.firestore.SnapshotOptions): T; } export interface DocumentSnapshotDoesNotExist extends firebase.firestore.DocumentSnapshot { readonly exists: false; data(options?: firebase.firestore.SnapshotOptions): undefined; get( fieldPath: string | firebase.firestore.FieldPath, options?: firebase.firestore.SnapshotOptions ): undefined; } export interface QueryDocumentSnapshot extends firebase.firestore.QueryDocumentSnapshot { data(options?: firebase.firestore.SnapshotOptions): T; }