import intlTelInput, { Iti } from "intl-tel-input"; import type { ValidationError } from "intl-tel-input"; import React from "react"; export { intlTelInput }; type InputProps = Omit, "onInput">; export type StrictRejectSource = "key" | "paste"; export type StrictRejectReason = "invalid" | "max-length"; export type IntlTelInputRef = { getInstance: () => Iti | null; getInput: () => HTMLInputElement | null; }; declare const IntlTelInput: React.ForwardRefExoticComponent & { onChangeNumber?: (number: string) => void; onChangeCountry?: (iso2: string) => void; onChangeValidity?: (isValid: boolean) => void; onChangeErrorCode?: (errorCode: ValidationError | null) => void; onOpenCountrySelector?: () => void; onCloseCountrySelector?: () => void; onStrictReject?: (source: StrictRejectSource, rejectedInput: string, reason: StrictRejectReason) => void; usePreciseValidation?: boolean; inputProps?: InputProps; disabled?: boolean | undefined; readOnly?: boolean | undefined; value?: string | null; } & React.RefAttributes>; export default IntlTelInput;