/**
 * Execution Context Utilities
 *
 * Shared helpers for building ExecutionContext and detecting repository worktrees.
 */
/**
 * Detect git repository worktrees within an agent directory.
 *
 * Scans the agent directory for subdirectories that contain a .git file or folder,
 * indicating they are git repositories (either worktrees or clones).
 *
 * @param agentDir - The agent's working directory
 * @returns Array of repository directory names found within the agent directory
 */
export declare function detectRepoWorktrees(agentDir: string): string[];
/**
 * Determine the worktree path for an agent based on detected repositories.
 *
 * @param agentDir - The agent's working directory
 * @param repoWorktrees - Array of repository names (from detectRepoWorktrees)
 * @param fallbackPath - Path to use if no worktrees found (defaults to process.cwd())
 * @returns The resolved worktree path
 */
export declare function resolveWorktreePath(agentDir: string, repoWorktrees: string[], fallbackPath?: string): string;
