/**
 * Chunk interfaces for OCR Provenance MCP System
 *
 * Represents text chunks extracted from OCR output.
 * Provenance depth: 2
 */
/**
 * Default chunking configuration per PRD
 */
export const DEFAULT_CHUNKING_CONFIG = {
    chunkSize: 2000,
    overlapPercent: 10,
    maxChunkSize: 8000,
};
/**
 * Calculate overlap in characters
 */
export function getOverlapCharacters(config) {
    return Math.floor(config.chunkSize * config.overlapPercent / 100);
}
/**
 * Calculate step size for chunking
 */
export function getStepSize(config) {
    return config.chunkSize - getOverlapCharacters(config);
}
//# sourceMappingURL=chunk.js.map