import { Direction } from '../../types/global'; import { CountryCode } from '../Flag/types'; import { InputProps } from '../Input'; interface PhoneFieldProps extends Omit { /** * Current phone number value. */ value?: string; /** * Callback triggered when the phone number changes. */ onChange?: (phone: string, countryCode: CountryCode) => void; /** * List of countries to display in the country selector. * If not provided, all countries will be displayed. */ countries?: CountryCode[]; /** * Disable dial code prefill on initialization. * Dial code prefill works only when empty phone value have been provided. * @default true */ disableDialCodePrefill?: boolean; /** * If true, the input will display in an error state with error styling */ error?: boolean; /** * If true, the input will display in a valid state with success styling */ isValid?: boolean; /** * The label text to display */ label?: string; /** * When true, prevents the user from interacting with phone field. * @default false */ disabled?: boolean; /** * Default ISO 3166-1 alpha-2 country code (e.g. 'US', 'GB', 'FR') * @default "US" */ defaultCountryCode?: CountryCode; /** * Element to be rendered at the end (right side) of the input. * The component passed to this prop must accept a `style` prop. * The component should use currentColor to match the Input's styling. */ endAdornment?: React.ReactNode; /** * The reading direction of the phone field. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode. */ dir?: Direction; /** Optional BCP 47 locale to localize country names and search */ locale?: string; } declare const PhoneField: import('react').ForwardRefExoticComponent>; export { PhoneField }; export type { PhoneFieldProps };