import { ChangelogFunctions } from '@changesets/types'; import { GitCommit } from 'changelogen'; /** * 将 changelogen 的 GitCommit 转换为变更日志行 * @internal 仅导出用于单元测试,不作为公共 API 使用 */ declare function formatCommitToChangelogLine(commit: GitCommit, repoUrl?: string): string; /** * 从 git commit 历史生成完整的变更日志内容 * 这个功能可以独立于 changesets 使用 */ declare function generateChangelogFromGitHistory(from?: string, to?: string, options?: { repo?: string; includeAuthors?: boolean; groupByType?: boolean; }): Promise; /** * 混合模式:结合 changesets 和 git commit 历史生成变更日志 * 当 changesets 不足时,自动补充 git commit 信息 */ declare function generateHybridChangelog(changesets: any[], options?: { repo?: string; from?: string; to?: string; fallbackToGit?: boolean; }): Promise; /** * 导出 changesets changelog 函数 */ declare const changelogFunctions: ChangelogFunctions; export { changelogFunctions, changelogFunctions as default, formatCommitToChangelogLine, generateChangelogFromGitHistory, generateHybridChangelog };