/** * Version of the persistence contract Eponyme expects, kept apart from the npm version: a release that * changes no table must not force anyone to migrate. */ export declare const EPONYME_SCHEMA_VERSION = 3; interface PrismaEponymeSchemaRow { version: number; } export interface PrismaEponymeSchemaClient { eponymeSchema: { findUnique(args: { where: { key: string; }; }): Promise; }; } export type EponymeSchemaVerification = { ok: true; version: number; } /** The table or its Prisma delegate is absent: the migration has never been applied. */ | { ok: false; reason: 'absent'; version?: never; } /** Recorded below what this build expects: migrations are pending. */ | { ok: false; reason: 'behind'; version: number; } /** Recorded above what this build expects: the database was migrated by a newer Eponyme. */ | { ok: false; reason: 'ahead'; version: number; } /** The read itself failed. Nothing is known about the schema, and `cause` says why. */ | { ok: false; reason: 'unknown'; version?: never; cause: unknown; }; /** Reads the version recorded in `_eponyme_schema` and compares it to this build's. */ export declare class EponymeSchemaService { private readonly client; constructor(client: PrismaEponymeSchemaClient); verify(): Promise; } export {};