import { IApiResponseObject } from '../interfaces/responses/ApiResponse'; import { CheckoutConfig } from '../interfaces/CheckoutConfig'; import { IWalletList } from '../interfaces/responses/WalletList'; /** * Represents a configuration for retrieving a list of wallets. * @typedef {Object} WalletConfig * @property {string} host - The base URL for the API. * @property {Object} token - An object containing an authorization token value. * @property {string} token.value - The authorization token value. * @property {string} order_id - The ID of the order associated with the wallets. */ /** A class that fetches the list of wallets for a given order from the server. @class Wallets @template Wallets - The response object's interface for the list of wallets. */ export interface IGetListOfWalletParams { /** The total amount for which the list of wallet is requested. */ total_amount: number; /** The currency in which the total amount is specified (default: INR). */ currency?: string; } declare class Wallet { private config; /** * Constructs a new Wallets instance. * @param {WalletConfig} config - The configuration for retrieving the list of wallets. */ constructor(config: typeof CheckoutConfig); getListOfWallets: (params?: IGetListOfWalletParams) => Promise>; } export default Wallet;