/** * @module core-clone-cmd * * Isomorphic engine implementation for `vcs clone` and `vcs fork`. * Supports two-phase WebSocket pull: * Phase 1: Pull remote CosmosIbGib_V1 and member galaxy manifests into localSpace. * Phase 2: Pull selected member galaxy branch spaces (DAG, snapshots, binaries). * Phase 3: Project snapshot item trees onto the local filesystem. */ import { VcsCloneOpts, VcsCloneResult, VcsForkOpts, VcsForkResult } from './command-types.mjs'; /** * Traverses upward from startDir to locate the polycosmos root (where .vcsgib exists). */ export declare function findPolycosmosRoot(startDir: string, vcsFolderName?: string): Promise; /** * Executes isomorphic VCS clone operation. */ export declare function executeVcsClone({ metaspace, localSpace, remoteUrl, targetCosmosName, cwd, galaxy, vcsFolderName, senderIdentityInfo, fnSenderSecret, conflictStrategy, onProgress, }: VcsCloneOpts): Promise; /** * Executes VCS fork operation: * 1. Clones the remote cosmos into the local polycosmos. * 2. In-place local fork: mints a new CosmosIbGib_V1 with the local user as owner, * attaches origin info to ancestor, and registers in localSpace. * Zero duplicate file copying and zero CAS object re-downloads. */ export declare function executeVcsFork(opts: VcsForkOpts): Promise; //# sourceMappingURL=core-clone-cmd.d.mts.map