/** * @fileoverview Adapter that wraps a BrightDb instance to conform to the * Mongoose-style DocumentStore / DocumentCollection interfaces. * * BrightDb.Collection has a direct async API (async findOne → Promise, * insertOne, Cursor-based find). DocumentCollection uses QueryBuilder * (with .exec(), .select(), .lean(), etc.) and .create(). This adapter * bridges the gap so `application.db` returns a proper DocumentStore. * * @module datastore/bright-db-document-store-adapter */ import type { BrightDb } from '@brightchain/db'; import type { DocumentCollection, DocumentRecord, DocumentStore } from './document-store'; /** * Wraps a BrightDb instance to implement the Mongoose-style DocumentStore * interface. Each collection() call returns a BrightDbCollectionAdapter * that bridges BrightDb's Collection API to DocumentCollection. */ export declare class BrightDbDocumentStoreAdapter implements DocumentStore { readonly brightDb: BrightDb; private readonly _adapters; constructor(brightDb: BrightDb); collection(name: string): DocumentCollection; } //# sourceMappingURL=bright-db-document-store-adapter.d.ts.map