import "./ui/payment-popup"; /** * Called after login, fetches and caches the subscription data */ export declare function initSubscriptionCache(): Promise; /** * Called after logout */ export declare function clearSubscriptionCache(): void; /** * Kicks off the puchase flow for a subscription or in-app purchase item. * @param purchaseId - identifies a subscription or an in-app purchase item (i.e. coins) * @returns - boolean indicating whether or not the purchase flow was successfully completed * @throws Error if player has an existing subscription */ export declare function purchase(purchaseId: string): Promise; /** * Cancel a user's existing subscription * @param productId - productId of desired subscription * @throws Error on player not having an existing subscription */ export declare function cancelSubscription(productId: string): Promise; export declare function getSubscription(): Promise; /** * * @param purchaseId - identifies a subscription * @returns - boolean indicating whether or not the user has purchased the subscription */ export declare function hasSubscription(purchaseId: string): boolean;