import { TPaymentModes } from '../utils/AppUtil'; import { CheckoutConfig } from '../interfaces/CheckoutConfig'; type TCallbackMode = { callback_handler: (response: unknown) => void | Promise; } | { callback_url: string; }; export type TOpenOptions = TCallbackMode & { payment_mode_code?: TPaymentModes; bank_code?: string; wallet_code?: string; payment_flow?: 'collect' | 'intent'; upi_app_code?: string; upi_id?: string; emi_code?: 'debit' | 'credit' | 'cardless'; custom?: any; }; declare class App { private config; constructor(config: typeof CheckoutConfig); open: (options: TOpenOptions) => Promise; } export default App;