/** * LadybugDB Adapter (Connection Pool) * * Manages a pool of LadybugDB databases keyed by repoId, each with * multiple Connection objects for safe concurrent query execution. * * LadybugDB Connections are NOT thread-safe — a single Connection * segfaults if concurrent .query() calls hit it simultaneously. * This adapter provides a checkout/return connection pool so each * concurrent query gets its own Connection from the same Database. * * @see https://docs.ladybugdb.com/concurrency — multiple Connections * from the same Database is the officially supported concurrency pattern. */ /** * Initialize (or reuse) a Database + connection pool for a specific repo. * Retries on lock errors (e.g., when `gitnexus analyze` is running). */ export declare const initLbug: (repoId: string, dbPath: string) => Promise; export declare const executeQuery: (repoId: string, cypher: string) => Promise; /** * Execute a parameterized query on a specific repo's connection pool. * Uses prepare/execute pattern to prevent Cypher injection. */ export declare const executeParameterized: (repoId: string, cypher: string, params: Record) => Promise; /** * Close one or all repo pools. * If repoId is provided, close only that repo's connections. * If omitted, close all repos. */ export declare const closeLbug: (repoId?: string) => Promise; /** * Check if a specific repo's pool is active */ export declare const isLbugReady: (repoId: string) => boolean;