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

/**
 * Text/Markdown metadata.
 *
 * Extracted from plain text and Markdown files. Includes word counts and,
 * for Markdown, structural elements like headers and links.
 */
data class TextMetadata(
    /** Number of lines in the document */
    val lineCount: Int = 0,
    /** Number of words */
    val wordCount: Int = 0,
    /** Number of characters */
    val characterCount: Int = 0,
    /** Markdown headers (headings text only, for Markdown files) */
    val headers: List<String>? = null,
    /** Markdown links as (text, url) tuples (for Markdown files) */
    val links: List<List<String>>? = null,
    /** Code blocks as (language, code) tuples (for Markdown files) */
    val codeBlocks: List<List<String>>? = null,
)
