import type Database from 'better-sqlite3'; export type DbCommand = 'migrate' | 'status' | 'stamp'; export interface RunCliOptions { /** Caller-controlled DB open. Wrapper closes it before returning. */ openDb: () => Database.Database; migrationsDir: string; command: DbCommand; /** Required for `stamp`. */ version?: string; /** Default false. Forwarded to applyMigrations. */ stampGenesis?: boolean; /** Default 'users'. Forwarded to applyMigrations. */ genesisProbeTable?: string; /** Default process.stdout / process.stderr. Wired for tests. */ stdout?: NodeJS.WritableStream; stderr?: NodeJS.WritableStream; } export declare function runMigrateCli(opts: RunCliOptions): number;