import { EntityManagerType, IDatabaseDriver } from "./drivers"; import { MetadataStorage } from "./metadata"; import { Configuration, Options } from "./utils"; import { EntityManager } from "./EntityManager"; import { IEntityGenerator, IMigrator, ISchemaGenerator } from "./typings"; /** * Helper class for bootstrapping the MikroORM. */ export declare class MikroORM { em: D[typeof EntityManagerType] & EntityManager; readonly config: Configuration; private metadata; private readonly driver; private readonly logger; /** * Initialize the ORM, load entity metadata, create EntityManager and connect to the database. * If you omit the `options` parameter, your CLI config will be used. */ static init(options?: Options | Configuration, connect?: boolean): Promise>; constructor(options: Options | Configuration); /** * Connects to the database. */ connect(): Promise; /** * Checks whether the database connection is active. */ isConnected(): Promise; /** * Closes the database connection. */ close(force?: boolean): Promise; /** * Gets the MetadataStorage. */ getMetadata(): MetadataStorage; /** * Gets the SchemaGenerator. */ getSchemaGenerator(): T; /** * Gets the EntityGenerator. */ getEntityGenerator(): T; /** * Gets the Migrator. */ getMigrator(): T; }