import { ICountry, IPhoneValidation, IPhoneValue } from '../types'; /** * Return type for usePhoneInput hook */ export interface IUsePhoneInputReturn { country: ICountry | null; number: string; value: IPhoneValue | null; validation: IPhoneValidation | null; isOpen: boolean; searchQuery: string; filteredCountries: ICountry[]; setSearchQuery: (q: string) => void; selectCountry: (country: ICountry) => void; setNumber: (num: string) => void; toggle: () => void; close: () => void; /** Validate current phone number */ validate: () => { isValid: boolean; errors: string[]; }; /** Get placeholder text for phone input */ getPlaceholder: () => string; } /** * Phone input hook with country selection, validation, and formatting. * * Optimized to minimize unnecessary re-renders with strategic memoization. */ export declare function usePhoneInput(initialValue?: IPhoneValue | null, onChange?: (value: IPhoneValue) => void, defaultCountryIso2?: string): IUsePhoneInputReturn;