import { PgClient } from '@effect/sql-pg'; import { Context, Effect, Layer } from 'effect'; import { EventStoreConnectionError } from '@codeforbreakfast/eventsourcing-store'; declare const ConnectionManager_base: Context.TagClass; /** * Execute health check on listening connection */ readonly healthCheck: Effect.Effect; /** * Gracefully close the listen connection */ readonly shutdown: Effect.Effect; }>; /** * ConnectionManager service for managing PostgreSQL notification connections */ export declare class ConnectionManager extends ConnectionManager_base { } /** * Implementation of ConnectionManager service * Creates a robust persistent connection specifically for LISTEN/NOTIFY operations * This uses the main PgClient from the layer, so it inherits the same configuration */ export declare const ConnectionManagerLive: Layer.Layer; /** * Wraps an effect with automatic health checks and retry policy */ export declare const withConnectionHealth: (self: Effect.Effect) => Effect.Effect; export {}; //# sourceMappingURL=connectionManager.d.ts.map