import { TOpenOptions } from '../apis/App'; import { CheckoutConfig } from '../interfaces/CheckoutConfig'; export declare enum CALLBACK_MODE_ENUM { handler = "callback_handler", redirect = "callback_url_redirect", noredirect = "callback_url_noredirect" } export declare enum PAYMENT_MODE_ENUM { 'net_banking' = "Netbanking", 'wallet' = "Wallet", 'card' = "Cards", 'upi' = "UPI", 'emi' = "EMI" } export type TPaymentModes = keyof typeof PAYMENT_MODE_ENUM; type PaymentModeCodes = `${PAYMENT_MODE_ENUM}`; /** * list of all the util functions used in `App.js` * to open checkout */ declare class AppUtil { static readonly CUSTOM_PROPERTY_MAX_LENGTH = 5000; private static removeForwardSlashFromEnd; static validateOptions: (samunnayaUrl: string, options: TOpenOptions, commonTrackingData: any) => void; static getPaymentModeCode: (mode: TPaymentModes | undefined) => PaymentModeCodes | null; static generateCheckoutUrl: (options: TOpenOptions & typeof CheckoutConfig & { paymentMode: PaymentModeCodes | null; }) => Promise; static openIframe: (checkoutUrl: string) => void; static addCloseListener: (options: { checkoutHost: string | undefined; callbackHandler: (response: unknown) => void; commonTrackingData: any; }, samunnayaUrl: string) => void; } export default AppUtil;