import type { EmptyRelations } from "drizzle-orm"; import type { SQLiteBunDatabase } from "drizzle-orm/bun-sqlite"; import { type DatabaseOptions } from "./db-shared.js"; import * as schema from "./schema.js"; export type Database = SQLiteBunDatabase; export type DbCtx = Parameters[0]>[0] | Database; export declare function createBunDatabaseClient(url: string, options?: DatabaseOptions): Promise; /** * Bind Contfu runtime database calls to one server request. Calls outside this scope * retain the default database selected when this module was initialized. */ export declare function withBunDatabase(database: Database, fn: () => T): T; export declare const createDatabaseClient: typeof createBunDatabaseClient; export declare const withDatabase: typeof withBunDatabase; export declare const db: DbCtx;