import { type SchemaMigration } from '../utils/schema-migrations.js'; export { type AppliedMigration, type MigrationResult, type MigrationStatus, migrationChecksum, type SchemaMigration, SchemaMigrationError, } from '../utils/schema-migrations.js'; export { circuitStoreMigration, circuitStoreMigrations, PostgresCircuitStateStore, type PostgresCircuitStateStoreOptions, } from './circuits.js'; export { fromPostgresJs, type PostgresJsLike, type PostgresLikeClient } from './client.js'; export { evaluationStoreMigration, evaluationStoreMigrations, PostgresDatasetStore, type PostgresEvaluationStoreOptions, PostgresExperimentStore, } from './evaluate.js'; export { applyPostgresMigrations, type PostgresMigrateOptions, postgresMigrationStatus, } from './migrations.js'; export { operationStoreMigration, operationStoreMigrations, PostgresOperationStore, type PostgresOperationStoreOptions, } from './operations.js'; export { PostgresPromptStore, type PostgresPromptStoreOptions, promptStoreMigration, promptStoreMigrations, } from './prompts.js'; export { PostgresRollupStore, type PostgresRollupStoreOptions, rollupStoreMigration, rollupStoreMigrations, } from './rollups.js'; export { PostgresStore, type PostgresStoreOptions, storeMigration, storeMigrations } from './store.js'; export { PostgresTraceStore, type PostgresTraceStoreOptions, traceStoreMigration, traceStoreMigrations, } from './traces.js'; export { PostgresTenantUsage, type PostgresTenantUsageOptions, tenantUsageMigration, tenantUsageMigrations, } from './tenancy.js'; export { PostgresVectorStore, type PostgresVectorStoreOptions, vectorStoreMigration, vectorStoreMigrations, } from './vectors.js'; /** The Postgres adapters a migration can include. */ export type PostgresAdapter = 'operations' | 'store' | 'traces' | 'evaluation' | 'circuits' | 'tenancy' | 'prompts' | 'rollups' | 'vectors'; /** Options for `postgresMigrations()` and `postgresMigration()`. */ export interface PostgresMigrationOptions { /** * Adapters to include. Defaults to every one but `vectors`, which needs pgvector and * `vectorDimensions`, so it is included only when named. */ adapters?: readonly PostgresAdapter[]; /** Enables pgvector for the long-term store, and sets the width of the `vectors` table. */ vectorDimensions?: number; } /** Options for `postgresMigration()`. */ export interface PostgresMigrationScriptOptions extends PostgresMigrationOptions { /** * Also creates `nexus_schema_migrations` and records every migration in the script as applied, so * `nexus db status` agrees with a database built by the application's own tooling. Off by default. */ record?: boolean; } /** Every adapter, in the order a migration applies them. */ export declare const POSTGRES_ADAPTERS: readonly PostgresAdapter[]; /** * The versioned migrations of the chosen adapters on their default tables, for * `applyPostgresMigrations()`, `postgresMigrationStatus()`, and `nexus db migrate`. A store on a * custom table migrates through its own `migrate()`. */ export declare function postgresMigrations(options?: PostgresMigrationOptions): SchemaMigration[]; /** * The schema for the chosen adapters, as one SQL script. * * For migration tooling the application already has — Flyway, Prisma, a plain `psql -f` — which is * usually where a schema change belongs. Every statement is idempotent, so the script runs again * safely after an upgrade. `nexus db sql` prints the same script. */ export declare function postgresMigration(options?: PostgresMigrationScriptOptions): string;