import { ReactFireOptions } from './'; import { ObservableStatus } from './useObservable'; import { Query as FirestoreQuery, QuerySnapshot, DocumentReference, DocumentData, DocumentSnapshot } from 'firebase/firestore'; /** * Preload a subscription to a Firestore document reference. * * Use this to warm up `useFirestoreDoc` for a specific document */ export declare function preloadFirestoreDoc(refProvider: () => Promise): Promise>>; /** * Suscribe to Firestore Document changes * * You can preload data for this hook by calling `preloadFirestoreDoc` */ export declare function useFirestoreDoc(ref: DocumentReference, options?: ReactFireOptions): ObservableStatus>; /** * Get a firestore document and don't subscribe to changes */ export declare function useFirestoreDocOnce(ref: DocumentReference, options?: ReactFireOptions): ObservableStatus>; /** * Suscribe to Firestore Document changes and unwrap the document into a plain object */ export declare function useFirestoreDocData(ref: DocumentReference, options?: ReactFireOptions): ObservableStatus; /** * Get a Firestore document, unwrap the document into a plain object, and don't subscribe to changes */ export declare function useFirestoreDocDataOnce(ref: DocumentReference, options?: ReactFireOptions): ObservableStatus; /** * Subscribe to a Firestore collection */ export declare function useFirestoreCollection(query: FirestoreQuery, options?: ReactFireOptions): ObservableStatus>; /** * Subscribe to a Firestore collection and unwrap the snapshot into an array. */ export declare function useFirestoreCollectionData(query: FirestoreQuery, options?: ReactFireOptions): ObservableStatus;