import type { Feature, MultiPolygon, Polygon } from 'geojson' import type { GeometryCollection, Topology } from 'topojson-specification' export type BahiaMunicipalityProperties = { codarea: string name: string } export type BahiaTerritoryProperties = { code: string name: string } export type BahiaMunicipalityFeature = Feature< Polygon | MultiPolygon, BahiaMunicipalityProperties > export type BahiaTerritoryFeature = Feature export type MunicipalityTopology = Topology<{ municipalities: GeometryCollection }> export type TerritoryTopology = Topology<{ territories: GeometryCollection }> export type MunicipalityGeometryModule = { topology: MunicipalityTopology features: readonly BahiaMunicipalityFeature[] getMunicipalityFeature: (codarea: string) => BahiaMunicipalityFeature | undefined } export type TerritoryGeometryModule = { topology: TerritoryTopology features: readonly BahiaTerritoryFeature[] getTerritoryFeature: (code: string) => BahiaTerritoryFeature | undefined }