geolite
Version:
A lightweight geo data toolkit with countries, states, cities, timezones, currencies, and dialing codes. Works with Prisma and SQLite.
10 lines • 834 B
TypeScript
import type { City, CityDetailed, Country, State, StateDetailed } from "../types/index";
export declare function getAllCountries(): Promise<Country[]>;
export declare function getStatesOfCountry(countryCode: string): Promise<State[]>;
export declare function getCitiesOfCountryAndState(countryCode: string, stateId?: number | null): Promise<City[]>;
export declare function getCountryByCode(countryCode: string): Promise<Country | null>;
export declare function getStateById(stateId: number): Promise<StateDetailed | null>;
export declare function getCityById(cityId: number): Promise<City | null>;
export declare function findStateAndCountryFromCity(cityName: string): Promise<CityDetailed[]>;
export declare function findCountryFromState(stateName: string): Promise<StateDetailed[]>;
//# sourceMappingURL=country-state-city.d.ts.map