import { Config, Database } from './Typings.js'; import { Knex } from 'knex'; /** * Converts a Database definition to TypeScript. * * @export * @param {Database} database The Database definition. * @param {Config} config The configuration to use. * @returns A TypeScript definition, optionally wrapped in a namespace. */ export declare function convertDatabaseToTypescript(database: Database, config: Config): string; /** * Converts a string or number into a safe string representation. * Used primarily for enum value generation. * * @param value A string or number to handle. * @returns The string representation of the input. */ export declare function handleNumeric(value: string | number): string; /** * Constructs a database by fetching the tables and enums. * * @export * @param {Config} config The sql-ts config to use. * @param {Knex} db The database context to use. * @returns {Promise} The constructed Database. */ export declare function generateDatabase(config: Config, db: Knex): Promise;