import type { MongoClient, Db } from "mongodb"; /** Subset of `@x12i/helpers/mongo` collection API used by Catalox stores. */ export type MongoLikeCollection = { doc(id: string): { get(): Promise | null>; set(value: Record, opts?: { merge?: boolean; }): Promise; update(update: Record): Promise; delete(): Promise; }; find(filter?: Record, opts?: { limit?: number; }): Promise[]>; findOne(filter?: Record, opts?: { sortBy?: string; sortDir?: "asc" | "desc"; }): Promise | null>; insertOne(document: Record, opts?: { id?: string; }): Promise<{ insertedId: string; }>; deleteMany(filter: Record): Promise<{ deletedCount: number; }>; }; export type MongoLikeClient = { client: MongoClient; db: Db; collection(name: string): MongoLikeCollection; }; /** Catalox Mongo persistence primitive — wraps `@x12i/helpers/mongo`. */ export declare class MongoStore { readonly api: MongoLikeClient; constructor(api: MongoLikeClient); get client(): MongoClient; get db(): Db; collection(name: string): MongoLikeCollection; driverCollection(name: string): import("mongodb").Collection; close(): Promise; } //# sourceMappingURL=mongo-store.d.ts.map