import type { UmzugStorage } from './contract'; type AnyObject = Record; export type MongoDBConnectionOptions = { /** A connection to target database established with MongoDB Driver */ readonly connection: AnyObject; /** The name of the migration collection in MongoDB @default 'migrations' */ readonly collectionName?: string; }; export type MongoDBCollectionOptions = { /** A reference to a MongoDB Driver collection */ readonly collection: AnyObject; }; export type MongoDBStorageConstructorOptions = MongoDBConnectionOptions | MongoDBCollectionOptions; export declare class MongoDBStorage implements UmzugStorage { readonly collection: AnyObject; readonly connection: any; readonly collectionName: string; constructor(options: MongoDBStorageConstructorOptions); logMigration({ name: migrationName }: { name: string; }): Promise; unlogMigration({ name: migrationName }: { name: string; }): Promise; executed(): Promise; } export {};