import { Kysely } from "kysely";

//#region src/helpers.d.ts

/**
 * Creates a Kysely database instance with PostgreSQL dialect and camelCase plugin.
 * This is a convenience function for quickly setting up a Kysely connection for testing.
 *
 * @template Database - The database schema type
 * @param config - PostgreSQL connection configuration (pg.Pool config)
 * @returns A configured Kysely instance
 *
 * @example
 * ```typescript
 * interface Database {
 *   users: UsersTable;
 *   posts: PostsTable;
 * }
 *
 * // Create from connection string
 * const db = createKyselyDb<Database>({
 *   connectionString: 'postgresql://user:pass@localhost:5432/testdb'
 * });
 *
 * // Create with detailed config
 * const db = createKyselyDb<Database>({
 *   host: 'localhost',
 *   port: 5432,
 *   database: 'testdb',
 *   user: 'testuser',
 *   password: 'testpass',
 *   max: 10 // connection pool size
 * });
 *
 * // Use in tests
 * const users = await db.selectFrom('users').selectAll().execute();
 * ```
 */
declare function createKyselyDb<Database>(config: any): Kysely<Database>;
//# sourceMappingURL=helpers.d.ts.map
//#endregion
export { createKyselyDb };
//# sourceMappingURL=helpers.d.cts.map