import { IApiResponseObject } from '../interfaces/responses/ApiResponse'; import { CheckoutConfig } from '../interfaces/CheckoutConfig'; import { IValidateVpa, IVpaHandles } from '../interfaces/responses/ValidateVpa'; import { IUpiListResponse } from '../interfaces/responses/UpiListResponse'; /** * Represents the parameters for validating a UPI ID. * @interface */ export interface IValidateVPAParams { /** The UPI ID to be validated. */ upi_id: string; order_id?: string; } export interface IUpiAppListParams { platform?: 'android' | 'ios' | 'web'; } /** * The Upi class handles all the operations related to UPI. * @class Upi */ declare class Upi { private config; /** * Creates an instance of Upi. * @constructor * @param {UpiConfig} config - The configuration object for Upi. */ constructor(config: typeof CheckoutConfig); /** * Validates a UPI ID. * @async * @function * @param {IValidateVPAParams} params - The parameters for UPI validation. * @returns {Promise>} A promise resolving to the API response object. * @throws Will throw an error if the UPI ID is not provided. */ validateVpa: (params?: IValidateVPAParams) => Promise>; getVpaList: () => Promise>; getUpiAppList: (params?: IUpiAppListParams) => Promise>; } export default Upi;