import { type PathResolver } from "@gaubee/nodekit"; export type DiffFileMode = "add" | "delete" | "modify" | "rename" | "rename+modify"; export interface DiffFile { from: string; filePath: string; code: string; fullSourcePath: string; fullTargetPath: string; mode: DiffFileMode; safe: boolean; } export type DiffFiles = Array; export interface GitCommitMessage { title: string; detail: string; all: string; } export interface AiResponse { fromFilepath: string; gitCommitMessage: GitCommitMessage | null; diffFiles: DiffFiles; } /** * 解析包含多个文件代码块的 Markdown 文本。 * @param from - The markdown file path. * @param markdownContent - The full markdown content read from the file. * @param rootResolver - A path resolver to resolve file paths relative to the project root. * @returns An object containing the git commit message and a list of file diffs. */ export declare function parseMarkdown(from: string, markdownContent: string, rootResolver: PathResolver): AiResponse; //# sourceMappingURL=parser.d.ts.map