UNPKG

@davidbolaji/termii-node

Version:

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

25 lines 823 B
import { HttpClient } from "../../http/HttpClient"; import { SearchRequest, SearchResponse } from "../../types/searchService.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 verifying phone numbers and detecting DND & network status */ export declare class SearchService { private http; constructor(http: HttpClient); /** * Verify phone number DND status and detect network * * @param payload - Request payload with phone_number * @returns Expanded SearchResponse with number details */ checkNumber(payload: SearchRequest): Promise<Expand<SearchResponse>>; } export {}; //# sourceMappingURL=SearchService.d.ts.map