import type { MigrationRunnerFn } from './common'; import type { createStorage } from './storage'; export interface MigrationMeta { name: string; path?: string; } export interface RunnableMigration extends MigrationMeta { up: MigrationRunnerFn; down: MigrationRunnerFn; } export interface MigrationRunnerLogger { info(message: unknown): void; } export interface MigrationRunnerOptions { storage: ReturnType; logger: MigrationRunnerLogger; getMigrations: () => Promise; /** Labels pool timeout reports with the running migration's name. */ withPhase?: (phase: string, fn: () => Promise) => Promise; } export declare const createMigrationRunner: (opts: MigrationRunnerOptions) => { pending(): Promise; up(): Promise; down(): Promise; }; //# sourceMappingURL=runner.d.ts.map