maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
17 lines (16 loc) • 741 B
TypeScript
import type { Country } from './types';
import { type CountryCode } from 'libphonenumber-js';
declare function getBrowserLocale(): {
locale: string;
browserLocale: string;
} | undefined;
declare function getCountriesList(locale?: string, customCountriesNameListByIsoCode?: Record<CountryCode, string>): Country[] | undefined;
declare function fetchCountryCode(): Promise<string | undefined>;
declare function sanitizePhoneNumber(input?: string | undefined | null): string;
export declare function useMazPhoneNumberInput(): {
sanitizePhoneNumber: typeof sanitizePhoneNumber;
fetchCountryCode: typeof fetchCountryCode;
getBrowserLocale: typeof getBrowserLocale;
getCountriesList: typeof getCountriesList;
};
export {};