import { Repository, DataSource } from 'typeorm'; import { ReferralCode } from './entities/referral-code.entity'; import { Referral } from './entities/referral.entity'; import { ReferralReward } from './entities/referral-reward.entity'; export declare class ReferralsService { private readonly codeRepo; private readonly referralRepo; private readonly rewardRepo; private readonly dataSource; constructor(codeRepo: Repository, referralRepo: Repository, rewardRepo: Repository, dataSource: DataSource); getMyCode(tenantId: string): Promise; generateCode(tenantId: string): Promise; validateCode(code: string): Promise; applyCode(referredTenantId: string, code: string): Promise; getReferralByReferred(referredTenantId: string): Promise; getMyReferrals(tenantId: string): Promise; convertReferral(referredTenantId: string): Promise; getMyRewards(tenantId: string): Promise; getAvailableMonths(tenantId: string): Promise; useReferralMonth(tenantId: string): Promise; getStats(tenantId: string): Promise<{ code: string; totalInvited: any; totalConverted: any; totalPending: any; totalExpired: any; monthsEarned: any; monthsAvailable: any; }>; getReferredDiscount(tenantId: string): Promise; markDiscountApplied(tenantId: string): Promise; }