import { Knex } from 'knex'; import MigrationRunner from './domain/MigrationRunner'; import MigrationSourceContext from './domain/MigrationSourceContext'; /** * Migration source class for the Knex Migration API. * An instance of this class is passed to the knex's migration config as `migrationSource`. * * Reference: http://knexjs.org/#Migrations-API */ declare class KnexMigrationSource implements Knex.MigrationSource { private migrationContext; private log; /** * KnexMigrationSource constructor. * * @param {MigrationEntry[]} migrationLists */ constructor(migrationContext: MigrationSourceContext); /** * Gets a list of migration names. * * @returns {Promise} */ getMigrations(): Promise; /** * Gets the name of the migration. * * @param {string} migration * @returns {string} */ getMigrationName(migration: string): string; /** * Get the migration runner. * * @param {string} name * @returns {Promise} */ getMigration(name: string): Promise; } export default KnexMigrationSource;