export { C as Country, c as CountryCodeFormat, e as CountryData, d as CountryRecord, b as CountryWithSubdivisions, S as Subdivision, f as SubdivisionData, a as SubdivisionInfo } from './types-hSi1rgb5.cjs'; import { whereAlpha2, whereAlpha3, whereNumeric, whereName, all, withSubdivisions, alpha2ToAlpha3, alpha3ToAlpha2, alpha2ToNumeric, alpha3ToNumeric, numericToAlpha2, numericToAlpha3, toName, convert, isAlpha2, isAlpha3, isNumeric, isCountryName, isValid, detectFormat } from './country/index.cjs'; export { alpha3Index, countries, nameIndex, numericIndex, resolveAlpha2 } from './country/index.cjs'; import { whereCode, where, whereName as whereName$1, forCountry, all as all$1, hasSubdivisions, toRegionCode, toFullCode, toName as toName$1, toNameFrom, toCountryCode, isValidCode, isValidRegion, isValidName } from './subdivision/index.cjs'; export { getAllSubdivisions, getRegisteredCountries, getSubdivisions } from './subdivision/index.cjs'; /** * iso-3166 * * Complete ISO 3166-1 (countries) and ISO 3166-2 (subdivisions) lookup library. * * @example * // Namespaced usage (recommended) * import { country, subdivision } from 'iso-3166'; * * country.whereAlpha2('US'); * subdivision.whereCode('US-CA'); * * @example * // Direct imports (tree-shakeable) * import { whereAlpha2 } from 'iso-3166/country'; * import { whereCode } from 'iso-3166/subdivision'; * * @example * // Selective subdivision loading * import { whereAlpha2 } from 'iso-3166/country'; * import 'iso-3166/subdivision/US'; * import { whereCode } from 'iso-3166/subdivision'; */ /** * Country functions (ISO 3166-1) */ declare const country: { whereAlpha2: typeof whereAlpha2; whereAlpha3: typeof whereAlpha3; whereNumeric: typeof whereNumeric; whereName: typeof whereName; all: typeof all; withSubdivisions: typeof withSubdivisions; alpha2ToAlpha3: typeof alpha2ToAlpha3; alpha3ToAlpha2: typeof alpha3ToAlpha2; alpha2ToNumeric: typeof alpha2ToNumeric; alpha3ToNumeric: typeof alpha3ToNumeric; numericToAlpha2: typeof numericToAlpha2; numericToAlpha3: typeof numericToAlpha3; toName: typeof toName; convert: typeof convert; isAlpha2: typeof isAlpha2; isAlpha3: typeof isAlpha3; isNumeric: typeof isNumeric; isCountryName: typeof isCountryName; isValid: typeof isValid; detectFormat: typeof detectFormat; }; /** * Subdivision functions (ISO 3166-2) */ declare const subdivision: { whereCode: typeof whereCode; where: typeof where; whereName: typeof whereName$1; forCountry: typeof forCountry; all: typeof all$1; hasSubdivisions: typeof hasSubdivisions; toRegionCode: typeof toRegionCode; toFullCode: typeof toFullCode; toName: typeof toName$1; toNameFrom: typeof toNameFrom; toCountryCode: typeof toCountryCode; isValidCode: typeof isValidCode; isValidRegion: typeof isValidRegion; isValidName: typeof isValidName; }; /** * Default export for legacy compatibility * Provides both country and subdivision namespaces */ declare const _default: { country: { whereAlpha2: typeof whereAlpha2; whereAlpha3: typeof whereAlpha3; whereNumeric: typeof whereNumeric; whereName: typeof whereName; all: typeof all; withSubdivisions: typeof withSubdivisions; alpha2ToAlpha3: typeof alpha2ToAlpha3; alpha3ToAlpha2: typeof alpha3ToAlpha2; alpha2ToNumeric: typeof alpha2ToNumeric; alpha3ToNumeric: typeof alpha3ToNumeric; numericToAlpha2: typeof numericToAlpha2; numericToAlpha3: typeof numericToAlpha3; toName: typeof toName; convert: typeof convert; isAlpha2: typeof isAlpha2; isAlpha3: typeof isAlpha3; isNumeric: typeof isNumeric; isCountryName: typeof isCountryName; isValid: typeof isValid; detectFormat: typeof detectFormat; }; subdivision: { whereCode: typeof whereCode; where: typeof where; whereName: typeof whereName$1; forCountry: typeof forCountry; all: typeof all$1; hasSubdivisions: typeof hasSubdivisions; toRegionCode: typeof toRegionCode; toFullCode: typeof toFullCode; toName: typeof toName$1; toNameFrom: typeof toNameFrom; toCountryCode: typeof toCountryCode; isValidCode: typeof isValidCode; isValidRegion: typeof isValidRegion; isValidName: typeof isValidName; }; }; export { all as allCountries, all$1 as allSubdivisions, alpha2ToAlpha3, alpha2ToNumeric, alpha3ToAlpha2, alpha3ToNumeric, convert as convertCountryCode, country, toName as countryToName, _default as default, detectFormat as detectCountryFormat, hasSubdivisions, isAlpha2, isAlpha3, isCountryName, isNumeric, isValid as isValidCountry, isValidRegion, isValidCode as isValidSubdivisionCode, isValidName as isValidSubdivisionName, numericToAlpha2, numericToAlpha3, subdivision, toCountryCode as subdivisionToCountryCode, toName$1 as subdivisionToName, toNameFrom as subdivisionToNameFrom, forCountry as subdivisionsForCountry, toFullCode, toRegionCode, whereAlpha2, whereAlpha3, whereName as whereCountry, whereNumeric, whereCode as whereSubdivision, whereName$1 as whereSubdivisionByName, where as whereSubdivisionByRegion, withSubdivisions };