export type DiffChunk = {
    type: "equal" | "add" | "del";
    value: string;
};
/** 字符级差异 */
export declare function diffChars(a: string, b: string): DiffChunk[];
/** 行级差异 */
export declare function diffLines(a: string, b: string): DiffChunk[];
export type HunkStatus = "pending" | "accepted" | "rejected";
export type DiffHunk = {
    id: string;
    status: HunkStatus;
    original: string;
    result: string;
    from: number;
    to: number;
};
/**
 * 从行级差异构建可逐块确认的差异块；调用时文档已替换为结果文本。
 * 一块连续变更（中间无未改行）合并为一个 hunk，整块只需一次接受/拒绝。
 */
export declare function buildHunks(original: string, result: string, baseFrom: number): DiffHunk[];
/** 差异块列表中是否仍有待确认项 */
export declare function hasPendingHunks(hunks: DiffHunk[]): boolean;
//# sourceMappingURL=diff.d.ts.map