/** * Generate a purchase URL with encoded parameters * @param baseUrl Base URL for the purchase web page * @param itemId ID of the item to be purchased * @param sessionToken Session token for user association (required) * @param affiliateCode Optional affiliate code for tracking * @param redirectUrl Optional URL to redirect after purchase * @returns Fully formed purchase URL */ export declare function generatePurchaseURL(baseUrl: string, gameId: string, itemId: string, sessionToken: string, affiliateCode?: string, redirectUrl?: string): string; /** * Parse parameters from a deep link URL * @param url URL to parse * @returns Object containing the parsed parameters */ export declare function parseDeepLinkParams(url: string): Record; /** * Extract parameters from a store link * @param url URL to extract parameters from * @returns Object containing affiliateCode if present */ export declare function handleStoreLink(url: string): { affiliateCode?: string; }; /** * Generate a login URL for user authentication and session association * @param baseUrl Base URL for the login web page * @param sessionToken Session token to associate with the user * @param gameId Game ID for the session * @param redirectUrl Optional URL to redirect after login * @returns Fully formed login URL */ export declare function generateLoginURL(baseUrl: string, sessionToken: string, gameId: string, redirectUrl?: string): string; /** * Generate a tip URL for users to give a tip to the developer * @param baseUrl Base URL for the tip web page * @param sessionToken Session token to associate with the user * @param gameId Game ID for the session * @param amount Optional tip amount in cents * @param redirectUrl Optional URL to redirect after tipping * @returns Fully formed tip URL */ export declare function generateTipURL(baseUrl: string, sessionToken: string, gameId: string, amount?: number, redirectUrl?: string): string; /** * Validate if a string is a valid URL * @param urlString String to validate as URL * @returns boolean indicating if the string is a valid URL */ export declare function isValidURL(urlString: string): boolean; /** * Generate a shareable link for a wager session. * @param baseUrl Base URL of the portal (e.g. window.location.origin or API URL) * @param sessionId Wager session ID * @returns Fully formed URL to view the wager session */ export declare function generateWagerSessionURL(baseUrl: string, sessionId: string): string; //# sourceMappingURL=url.d.ts.map