import { SubdivisionInfo } from 'iso-3166-2'; import { Option } from '../components/inputs/SelectTextField'; /** * Function to get the subdivision object by full code or partial country code * and partial subdivision code/name from `iso3166` */ interface IsoSubdivisionProps { code?: string; country?: string; subdivision?: string; } export declare const getIsoSubdivision: ({ code, country, subdivision, }: IsoSubdivisionProps) => SubdivisionInfo.Full | null; /** * Function to get the country name by country code directly from raw data */ export declare const getCountryNameByCode: (code: string) => string; /** * Fetches from mapbox to compose a proper ISO 3166-2 standard location string */ export declare const getISOString: (accessToken: string, location: { countryKey?: string; stateProvince?: string; postalCode?: string; }) => Promise; declare type LocationType = { country: string; stateProvince?: string; postalCode?: string; }; export declare const getJurisdictionIsoCode: ({ country, stateProvince, postalCode, }: LocationType) => string; interface CountryOptionsProps { exclude?: boolean; } export declare function getCountryOptions({ exclude, }: CountryOptionsProps): Option[]; export declare function getCountrySubdivisionOptions(country: string): Option[]; /** * Function to get the country code by name, doing some specific checks */ export declare const getCountryCodeByName: (countryName: string) => string; export {};