/// import { PhoneNumberUtils, PhoneNumber } from '../types'; import ISO2 from '../types/ISO2'; /** * @example * ```jsx * import phoneNumberUtils from 'use-phone-input/phoneNumberUtils'; * import useInternationalPhoneInput from 'use-phone-input/useInternationalPhoneInput'; * * // use it if you want to have no prefix in formatted phone number * phoneNumberUtils.setPrefix(''); * * const PhoneInput = () => { * const [phone, setPhone] = useState(phoneNumberUtils.toPhoneNumber('')); * * const { inputProps, setCountry } = useInternationalPhoneInput( * phoneNumberUtils, * phone, * setPhone * ); * * return ( *
* * *
* ); * }; * ``` */ declare const useInternationalPhoneInput: (utils: PhoneNumberUtils, value: PhoneNumber, onChange: (value: PhoneNumber) => void) => { inputProps: { type: "tel"; value: string; onInput: import("react").FormEventHandler; }; setCountry: (iso2: ISO2) => void; }; export default useInternationalPhoneInput;