/** * Checks if the current working directory is inside a Git repository. */ export declare function isGitRepo(): boolean; /** * Checks if the current working directory has uncommitted changes. * Returns true if 'git status --porcelain' is non-empty. */ export declare function hasUncommittedChanges(): boolean; /** * Returns the name of the current active Git branch. */ export declare function getCurrentBranch(): string; /** * Creates and checks out a new Git branch. * Validates branch name before execution. Throws on failure. */ export declare function createAndCheckoutBranch(name: string): void; /** * Commits changes in the working tree. * * When paths are provided, only those paths are staged. This avoids capturing * unrelated user work during Kelyra sandbox auto-commits. If no paths are * provided, falls back to committing the current tree. */ export declare function commitChanges(message: string, paths?: string[]): void; /** * Returns the current HEAD commit hash. */ export declare function getLatestHash(): string; //# sourceMappingURL=git.d.ts.map