import { DataSource } from 'typeorm'; import SupportedDb from '../metadata/supported-db'; export declare function getDataSource(database: string, options: { readonly type: SupportedDb; readonly host: string; readonly port: number; readonly user: string; readonly password: string; readonly entities?: string; }): DataSource; export declare function tableNameToTable(dataSource: DataSource, tableName: string): string; export declare function getVersionAndSuccessFromDb(dataSource: DataSource, type: SupportedDb, migrationsTableName: string): Promise<[bigint, boolean]>;