import { type IMigrationGenerator, type IMigrationRunner, type IMigratorStorage, type MikroORM } from '@mikro-orm/core'; import { AbstractMigrator } from '@mikro-orm/core/migrations'; import type { MongoDriver } from '@mikro-orm/mongodb'; import { MigrationStorage } from './MigrationStorage.js'; import type { MigrationResult } from './typings.js'; /** Manages MongoDB migrations: creation, execution, and rollback. */ export declare class Migrator extends AbstractMigrator { static register(orm: MikroORM): void; protected createRunner(): IMigrationRunner; protected createStorage(): IMigratorStorage; protected getDefaultGenerator(): IMigrationGenerator; /** * @inheritDoc */ create(path?: string, blank?: boolean, initial?: boolean, name?: string): Promise; /** @inheritDoc */ checkSchema(): Promise; /** * @inheritDoc */ createInitial(path?: string): Promise; getStorage(): MigrationStorage; }