import commander from 'commander'; type ArgKeys = 'database' | 'migration' | 'count' | 'version'; type OptionKeys = 'host' | 'port' | 'password' | 'type' | 'user' | 'yes' | 'dryRun' | 'entities' | 'javascript' | 'path' | 'sequential' | 'tableName'; export declare function askPasswordIfNeeded(options: { readonly type: string; readonly password?: string; }): Promise; export declare function registerCommand(program: commander.Command, commandName: string, description: string, args: readonly ArgKeys[], options: { readonly [K in OptionKeys]?: true; }, action: (..._: readonly any[]) => void | Promise): commander.Command; export declare function printConnectOptions(database: string, options: { readonly type: string; readonly host: string; readonly port: string; readonly user: string; }): void; export {};