UNPKG

code-coast-momo-api

Version:

MTN Mobile Money API Client for NodeJS written in TypeScript

9 lines (8 loc) 545 B
import { AxiosInstance } from "axios"; import { AccessToken, Config, UserConfig } from "./common"; export declare type TokenRefresher = () => Promise<string>; export declare type Authorizer = (config: Config, client?: AxiosInstance) => Promise<AccessToken>; export declare function createTokenRefresher(authorize: Authorizer, config: Config): TokenRefresher; export declare const authorizeCollections: Authorizer; export declare const authorizeDisbursements: Authorizer; export declare function createBasicAuthToken(config: UserConfig): string;