export interface Province { code: number; name: string; } export interface City { code: number; province_code: number; name: string; } export interface District { code: number; city_code: number; name: string; } export interface Village { code: number; district_code: number; name: string; postal_code: number; } export function getAllProvinces(): Promise; export function getProvinceByCode(code: number): Promise; export function getProvinceByName(name: string): Promise; export function getAllRegencies(): Promise; export function getCityByCode(code: number): Promise; export function getCityByName(name: string): Promise; export function getRegenciesOfProvinceCode(provinceCode: number): Promise; export function getRegenciesOfProvinceName(provinceName: string): Promise; export function getAllDistricts(): Promise; export function getDistrictByCode(code: number): Promise; export function getDistrictByName(name: string): Promise; export function getDistrictsOfCityCode(cityCode: number): Promise; export function getDistrictsOfCityName(cityName: string): Promise; export function getAllVillages(): Promise; export function getVillageByCode(code: number): Promise; export function getVillageByName(name: string): Promise; export function getVillagesOfDistrictCode(districtCode: number): Promise; export function getVillagesOfDistrictName(districtName: string): Promise;