import { Db, ObjectId as MongoObjectId } from "mongodb"; export * from "./prompts"; export * from "./models"; export * from "./internalModels"; export { configurationMongodbClient } from "./mongodb-client"; let db: Db; export const setDb = (d: Db) => { db = d; }; export const getDb = (): Db => { if (!db) throw new Error("Configuration DB not initialised"); return db; }; export const ObjectId = MongoObjectId;