import type { Config, GitRevision } from '../types.js';
import { walkCommits } from './gitUtils.js';
type GitError = {
    errorType: 'GIT_ERROR';
    message: string;
};
type GitUtils = {
    isGitReady: boolean;
    currentBranch: string | null;
    isHistoryDirty: boolean | null;
    checkoutTo: (branch: string) => Promise<void> | null;
    walkCommits: typeof walkCommits;
    revList: GitRevision[] | null;
    gitErrors: GitError[] | null;
    execWalkCommand: (command: string) => Promise<string> | null;
};
declare const useGitUtils: (config: Config) => GitUtils;
export default useGitUtils;
