import { type AgentEventSource, type CheckpointStore, type LeaseStore, type ProductionPersistenceStore, type RunFeedbackStore, type RunLedger, type SessionStore } from "@arnilo/prism"; import { DEFAULT_POOL_MAX, DEFAULT_SCHEMA, type PostgresPersistenceOptions } from "./types.js"; export interface PostgresPersistence extends SessionStore, RunLedger, ProductionPersistenceStore { readonly name: "postgres"; readonly checkpoints: CheckpointStore; readonly events: AgentEventSource; readonly leases: LeaseStore; readonly feedback: RunFeedbackStore; readonly lifecycle: import("@arnilo/prism").PersistenceLifecycleStore; readonly metadata: Readonly<{ readonly kind: "postgres"; readonly multiProcess: true; readonly driver: "pg"; readonly schema: string; }>; close(): Promise; } export declare function createPostgresPersistence(options: PostgresPersistenceOptions): Promise; export declare function reopenPostgresPersistence(options: PostgresPersistenceOptions): Promise; export { DEFAULT_POOL_MAX, DEFAULT_SCHEMA };