UNPKG

@bangladeshi/bangladesh-address

Version:

A simple npm package for Bangladesh's administrative divisions, districts, upazilas, and metropolitan thanas.

22 lines (21 loc) 768 B
import { getDivision } from "./division"; import { DivisionName } from "./types/division-name"; import { DivisionalData } from "../types"; /** * Get all division names * @returns Array of all division names in Bangladesh */ export declare const allDivision: () => string[]; /** * Check if a name is a valid division * @param name - The name to check * @returns true if the name is a valid division, false otherwise */ export declare const isValidDivision: (name: string) => boolean; /** * Get all districts and upazilas for a given division * @param division - The division name * @returns Array of objects containing district and upazila names */ export declare const divisionalDataOf: (division: DivisionName) => DivisionalData[]; export { getDivision };