/**
 * List of countries with their respective country code, flag, phone code, and phone mask.
 */
declare const countries: ({
    name: string;
    code: string;
    flag: string;
    phoneCode: string;
    phoneMask: string;
} | {
    name: string;
    code: string;
    flag: string;
    phoneCode: string;
    phoneMask?: undefined;
})[];

type Country = (typeof countries)[0];
/** Get national-format mask from country by stripping the country code prefix (e.g. "+1 (###) ###-####" → "(###) ###-####"). */
declare function getNationalMask(country: Country | undefined): string;
/** Format a raw digit string into a mask pattern where '#' represents one digit. No trailing literals so backspace works naturally. */
declare function formatDigitsToMask(digits: string, mask: string): string;

export { formatDigitsToMask, getNationalMask };
