import { U as UserError } from './errors-BcVE1wZB.js'; import { D as Diagnostic } from './dto-CIYO4YQw.js'; declare class DirectoryProjectMutationConflictError extends UserError { readonly status = 409; constructor(message: string); } interface DirectorySnapshotFile { path: string; mode: number; content: Uint8Array; } interface DirectoryProjectSnapshot { project_revision: string; canonical_yaml: string; files: DirectorySnapshotFile[]; } interface DirectoryProjectVersion { version_id: string; short_version: string; parent_version: string | null; tree_hash: string; yaml_hash: string; message: string; created_by: string; created_at: string; } interface DirectoryProjectVersionStatus { initialized: boolean; enabled: boolean; store_root: string; head_version: string | null; source_status: "clean" | "modified" | "unversioned"; project_revision: string; write_blockers: string[]; restore_blockers: string[]; } interface DirectoryVersionFileChange { path: string; change: "create" | "update" | "delete"; binary: boolean; before?: string; after?: string; } interface DirectoryProjectVersionPreview { version_id: string; base_head_version: string; base_project_revision: string; before_yaml: string; after_yaml: string; changes: DirectoryVersionFileChange[]; diagnostics: Diagnostic[]; can_restore: boolean; blockers: string[]; } interface PreparedDirectoryProjectVersion { projectRoot: string; storeRoot: string; baseHeadVersion: string | null; snapshot: DirectoryProjectSnapshot; treeHash: string; needsVersion: boolean; versioningEnabled: boolean; leaseToken: string; } interface DirectoryProjectVersionAdapter { readSnapshot(): Promise; restoreSnapshot(snapshot: DirectoryProjectSnapshot, baseProjectRevision: string): Promise; } interface DirectoryProjectVersionService { status(): Promise; enable(message?: string): Promise<{ version: DirectoryProjectVersion | null; versioning: DirectoryProjectVersionStatus; }>; disable(): Promise; listVersions(input?: { cursor?: string; limit?: number; }): Promise<{ versions: DirectoryProjectVersion[]; next_cursor: string | null; }>; previewVersion(versionId: string): Promise; restoreVersion(versionId: string, base: { headVersion: string; projectRevision: string; }): Promise; prepareVersion(snapshot?: DirectoryProjectSnapshot): Promise; commitPrepared(prepared: PreparedDirectoryProjectVersion, message?: string): Promise; releasePrepared(prepared: PreparedDirectoryProjectVersion | null): Promise; } declare function createDirectoryProjectVersionService(input: { projectRoot: string; adapter: DirectoryProjectVersionAdapter; }): DirectoryProjectVersionService; export { DirectoryProjectMutationConflictError as D, type PreparedDirectoryProjectVersion as P, type DirectoryProjectSnapshot as a, type DirectoryProjectVersion as b, type DirectoryProjectVersionAdapter as c, type DirectoryProjectVersionPreview as d, type DirectoryProjectVersionService as e, type DirectoryProjectVersionStatus as f, type DirectorySnapshotFile as g, type DirectoryVersionFileChange as h, createDirectoryProjectVersionService as i };