import { CountryCode } from 'libphonenumber-js'; export type PhoneInputMode = 'static' | 'countrySelect' | 'international'; export type PhoneInputResult = { display: string; stored: string; country: CountryCode | null; }; export type ValidatePhoneOptions = { value?: string; required?: boolean; errorKey?: string; translate: (key: string, params?: Record) => unknown; defaultCountry?: CountryCode; }; export declare const getPhoneInputMode: ({ showCountrySelect, withCountryCallingCode, }: { showCountrySelect?: boolean; withCountryCallingCode?: boolean; }) => PhoneInputMode; export declare const sanitizePhoneInput: (value: string) => string; export declare const ensureLeadingPlus: (value: string) => string; export declare const parsePhoneValue: (value?: string, hintCountry?: CountryCode) => import("libphonenumber-js").PhoneNumber; export declare const isPhoneValueEmpty: (value?: string) => boolean; export declare const clampPhoneInputLength: (normalized: string, defaultCountry?: CountryCode) => string; export declare const validatePhoneNumber: ({ value, required, errorKey, translate, defaultCountry, }: ValidatePhoneOptions) => true | unknown; export declare const formatPhoneValueForDisplay: (value: string, mode: PhoneInputMode, country: CountryCode) => string; export declare const getInitialStoredValue: (mode: PhoneInputMode, country: CountryCode) => string; export declare const processPhoneInputChange: (raw: string, { mode, selectedCountry, defaultCountry, }: { mode: PhoneInputMode; selectedCountry: CountryCode | null; defaultCountry: CountryCode; }) => PhoneInputResult; //# sourceMappingURL=phoneInput.d.ts.map