import type sqlite3 from 'sqlite3'; import { Database } from 'sqlite'; /** * Represents a SQLite database connection for the application. * * This type is a wrapper around the `Database` type from the SQLite library, * specifying the database and statement types as `sqlite3.Database` and * `sqlite3.Statement` respectively. * * @type {Database} */ export type AppDb = Database; /** * Opens a connection to a SQLite database. * * @param filename - The path to the SQLite database file. If the file does not exist, it will be created. * @returns A Promise that resolves to an AppDb instance representing the opened database connection. * * @example * ```typescript * const db = await openDb('./myDatabase.sqlite'); * ``` */ export declare function openDb(filename: string): Promise;