// 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

/**
 * Plain text and Markdown extraction result.
 *
 * Contains the extracted text along with statistics and,
 * for Markdown files, structural elements like headers and links.
 */
data class TextExtractionResult(
    /** Extracted text content */
    val content: String,
    /** Number of lines */
    val lineCount: Long,
    /** Number of words */
    val wordCount: Long,
    /** Number of characters */
    val characterCount: Long,
    /** Markdown headers (text only, Markdown files only) */
    val headers: List<String>? = null,
    /** Markdown links as (text, URL) tuples (Markdown files only) */
    val links: List<List<String>>? = null,
    /** Code blocks as (language, code) tuples (Markdown files only) */
    val codeBlocks: List<List<String>>? = null,
)
