UNPKG

mtn-momo-client

Version:

A collection of utils to interact with the mtn-momo api

16 lines (15 loc) 581 B
import { AxiosInstance } from 'axios'; type CreateAccountBalanceFetcherOptions = { /** The client to fetch the account balance */ client: AxiosInstance; }; type AccountBalance = { /** The available balance of the account */ availableBalance: string; /** ISO4217 Currency */ currency: string; }; type FetchAccountBalance = () => Promise<AccountBalance>; declare const createAccountBalanceFetcher: ({ client }: CreateAccountBalanceFetcherOptions) => () => Promise<AccountBalance>; export { createAccountBalanceFetcher }; export type { FetchAccountBalance };