import { AffiliateLinkOptions } from '../types'; import { ApiClient } from '../utils/api'; /** * Service for creating affiliate links */ export declare class AffiliateLinkService { private apiClient; private gameId; private referrerAffiliateCode; private myAffiliateCode; constructor(apiClient: ApiClient, gameId: string); /** * Get the affiliate code you arrived with (from query param) */ getReferrerAffiliateCode(): string | null; /** * Get the affiliate code for this user (generate if not set) * @param userId Required user ID to generate the code */ getMyAffiliateCode(userId: string): string; /** * Wrap a URL with your affiliate code * @param targetUrl URL to wrap with affiliate tracking * @param userId Required user ID to generate the code * @returns URL with affiliate tracking parameters */ wrapUrl(targetUrl: string, userId: string): string; /** * Create a new affiliate link for this user * @param opts Affiliate link options (must include userId) * @returns URL with new affiliate tracking code */ createLink(opts: AffiliateLinkOptions & { userId: string | undefined; }): string; } //# sourceMappingURL=AffiliateLinkService.d.ts.map