voko-sdk
Version:
Process payments with ease
10 lines (9 loc) • 414 B
TypeScript
import { MobileOperator } from '../core/types';
export declare class PhoneValidator {
private static readonly TANZANIA_PREFIX;
private static readonly OPERATORS_MAP;
static isValid(phoneNumber: string): boolean;
static normalize(phoneNumber: string): string;
static detectOperator(phoneNumber: string): MobileOperator | null;
static getOperatorPrefix(operator: MobileOperator): string[];
}