import type { Token } from '@furystack/inject'; import type { MongoClientOptions } from 'mongodb'; import { MongoClient } from 'mongodb'; /** * Pools {@link MongoClient} instances by URL so every store that targets the * same MongoDB deployment shares a single connection. * * Application code rarely calls this directly — {@link defineMongoDbStore} * resolves the factory token internally. Exported for tests and advanced * integrations that need raw client access (e.g. dropping a test database). */ export interface MongoClientFactory { getClientFor(url: string, options?: MongoClientOptions): MongoClient; } /** * Singleton token for the {@link MongoClientFactory}. Closes every pooled * client when the owning injector is disposed. */ export declare const MongoClientFactory: Token; //# sourceMappingURL=mongo-client-factory.d.ts.map