/** * Fold exact repeated sections while retaining every distinct section. * * This preserves distinct facts but loses repetition order and separators. * Consequently it is lossy: a source path or spill is required, and the result * carries recovery metadata. Near-duplicates remain distinct. */ import type { CompressionResult, EngineContext } from './types.js'; /** Is this text worth folding at all? */ export declare function looksRepetitive(text: string): boolean; /** * Folds byte-identical repeats, keeping the first occurrence of each. * * The note names the count rather than pointing anywhere, because every folded * segment is an exact copy of one still in the text above it. That is what * makes this recoverable without a spill file and without a round trip. */ export declare function foldRepeatedSegments(text: string, ctx?: EngineContext): CompressionResult; //# sourceMappingURL=segments.d.ts.map