/** * Compute an inline HTML diff between two strings. * * For content with block-level HTML elements (p, h1-h6, etc.), aligns blocks * by tag name and diffs within each block individually, preventing diff markers * from crossing element boundaries. * * For plain text or inline-only HTML, uses flat word-level diffing with * post-processing to merge long runs of consecutive modifications. */ export declare function computeDiff(before: string, after: string): string; /** * Render the new value entirely as an insertion, with no deletions. * * Used when diffing against the original is pointless — e.g. translations, * where virtually the whole text changes and an interleaved del/ins diff is * just noise. The result reuses the same markup as computeDiff, so the * approval preview styling is identical. * * Block-level HTML is preserved by wrapping each block's inner content in * rather than wrapping the block tags themselves. */ export declare function computeInsertion(after: string): string; /** * One chunk of a field's diff that can be individually accepted or rejected * by the user. A markup field becomes an ordered list of segments; lists * (