// React TypeScript Cheatsheet doesn't recommend using `React.FunctionalComponent`. // https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/function_components import * as React from 'react'; import { Country, Value, ExternalValue, DefaultInputComponentProps } from '../index.d.js'; type InputComponent = | ((props: InputComponentProps) => React.JSX.Element | React.ComponentClass) | React.ForwardRefExoticComponent>; type FeaturePropsWithoutSmartCaret = Omit & { country?: Country; international?: boolean; withCountryCallingCode?: boolean; defaultCountry?: Country; inputComponent?: InputComponent; useNationalFormatForDefaultCountryValue?: boolean; } // `PropsWithoutSmartCaret` are imported in: // * `/react-native/index.d.ts`. export type PropsWithoutSmartCaret = FeaturePropsWithoutSmartCaret & { value?: Value | ExternalValue; onChange(value?: Value): void; } // `FeatureProps` are imported in: // * `/react-hook-form-input/index.d.ts`. export type FeatureProps = FeaturePropsWithoutSmartCaret & { smartCaret?: boolean; } // `Props` are imported in: // * `/input-core/index.d.ts` export type Props = PropsWithoutSmartCaret & { smartCaret?: boolean; } type PhoneInputComponentType = React.ForwardRefExoticComponent & React.RefAttributes> declare const PhoneInput: PhoneInputComponentType; export default PhoneInput; export { parsePhoneNumber, formatPhoneNumber, formatPhoneNumberIntl, isValidPhoneNumber, isPossiblePhoneNumber, getCountryCallingCode, getCountries, isSupportedCountry, Country, Value, PhoneNumber } from '../index.d.js';