/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { MikroORM, Options as MikroORMOptions } from '@mikro-orm/core'; /** * Parses a database connection URI and returns MikroORM Options. * * @param uri The database connection URI (e.g., "postgres://user:password@host:port/database") * @returns MikroORM Options configured for the database * @throws Error if the URI is invalid or unsupported */ export declare function getConnectionOptionsFromUri(uri: string): Promise; /** * Creates a database and tables if they don't exist. * * @param orm The MikroORM instance. * @returns Promise */ export declare function ensureDatabaseCreated(orm: MikroORM): Promise; /** * Validates the schema version. * * @param orm The MikroORM instance. * @throws Error if the schema version is not compatible. */ export declare function validateDatabaseSchemaVersion(orm: MikroORM): Promise;