import type { Pool } from "pg"; export interface Migration { version: number; name: string; file: string; checksum: string; sql: string; } export interface MigrationResult { applied: number[]; currentVersion: number; total: number; } export declare class MigrationIntegrityError extends Error { readonly name = "MigrationIntegrityError"; } export declare function loadMigrations(directory?: string): Promise; export declare function runMigrations(pool: Pool, directory?: string): Promise; export declare function migrationStatus(pool: Pool, directory?: string): Promise<{ currentVersion: number; latestVersion: number; pending: number[]; }>;