import type { MaskFull } from './entries'; export type FormatResult = { display: string; map: number[]; }; /** Get navigator language with fallback to 'en' */ export declare function getNavigatorLang(): string; /** Detect country from browser locale */ export declare function detectCountryFromLocale(): string | null; /** Check if a country exists in the full mask map */ export declare function hasCountry(code: string): boolean; /** Get country data by ISO code and locale with fallback to US */ export declare function getCountry(code: string, locale: string): MaskFull; export declare function parseCountryCode(code?: string | null, fallback?: string): string; /** Count number of placeholders (#) in a mask string */ export declare function countPlaceholders(maskStr: string): number; /** Remove country code prefix (e.g., +1 ) from a mask string */ export declare function removeCountryCodePrefix(maskStr: string): string; /** Pick the most suitable mask variant based on typed digits count */ export declare function pickMaskVariant(variants: string[], typedDigitsCount: number): string; /** Formatting with mapping for efficient position tracking */ export declare function formatDigitsWithMap(maskTemplate: string, digitStr: string): FormatResult; /** Filter and rank countries by a search query */ export declare function filterCountries(countries: MaskFull[], search: string): MaskFull[]; //# sourceMappingURL=utils.d.ts.map