/** * Unified database connector for PostgreSQL and SQLite. * * Provides a common async-iterable interface over query results. * Encrypted SQLite support is stubbed for future implementation. */ import type { DbConnection, DbSource } from './types'; /** * Connect to a database and return a unified DbConnection. */ export declare function connectDb(source: DbSource): Promise; /** * Detect database type from a connection string. * - Starts with "postgres://" or "postgresql://" → postgres * - Otherwise → sqlite (treat as file path) */ export declare function detectDbType(connectionString: string): DbSource['type'];