import type { AgentEventSourceOptions, SecretRedactor } from "@arnilo/prism"; import type { Pool, PoolConfig } from "pg"; /** Default PostgreSQL schema for Prism tables. */ export declare const DEFAULT_SCHEMA = "prism"; /** Default maximum pool size when the adapter creates its own pool. */ export declare const DEFAULT_POOL_MAX = 10; export interface PostgresPersistenceOptions { /** Existing `pg` pool (advanced). Caller owns lifecycle when set. */ readonly pool?: Pool; /** Connection string used when `pool` is omitted. */ readonly connectionString?: string; /** PostgreSQL schema for Prism tables. Defaults to {@link DEFAULT_SCHEMA}. */ readonly schema?: string; /** Maximum pool size when creating a pool from `connectionString`. Defaults to {@link DEFAULT_POOL_MAX}. */ readonly poolMax?: number; /** Additional pool options when creating a pool from `connectionString`. */ readonly poolConfig?: Omit; /** Redacts feedback comments/tags/metadata before durable storage. */ readonly feedbackRedactor?: SecretRedactor; /** Bounds durable event pages, subscriptions, polling, and retention operations. */ readonly eventSource?: AgentEventSourceOptions; /** Stable HMAC secret shared by replicas that resume durable event cursors. */ readonly eventCursorSecret?: string | Uint8Array; /** Skip automatic migration on open (tests only). */ readonly skipMigrations?: boolean; }