import { NexaApp } from '../app/NexaApp'; import { DocumentReference } from '../types/index'; export { FieldValue } from './FieldValue'; export type WriteResult = { status: 'committed'; committed: true; writtenLocally: true; mutationId: string; data?: T; } | { status: 'pending'; committed: false; writtenLocally: true; mutationId: string; }; export declare const addDoc: (reference: any, // CollectionReference data: any, options?: { idempotencyKey?: string; }) => Promise>; export declare const setDoc: (docRef: DocumentReference, data: any, options?: { merge?: boolean; idempotencyKey?: string; }) => Promise; export declare const patchDoc: (docRef: DocumentReference, data: any, options?: { idempotencyKey?: string; preconditionExists?: boolean; }) => Promise; export declare const updateDoc: (docRef: DocumentReference, data: any, options?: { idempotencyKey?: string; }) => Promise; export declare const deleteDoc: (docRef: DocumentReference, options?: { idempotencyKey?: string; }) => Promise; export declare const getPendingWritesCount: (db: NexaApp) => number;