import type { SandboxArchiveLimits } from '../../client'; import { type RemoteSnapshotSpec, type SnapshotSpec } from '../../snapshot'; import type { LocalSandboxSnapshot, LocalSandboxSnapshotSpec, LocalSnapshot, LocalSnapshotSpec } from '../types'; import type { Stats } from 'node:fs'; import type { Manifest } from '../../manifest'; export declare const LOCAL_SNAPSHOT_FINGERPRINT_VERSION = "workspace_tree_sha256_v1"; export type LocalSnapshotFingerprint = { fingerprint: string; version: typeof LOCAL_SNAPSHOT_FINGERPRINT_VERSION; }; type LocalSnapshotState = { workspaceRootPath: string; manifest: Manifest; snapshotExcludedPaths?: Iterable; snapshotSpec?: SnapshotSpec | null; snapshot?: LocalSandboxSnapshot | null; snapshotFingerprint?: string | null; snapshotFingerprintVersion?: string | null; }; export declare function createLocalSnapshot(state: LocalSnapshotState, spec?: LocalSnapshotSpec): Promise; export declare function persistLocalSnapshot(providerName: string, state: TState, spec: SnapshotSpec | null, capture?: (operation: () => Promise) => Promise): Promise; export declare function serializeLocalSnapshotSpec(spec: LocalSandboxSnapshotSpec | null | undefined): Record | null; export declare function rehydrateLocalSnapshotSpec(serialized: unknown, configured: LocalSandboxSnapshotSpec | null | undefined): LocalSandboxSnapshotSpec | null; export declare function replaceLocalSnapshot(state: TState, snapshot: LocalSandboxSnapshot | null): Promise; export declare function canReuseLocalSnapshotWorkspace(state: LocalSnapshotState): Promise; export declare function localSnapshotIsRestorable(state: LocalSnapshotState): Promise; export declare function restoreLocalSnapshotToWorkspace(state: TState, workspaceRootPath: string, options?: { archiveLimits?: SandboxArchiveLimits | null; }): Promise; export declare function computeLocalSnapshotFingerprint(state: LocalSnapshotState): Promise; export declare function copyDirectory(sourceRoot: string, destinationRoot: string, excludedLogicalPaths?: Set, currentRelativePath?: string, expectedSourceStats?: Stats, destinationRootPath?: string): Promise; export declare function isRemoteSnapshotSpec(spec: SnapshotSpec | null | undefined): spec is RemoteSnapshotSpec; export {};