UNPKG

@davidbolaji/termii-node

Version:

Node.js SDK for Termii API – send SMS, voice, OTP, and manage messaging with ease.

24 lines 706 B
import { HttpClient } from "../../http/HttpClient"; import { GetBalanceResponse } from "../../types/balanceService.types"; /** * Utility type that forces TypeScript to expand an interface * so IntelliSense shows its full shape instead of just the alias. */ type Expand<T> = { [K in keyof T]: T[K]; } & {}; /** * Service for fetching account balance */ export declare class BalanceService { private http; constructor(http: HttpClient); /** * Fetch the current account balance and currency * * @returns Expanded GetBalanceResponse with balance details */ getBalance(): Promise<Expand<GetBalanceResponse>>; } export {}; //# sourceMappingURL=BalanceService.d.ts.map