import type { SchemaInspector } from '@db-studio/db-schema'; import type { Knex } from 'knex'; import type { DatabaseClient } from '../types/index.js'; export default function getDatabase(): Knex; export declare function getSchemaInspector(): SchemaInspector; /** * Get database version. Value currently exists for MySQL only. * * @returns Cached database version */ export declare function getDatabaseVersion(): string | null; export declare function hasDatabaseConnection(database?: Knex): Promise; export declare function validateDatabaseConnection(database?: Knex): Promise; export declare function getDatabaseClient(database?: Knex): DatabaseClient; export declare function isInstalled(): Promise; export declare function validateMigrations(): Promise; /** * These database extensions should be optional, so we don't throw or return any problem states when they don't */ export declare function validateDatabaseExtensions(): Promise;