/** * Database client setup using LibSQL (WASM-compatible) */ import { type Client } from '@libsql/client'; import { drizzle } from 'drizzle-orm/libsql'; import * as schema from './schema.js'; export interface DbConfig { dbPath?: string; codebaseRoot?: string; } export interface DbInstance { db: ReturnType>; client: Client; dbPath: string; } /** * Get the global coderag data directory * Uses ~/.coderag/projects// for persistent storage */ export declare function getCoderagDataDir(codebaseRoot: string): string; /** * Project metadata stored alongside the database */ export interface ProjectMetadata { path: string; name: string; createdAt: string; lastAccessedAt: string; } /** * Create database client (async for LibSQL compatibility) */ export declare function createDb(config?: DbConfig): Promise; //# sourceMappingURL=client.d.ts.map