import { EntitySubscriberInterface, UpdateEvent, InsertEvent } from 'typeorm'; import TransactionEntity from "../entities/transaction.js"; /** * Transaction subscriber */ declare class Transaction implements EntitySubscriberInterface { /** * This subscriber only for Transaction entity */ /** * This subscriber only for Transaction entity */ listenTo(): typeof TransactionEntity; /** * Handle Transaction event: after insert */ /** * Handle Transaction event: after insert */ afterInsert({ entity }: InsertEvent): Promise; /** * Handle Transaction event: after update */ /** * Handle Transaction event: after update */ afterUpdate({ entity, databaseEntity, manager, updatedColumns, }: UpdateEvent): Promise; } export { Transaction as default };