export type SubscriptionType = 'SUB_APP'; import { StandardResponse } from '@jolibox/types'; export type SubscriptionResult = StandardResponse; export interface SubscriptionHandlerMap { SUB_APP: (params: { productId: string; appStoreProductId: string; planId: string; }) => Promise>; } export type SubscriptionHandler = SubscriptionHandlerMap[T]; export declare function createSubscriptionHelper(): { registerSubscriptionHandler(type: T, handler: SubscriptionHandler): void; invokeSubscription(type: T, ...args: Parameters>): Promise; }; export type SubscriptionHelper = ReturnType; export declare const subscriptionHelper: { registerSubscriptionHandler(type: T, handler: SubscriptionHandler): void; invokeSubscription(type: T, ...args: Parameters>): Promise; };