react-phone-input-pro
Version:
Phone number input component for react to format phone numbers according to selected countries in real time.
11 lines (10 loc) • 549 B
TypeScript
import { ISeperators, ICountryList } from '../types';
export declare const getSeperatorsPositions: (format: string) => {
seperators: ISeperators[];
prefixIndexes: any;
prefix: string;
justSymbols: string;
countryCode: string;
};
export declare const getDefaultCountry: (countries: ICountryList[], ar: any, defaultCountry?: string, onlyCountries?: string[], value?: string, autoFormat?: boolean, includeDialingCode?: boolean, customFormat?: string | undefined) => any;
export declare function compare(a: any, b: any): 1 | -1 | 0;