/**
 * Database connection and configuration for Turso/LibSQL
 */
import { type Client } from '@libsql/client';
import type { DatabaseConfig } from '../types/base.js';
export declare class DatabaseConnection {
    private client;
    private config;
    constructor(config: DatabaseConfig);
    /**
     * Initialize the database connection
     */
    connect(): Promise<void>;
    /**
     * Get the database client
     */
    getClient(): Client;
    /**
     * Close the database connection
     */
    disconnect(): Promise<void>;
    /**
     * Execute a query with parameters
     */
    execute(sql: string, params?: any[]): Promise<any>;
    /**
     * Execute multiple queries in a transaction
     */
    transaction(queries: Array<{
        sql: string;
        params?: any[];
    }>): Promise<any[]>;
    /**
     * Check if the database is connected
     */
    isConnected(): boolean;
    /**
     * Sync the database (for embedded replicas)
     */
    sync(): Promise<void>;
}
/**
 * Get or create the database connection instance
 */
export declare function getDatabase(config?: DatabaseConfig): DatabaseConnection;
/**
 * Initialize database from environment variables
 */
export declare function initDatabaseFromEnv(): DatabaseConnection;
//# sourceMappingURL=connection.d.ts.map