/**
 * Parse multi-repo snapshot: "folder1:hash1,folder2:hash2" → { folder1: "hash1", ... }
 * Backward compat: "abc123" (no colon) → { [primaryFolderName]: "abc123" }
 */
export declare function parseGitSnapshot(snapshot: string | undefined, primaryFolderName?: string): Record<string, string>;
/**
 * Serialize commits: { folder1: "hash1", ... } → "folder1:hash1,folder2:hash2"
 * For single-repo, returns the full format with folder name
 */
export declare function serializeGitSnapshot(commits: Record<string, string>): string;
/**
 * Get commit for specific folder from snapshot
 * @param snapshot - The snapshot string to parse
 * @param folderName - The folder name to look up
 * @param primaryFolderName - The primary folder name for parsing old format (optional, defaults to "code")
 */
export declare function getCommitFromSnapshot(snapshot: string | undefined, folderName: string, primaryFolderName?: string): string | undefined;
