/**
 * Heading-Only Chunk Merger for Section-Aware Chunking
 *
 * Post-processing pass that merges tiny heading-only chunks with their
 * nearest neighbor to improve embedding quality. Heading-only chunks
 * (e.g., "## ARTICLE 5") produce poor embeddings because they lack
 * semantic content.
 *
 * @module services/chunking/chunk-merger
 */
import { ChunkResult } from '../../models/chunk.js';
/**
 * Merge heading-only chunks that are below the minimum size threshold.
 *
 * Strategy:
 * - If a next chunk exists, merge heading into next (prepend)
 * - If no next chunk (last in array), merge into previous (append)
 * - Consecutive heading-only chunks cascade-merge via while loop
 * - Re-indexes all chunks after merging
 *
 * @param chunks - Array of ChunkResult (not mutated; returns new array)
 * @param minChunkSize - Minimum character threshold (default: 100)
 * @returns New array with heading-only chunks merged
 */
export declare function mergeHeadingOnlyChunks(chunks: ChunkResult[], minChunkSize?: number): ChunkResult[];
//# sourceMappingURL=chunk-merger.d.ts.map