export type PaymentType = 'JOLI_COIN' | 'JOLI_COIN_IAP' | 'JOLI_GEM_IAP'; import { StandardResponse } from '@jolibox/types'; export type PaymentResult = StandardResponse; export interface PaymentHandlerMap { JOLI_COIN: (productId: string) => Promise>; JOLI_COIN_IAP: (params: { productId: string; appStoreProductId: string; }) => Promise>; JOLI_GEM_IAP: (params: { productId: string; appStoreProductId: string; }) => Promise>; } export type PaymentHandler = PaymentHandlerMap[T]; export declare function createPaymentHelper(): { registerPaymentHandler(type: T, handler: PaymentHandler): void; invokePayment(type: T, ...args: Parameters>): Promise; }; export type PaymentHelper = ReturnType;