import { Ct as ContentSchema, Gt as ContentRevision, an as RevisionListQuery, on as RevisionPage, sn as Sanitize, t as Actor, zt as ContentEntry } from "./authz-CFBezbW-.js";
import { Querier } from "@platform-modules/db";
//#region src/revisions.d.ts
/** Idempotent DDL for adopters migrating existing content_entries tables (spec §8). */
declare const contentRevisionsMigrationSql: () => string;
/** Append a snapshot of the entry's current live state before a put()-update (spec §4.1). */
declare function snapshotRevision(db: Querier<ContentSchema>, entryId: string, actor: Actor): Promise<ContentRevision>;
/** Keyset-paginated revision history for one entry, newest first (spec §4.2). */
declare function listRevisions(db: Querier<ContentSchema>, entryId: string, actor: Actor, query?: RevisionListQuery): Promise<RevisionPage>;
/** Load one revision by id (spec §4.3). */
declare function getRevision(db: Querier<ContentSchema>, revisionId: string, actor: Actor): Promise<ContentRevision>;
/** Restore a revision's content tuple via put(); snapshots current state first (spec §4.4). */
declare function restoreRevision(db: Querier<ContentSchema>, revisionId: string, actor: Actor, sanitize: Sanitize): Promise<ContentEntry>;
//#endregion
export { contentRevisionsMigrationSql, getRevision, listRevisions, restoreRevision, snapshotRevision };