export interface TransactionManager { isInTransaction: () => boolean /** * Start a new or reuse an existing transaction. */ doInTransaction: (fn: (t: Transaction) => Promise) => Promise /** * Always start a new transaction, regardless if there is one already in * progress in the current context. */ doInNewTransaction: (fn: (t: Transaction) => Promise) => Promise }