import { ValidatePhoneNumberLengthResult } from "libphonenumber-js"; export type PhoneInputValidationError = "REQUIRED" | "REQUIRED_COUNTRY" | "INVALID_NUMBER" | ValidatePhoneNumberLengthResult | undefined; /** * Validates a phone number */ export declare const validatePhoneNumber: (phoneNumber: string | undefined) => PhoneInputValidationError; /** * Checks if the country code is valid and required */ export declare const isInvalidCountryCode: (error: PhoneInputValidationError, required?: boolean) => boolean; /** * Checks if the phone number is valid and required */ export declare const isInvalidPhoneNumber: (error: PhoneInputValidationError, required?: boolean) => boolean; /** * Checks if the phone number is valid and returns corresponding error message */ export declare const phoneErrorMessage: (phoneNumber: string | undefined, required?: boolean | undefined) => PhoneInputValidationError;