/**
 * Git 操作工具
 */
export declare class Git {
    private verbose;
    constructor(verbose?: boolean);
    /**
     * 执行 Git 命令
     */
    private exec;
    /**
     * 测试仓库连接
     */
    testConnection(repo: string): boolean;
    /**
     * 克隆仓库
     */
    clone(repo: string, dest: string): void;
    /**
     * 获取所有分支
     */
    getBranches(cwd: string): string[];
    /**
     * 切换分支
     */
    checkout(branch: string, cwd: string): void;
    /**
     * 创建备份 (stash)
     * 只备份已跟踪的文件，不影响未跟踪的配置文件
     */
    backup(message?: string): boolean;
    /**
     * 删除 .git 目录
     */
    removeGitDir(dir: string): void;
}
