import { Firestore, Transaction, WriteBatch } from './types'; export declare class Context { firestore: Firestore; private _tx?; private _batch?; constructor(firestore: Firestore); get tx(): Transaction | undefined; get batch(): WriteBatch | undefined; runTransaction(updateFunction: (tx: Transaction) => Promise): Promise; runBatch(updateFunction: (batch: WriteBatch) => Promise): Promise; }