/**
 * @agentuity/postgres - DEPRECATED
 *
 * Use pg or drizzle-orm/node-postgres directly against your DATABASE_URL.
 * This package is no longer recommended for new projects.
 *
 * ~~Resilient PostgreSQL client with automatic reconnection~~
 *
 * This package provided a PostgreSQL client that wrapped Bun's native SQL driver
 * and added automatic reconnection with exponential backoff.
 *
 * @example
 * ```typescript
 * import { postgres } from '@agentuity/postgres';
 *
 * // Create a client (uses DATABASE_URL by default)
 * const sql = postgres();
 *
 * // Execute queries using tagged template literals
 * const users = await sql`SELECT * FROM users WHERE active = ${true}`;
 *
 * // Transactions
 * const tx = await sql.begin();
 * try {
 *   await tx`INSERT INTO users (name) VALUES (${name})`;
 *   await tx.commit();
 * } catch (error) {
 *   await tx.rollback();
 *   throw error;
 * }
 *
 * // Close when done
 * await sql.close();
 * ```
 *
 * @packageDocumentation
 */
// Main factory function
export { postgres, default } from "./postgres.js";
// Client class for advanced usage
export { PostgresClient, createCallableClient, createThenable, } from "./client.js";
// Pool class for pg.Pool-based connections
export { PostgresPool, Pool, createPool } from "./pool.js";
// Transaction and reserved connection classes
export { Transaction, Savepoint, ReservedConnection } from "./transaction.js";
// Patch function for modifying Bun.SQL globally
export { patchBunSQL, isPatched, SQL } from "./patch.js";
// TLS utilities
export { injectSslMode } from "./tls.js";
// Mutation detection utility
export { isMutationStatement } from "./mutation.js";
// Errors
export { PostgresError, ConnectionClosedError, ReconnectFailedError, QueryTimeoutError, TransactionError, UnsupportedOperationError, isRetryableError, } from "./errors.js";
// Reconnection utilities
export { computeBackoff, sleep, mergeReconnectConfig, DEFAULT_RECONNECT_CONFIG, } from "./reconnect.js";
// Global registry for coordinated shutdown
export { shutdownAll, getClientCount, getClients, hasActiveClients, } from "./registry.js";
//# sourceMappingURL=index.js.map