/** * Version Operations Implementation * * Provides version management operations for versioned collections. */ import type { DatabaseAdapter, CollectionConfig, DocumentStatus, DocumentVersionParsed, VersionQueryResult, RestoreVersionOptions, PublishOptions, SchedulePublishResult } from '@momentumcms/core'; import type { MomentumAPIContext, VersionOperations, VersionFindOptions } from './momentum-api.types'; /** * Implementation of version operations for a collection. */ export declare class VersionOperationsImpl> implements VersionOperations { private readonly slug; private readonly collectionConfig; private readonly adapter; private readonly context; constructor(slug: string, collectionConfig: CollectionConfig, adapter: DatabaseAdapter, context: MomentumAPIContext); findVersions(parentId: string, options?: VersionFindOptions): Promise>; findVersionById(versionId: string): Promise | null>; restore(options: RestoreVersionOptions): Promise; publish(docId: string, _options?: PublishOptions): Promise; unpublish(docId: string): Promise; saveDraft(docId: string, data: Partial): Promise>; getStatus(docId: string): Promise; compare(versionId1: string, versionId2: string, parentId?: string): Promise<{ field: string; oldValue: unknown; newValue: unknown; }[]>; schedulePublish(docId: string, publishAt: string): Promise; cancelScheduledPublish(docId: string): Promise; private checkAccess; private buildRequestContext; }