import { EntitySubscriberInterface, InsertEvent } from 'typeorm'; import PromoCodeEntity from "../entities/promo-code.js"; /** * Promo code subscriber */ declare class PromoCode implements EntitySubscriberInterface { /** * This subscriber only for promo code entity */ /** * This subscriber only for promo code entity */ listenTo(): typeof PromoCodeEntity; /** * Create stripe promo code and attach stripe id to entity */ /** * Create stripe promo code and attach stripe id to entity */ beforeInsert({ entity, manager }: InsertEvent): Promise; } export { PromoCode as default };