UNPKG

bd-geo-info

Version:

A comprehensive Bangladesh geographical data package with hierarchical selection and address form components

25 lines (24 loc) 999 B
import { PostCode } from '../types'; export declare const getDivisions: (language?: "en" | "bn") => Promise<{ value: string; label: string; }[]>; export declare const getDistricts: (divisionId: string, language?: "en" | "bn") => Promise<{ value: string; label: string; }[]>; export declare const getUpazilas: (districtId: string, language?: "en" | "bn") => Promise<{ id: string; district_id: string; name: string; bn_name: string; value: string; label: string; }[]>; export declare const getUnions: (upazilaId: string, language?: "en" | "bn") => Promise<{ value: string; label: string; }[]>; export declare const getPostCodes: (districtId?: string | null, upazila?: string) => Promise<PostCode[]>; export declare const formatAddress: (division: string, district: string, upazila: string, union: string, postCode: string, street: string, language?: "en" | "bn") => Promise<string>; export declare const validatePostCode: (postCode: string) => boolean;