import { RegistrationHookInterface } from "../../auth/interfaces/registration-hook.interface"; import { ReferralService } from "./referral.service"; /** * Registration hook that tracks referrals when new users register. * This hook is called by AuthService after a new company is created. */ export declare class RegistrationReferralHook implements RegistrationHookInterface { private readonly referralService; private readonly logger; constructor(referralService: ReferralService); /** * Called after a new company and user have been created during registration. * Tracks the referral if a referral code was provided. * * @param params.companyId - The newly created company's ID * @param params.userId - The newly created user's ID * @param params.referralCode - Optional referral code from the registration */ onRegistrationComplete(params: { companyId: string; userId: string; referralCode?: string; }): Promise; } /** * Provider configuration for the registration hook */ export declare const RegistrationReferralHookProvider: { provide: string; useClass: typeof RegistrationReferralHook; }; //# sourceMappingURL=registration-referral.hook.d.ts.map