export interface GitInfo { /** 当前分支名 */ branch: string; /** 提交链接 */ commit: string; /** 提交信息 */ message: string; /** 提交用户名 */ author: string; /** 提交用户邮箱 */ email: string; /** 提交日期 */ date: string; /** Git 远程地址 */ url: string; /** Git 仓库类型,可能的值包括 'github'、'gitlab' */ type: 'github' | 'gitlab'; /** Git 仓库域名,例如 https://github.com */ domain: string; } /** * 获取 Git 信息 * @param cache 是否使用缓存,默认 true * @returns Git 信息 */ export declare const getGitInfo: (cache?: boolean) => GitInfo | null;