import { Collection } from "mongodb"; import { Constructor } from "@replikit/core/typings"; import { Repository, Entity } from "./index"; import { PlainObject, RepositoryOptions } from "@replikit/storage/typings"; export declare class ConnectionManager { private client; private db; private readonly rawCollectionMap; private readonly repositoryMap; private readonly repositoryExtensionMap; connect(uri: string): Promise; close(): Promise; getNextId(collection: string): Promise; getRawCollection(name: string): Collection; getCollection(constructor: Constructor): Collection>; registerRepository(name: string, constructor: Constructor, options?: RepositoryOptions): Repository; registerRepositoryExtension>(constructor: Constructor, extension: Constructor): U; getRepository(constructor: Constructor): Repository; getRepository>(constructor: Constructor): U; }