import type { Database } from "bun:sqlite"; import type { BunSQLiteConfig, BunSQLiteConfigReturn, BUN_SQLITE_DatabaseSchemaType } from "../types"; /** * # Declare Global Variables */ declare global { var CONFIG: BunSQLiteConfig; var DB_SCHEMA: BUN_SQLITE_DatabaseSchemaType; var SQLITE_CLIENT: Database; var CONFIG_FILE_PATH: string; var SCHEMA_FILE_PATH: string; } /** * # Load config, schema and the SQLite client into globals * @description Runs once per process. Later calls return the loaded * globals. */ export default function init(): BunSQLiteConfigReturn;