import type { StructuredPatchHunk } from "diff";
import type { DiffHunk } from "./types.js";
/**
 * Maps the `diff` library's structured-patch hunks into our presentation
 * {@link DiffHunk} shape, assigning running old/new line numbers per line.
 *
 * This is the single source of truth for the hunk mapping, shared by
 * {@link computeDiff} (which feeds it `structuredPatch` output computed from
 * before/after text) and `parseUnifiedDiff` (which feeds it `parsePatch` output
 * parsed from a unified-diff string). Both functions in the `diff` library emit
 * the identical {@link StructuredPatchHunk} shape, so one mapper serves both and
 * the two diff sources can never drift in how a `+`/`-`/context line becomes a
 * {@link DiffLine}.
 *
 * `\ No newline at end of file` markers are skipped: they are diff metadata, not
 * content, and would otherwise be mis-rendered as a spurious context line.
 *
 * Pure function — no side effects, safe to call outside React.
 */
export declare function mapPatchHunks(hunks: readonly StructuredPatchHunk[]): readonly DiffHunk[];
//# sourceMappingURL=diff-hunks.d.ts.map