import { SmrtCollection } from '@happyvertical/smrt-core'; import { Referral } from '../models/Referral.js'; export declare class ReferralCollection extends SmrtCollection { static readonly _itemClass: typeof Referral; /** All referrals credited to a referrer, newest first. */ findByReferrer(referrerId: string): Promise; /** All referrals pointing at one qualifying target, newest first. */ findByTarget(targetKind: string, targetId: string): Promise; /** * QUALIFIED referrals for one target — what * `ReferralCommissionService.processEarningEvent` resolves when given a * target instead of explicit referral ids. */ findQualifiedByTarget(targetKind: string, targetId: string): Promise; /** * Expire lapsed attributions: every `attributed` referral whose * `expiresAt` is set and `<= now` transitions to `expired` and is saved. * Referrals without an `expiresAt` never lapse. * * @returns The referrals expired by this sweep. */ sweepExpired(now?: Date): Promise; } export default ReferralCollection; //# sourceMappingURL=ReferralCollection.d.ts.map