export interface IGitInfo { branch: string; repository: string; commitId: string; userInfo: string; } export default class GitInfo { gitPath: string; constructor(args: { gitPath: string; }); get gitInfo(): IGitInfo; getCommitId(): string; getBranch(): string; getRepository(): string; private getUserInfo; private _getLogFileContent; private _getConfigFileContent; private _getHeadFileContent; private _readFile; private _error; }