react-country-state-city
Version:
A lightweight and easy-to-use React library that provides a comprehensive list of regions or continents, countries, states, cities languages, and country phone codes for creating dynamic and searchable dropdowns. Ideal for building forms and input fields
11 lines (10 loc) • 883 B
TypeScript
import { City, Country, Language, Phonecodes, Region, State } from "../types";
export declare const GetRegions: (src?: string) => Promise<Region[] | []>;
export declare const GetPhonecodesByRegion: (_region: string, src?: string) => Promise<Phonecodes[] | []>;
export declare const GetPhonecodes: (src?: string) => Promise<Phonecodes[] | []>;
export declare const GetCountriesByRegion: (_region: string, src?: string) => Promise<Country[] | []>;
export declare const GetCountries: (src?: string) => Promise<Country[] | []>;
export declare const GetLanguages: (src?: string) => Promise<Language[] | []>;
export declare const GetState: (id: number, src?: string) => Promise<Array<State> | []>;
export declare const GetCity: (countryid: number, stateid: number, src?: string) => Promise<Array<City> | []>;
export declare const GetAllCities: (src?: string) => Promise<Array<City> | []>;