/** * Loading `c15t-backend.config.ts`. * * 2.x pulled an `adapter` out of the config and handed it to fumadb. 3.0 needs * only the `database` field, which is either `{ dialect, url }` or a * `SqlClient` layer the host built itself. * * The layer form is accepted here as well as the config form, because a config * file is code and someone will reasonably reach for it — sharing a pool with * an application, or pointing the migrator at a test database. */ import type { DatabaseOption } from '@c15t/backend'; import { loadConfig } from 'c12'; import type { CliContext } from '../../../context/types.js'; interface ReadDatabaseConfigDependencies { loadConfig: typeof loadConfig; } /** * Reads the config and returns its `database` option. * * @throws {Error} when the file is missing, unreadable, or has no `database`. */ export declare const readDatabaseConfig: (context: CliContext, absoluteConfigPath: string, dependencies?: ReadDatabaseConfigDependencies) => Promise; export {};