import { IO } from './IO'; declare class Git { io: IO; constructor(io: IO); /** * Obtain the current git branch. */ getBranch(): Promise; /** * Obtain the very first commit for the repo. */ getFirstCommit(): Promise; /** * Switch the git branch. */ switchBranch(branch: string, isNew?: boolean): Promise; /** * Remove all the changes in the current branch. */ discardBranchChanges(): Promise; /** * Delete a git branch. */ deleteBranch(branch: string): Promise; /** * Provides a safe way of first discarding all the current changes in the branch we wish to * delete. We first discard all the changes, then we move to the branch we want to be on and * finally we delete the branch that we no longer want. */ switchAndDelete(toBranch: string, fromBranch: string): Promise; } export { Git, };