/**
 * Phone number parsing for the libphonenumber polyfill.
 */
import type { VegaCountryCode } from '../../types/flag.type';
import type { ParsePhoneNumberOptions } from './types';
import { PhoneNumber } from './phone-number';
/**
 * Strip everything except digits and a leading +.
 *
 * Mirrors the behavior of libphonenumber-js/core parseIncompletePhoneNumber.
 *
 * @param {string} text - The raw phone number input to sanitize.
 * @returns {string} The sanitized string containing only digits and an optional leading +.
 * @example parseIncompletePhoneNumber('(302) 333-4444')    // '3023334444'
 * @example parseIncompletePhoneNumber('+1 (302) 333-4444') // '+13023334444'
 */
export declare function parseIncompletePhoneNumber(text: string): string;
/**
 * Parse a phone number string into a PhoneNumber instance.
 *
 * @param {string} text - The raw phone number string to parse.
 * @param {VegaCountryCode | ParsePhoneNumberOptions} [optionsOrCountry] - A default country code or parsing options.
 * @returns {PhoneNumber} The parsed PhoneNumber instance.
 * @throws {Error} if the input cannot be parsed.
 */
export declare function parsePhoneNumber(text: string, optionsOrCountry?: VegaCountryCode | ParsePhoneNumberOptions): PhoneNumber;
