import { MigratorConfig } from "../interfaces/config"; import { History } from "../interfaces/history"; import { ConnectionMap, Migration, MigrationExecutor } from "../interfaces/interfaces"; export declare class Migrator { protected connections: ConnectionMap; protected history: History; protected migrations: string; constructor(config: MigratorConfig); close(): Promise; up(id: string, forced?: boolean): Promise; down(id: string, forced?: boolean): Promise; migrate(onUp?: (migration: Migration) => void, onComplete?: (migration: Migration) => void, onError?: (error: any, migration: Migration) => void): Promise; rollback(onDown?: (migration: Migration) => void, onComplete?: (migration: Migration) => void, onError?: (error: any, migration: Migration) => void): Promise; status(): Promise; protected getMigrationExecutor(id: string): Promise; protected getMigrationFiles(): Promise; }