import { CollectionReference, DocumentReference, DocumentData, SetOptions, WithFieldValue } from 'firebase-admin/firestore'; import type { AdminModuleOptions } from '../types'; import { App } from 'firebase-admin/app'; export declare class FirestoreService { protected readonly options: AdminModuleOptions; private readonly firebaseApp; private app; private firestore; constructor(options: AdminModuleOptions, firebaseApp: App); collection(path: string): CollectionReference; doc(path: string): DocumentReference; get(path: string): Promise; set(path: string, data: WithFieldValue, options?: SetOptions): Promise; update(path: string, data: Record): Promise; delete(path: string): Promise; add(collectionPath: string, data: WithFieldValue): Promise>; query(collectionPath: string, ...constraints: any[]): Promise; }