import React from 'react'; import { type TextInput } from 'react-native'; import { PhoneCountryCode, PhoneFormat, PhoneInputProps } from './types'; /** * Built-in country presets. * * Each mask covers the **national** number only; the dial code is rendered as a * separate prefix. The mask also defines how many digits the field accepts, so * there is no second length field that can drift out of sync with it. */ export declare const PHONE_FORMATS: Record; /** Countries offered by the built-in picker, in display order. */ export declare const PHONE_COUNTRIES: PhoneCountryCode[]; /** Normalise a caller-supplied country to a key of `PHONE_FORMATS`. */ export declare function resolvePhoneCountry(country?: PhoneCountryCode): PhoneCountryCode; /** Look up the format for a country, falling back to the international one. */ export declare function getPhoneFormat(country?: PhoneCountryCode): PhoneFormat; /** * Caret position after an edit, derived by diffing the old and new text. * * `onChangeText` hands us only the resulting string — no selection — and the * DOM caret isn't readable from it on every platform. Bracketing the edit * between the common prefix and common suffix locates it without either. */ export declare function caretAfterEdit(previous: string, next: string): number; export declare const PhoneInput: React.ForwardRefExoticComponent>;