import type { PhoneNumber } from "libphonenumber-js/min/es6"; import type { PhoneField } from "./component.js"; /** Parse a strict phone string or PhoneField value into libphonenumber data. */ export declare function parse(value: string | PhoneField.Value, options?: PhoneField.ParseOptions): PhoneNumber | undefined; /** Validate a strict phone string or a PhoneField value against its selected country. */ export declare function isValid(value: string | PhoneField.Value, options?: PhoneField.ParseOptions): boolean; /** Build a canonical value from country metadata and a national or international number. */ export declare function buildValue(country: PhoneField.Country, nationalNumber: string, formatOnType: boolean): PhoneField.Value; /** Validate submitted source fields and rebuild a canonical value. */ export declare function fromFormData(formData: FormData, name: string): PhoneField.Value | null; /** Return the minimal source fields serialized by PhoneField.Root. */ export declare function toFormValue(value: PhoneField.Value): PhoneField.FormValue; /** Return localized, runtime-immutable country metadata. */ export declare function getCountries(lang?: PhoneField.Lang): PhoneField.CountryMap; /** Default English country metadata. */ export declare const countries: PhoneField.CountryMap; /** * Example mobile number for a country, formatted nationally by default. * Pair it with `PhoneField.Input`'s function placeholder. */ export declare function getExampleNumber(country: PhoneField.CountryCode, format?: "national" | "international"): string | undefined;