import { Db, ObjectId as MongoObjectId } from "mongodb"; export * from "./cities"; export * from "./streets"; export * from "./departmentsSubjects"; export * from "./tickets"; export * from "./systemInstructions"; export * from "./muniIssues"; export * from "./utils/types"; export type { CityName } from "./utils/types"; export { municipalDataMongodbClient } from "./mongodb-client"; let db: Db; export const setDb = (d: Db) => { db = d; }; export const getDb = (): Db => { if (!db) throw new Error("Municipal Data DB not initialised"); return db; }; export const ObjectId = MongoObjectId;