// Generated by alef. Do not edit by hand.
@file:Suppress(
    "ktlint:standard:trailing-comma-on-call-site",
    "ktlint:standard:trailing-comma-on-declaration-site",
    "ktlint:standard:spacing-between-declarations-with-comments",
    "ktlint:standard:spacing-between-declarations-with-annotations",
    "ktlint:standard:when-entry-bracing",
    "ktlint:standard:blank-line-between-when-conditions",
    "ktlint:standard:blank-line-before-declaration",
    "ktlint:standard:chain-method-continuation",
    "ktlint:standard:annotation",
    "ktlint:standard:max-line-length",
    "ktlint:standard:no-semi",
    "ktlint:standard:statement-wrapping",
    "MaxLineLength",
    "TooManyFunctions",
    "FunctionParameterNaming",
    "LongParameterList",
    "CyclomaticComplexMethod",
    "LongMethod",
)

package dev.kreuzberg

/** A single contiguous hunk in a unified diff. */
data class DiffHunk(
    /** Starting line number in the old content (0-indexed). */
    val fromLine: Long,
    /** Number of lines from the old content in this hunk. */
    val fromCount: Long,
    /** Starting line number in the new content (0-indexed). */
    val toLine: Long,
    /** Number of lines from the new content in this hunk. */
    val toCount: Long,
    /** Lines that make up this hunk. */
    @field:com.fasterxml.jackson.databind.annotation.JsonSerialize(contentAs = DiffLine::class)
    val lines: List<DiffLine> = emptyList(),
)
