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

/**
 * Unified page structure for documents.
 *
 * Supports different page types (PDF pages, PPTX slides, Excel sheets)
 * with character offset boundaries for chunk-to-page mapping.
 */
data class PageStructure(
    /** Total number of pages/slides/sheets */
    val totalCount: Int,
    /** Type of paginated unit */
    val unitType: PageUnitType,
    /**
     * Character offset boundaries for each page
     *
     * Maps character ranges in the extracted content to page numbers.
     * Used for chunk page range calculation.
     */
    val boundaries: List<PageBoundary>? = null,
    /** Detailed per-page metadata (optional, only when needed) */
    val pages: List<PageInfo>? = null,
)
