"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.adminEvents = exports.ADMIN_EVENTS = void 0;
const node_events_1 = __importDefault(require("node:events"));
exports.ADMIN_EVENTS = {
    PAYMENT_PENDING: "payment:pending",
    PAYMENT_CONFIRMED: "payment:confirmed",
    PAYMENT_EXPIRED: "payment:expired"
};
class AdminEventsEmitter extends node_events_1.default {
    emitPaymentPending(transaction) {
        this.emit(exports.ADMIN_EVENTS.PAYMENT_PENDING, transaction);
    }
    emitPaymentConfirmed(transaction) {
        this.emit(exports.ADMIN_EVENTS.PAYMENT_CONFIRMED, transaction);
    }
    emitPaymentExpired(transaction) {
        this.emit(exports.ADMIN_EVENTS.PAYMENT_EXPIRED, transaction);
    }
}
exports.adminEvents = new AdminEventsEmitter();
