/**
 * PostgreSQL Storage Adapter
 *
 * Full-parity implementation of the AgentDatabase contract on top of
 * PostgreSQL. The adapter is a drop-in alternative to Skalex when the
 * operator wants centralized storage (multiple agents pointing at the
 * same DB cluster, off-host backups, point-in-time recovery, etc.).
 *
 * Encryption at rest is mandatory and matches Skalex's behavior:
 *   - Every value is AES-256-GCM encrypted in the agent before being
 *     written to the DB.
 *   - The 32-byte key is the same one Skalex receives — fetched per-
 *     workspace from wspace-vibecontrols-svc, never persisted to disk.
 *   - Each row carries its own random 12-byte IV and the GCM auth tag.
 *
 * Schema: one table — `documents(collection text, id text, ciphertext
 * bytea, iv bytea, tag bytea, created_at timestamptz, updated_at
 * timestamptz, PRIMARY KEY(collection, id))`. Filtering by domain
 * fields (e.g. notifications by status) happens after we decrypt and
 * deserialize the document — so this scales to thousands of rows per
 * collection (the typical agent profile), not millions. For larger
 * fleets, sharding by agent ID + heavy filters belongs in a future
 * adapter that pre-extracts indexed columns.
 *
 * Side-effect: importing this module registers the "postgres" adapter
 * with the storage meta plugin's registry. The agent then loads it via
 * `VIBE_STORAGE_ADAPTER=postgres` (or the equivalent option to
 * `createAgentDatabase`).
 */
import { type AgentStorageAdapterFactory } from "@vibecontrols/vibe-plugin-storage";
export declare const createPostgresAgentDatabase: AgentStorageAdapterFactory;
