/**
 * Shared database helper for CLI commands that need direct DB access.
 *
 * Provides a withDb() wrapper that creates a database connection from
 * KICI_DATABASE_URL, runs a callback, and ensures cleanup.
 */
import pg from 'pg';
import { Kysely } from 'kysely';
/**
 * Execute a callback with a database connection, then clean up.
 *
 * Reads the database URL from KICI_DATABASE_URL.
 * Creates a connection pool, runs the callback, and destroys the pool.
 */
export declare function withDb<T>(fn: (db: Kysely<any>, pool: pg.Pool) => Promise<T>): Promise<T>;
//# sourceMappingURL=db.d.ts.map