import { BashTool } from '../tools/index.js'; export interface WorktreeInfo { path: string; branch: string; commit: string; isCurrent: boolean; isBare: boolean; lastModified: Date; } export interface WorktreeCompatibility { compatible: boolean; issues: string[]; recommendations: string[]; } export declare class WorktreeManager { private bash; constructor(bash: BashTool); /** * Detect all Git worktrees in the current repository */ detectWorktrees(projectRoot?: string): Promise; /** * Validate compatibility across worktrees */ validateWorktreeCompatibility(worktrees: WorktreeInfo[]): Promise; /** * Create a new worktree for isolated agent execution */ createIsolatedWorktree(baseBranch?: string, worktreeName?: string): Promise<{ success: boolean; worktreePath?: string; error?: string; }>; /** * Clean up a worktree after agent execution */ cleanupWorktree(worktreePath: string, force?: boolean): Promise<{ success: boolean; error?: string; }>; /** * Get worktree-specific session data */ getWorktreeSessionData(worktreePath: string): Promise<{ branch: string; commit: string; status: string; recentCommits: string[]; }>; /** * Find the Git repository root */ private findGitRoot; /** * Check if current directory is a valid worktree */ isValidWorktree(dirPath?: string): Promise; }