import { FixedRing, type ScalarEntry } from "../stream-utils.ts";
import type { DetectorMatch } from "../types.ts";
export declare const PARAGRAPH_MIN_CHARS = 64;
export declare const PARAGRAPH_MIN_WORD_CHARS = 24;
export declare const PARAGRAPH_REPEAT_THRESHOLD = 3;
export declare const PARAGRAPH_RING_CAPACITY = 64;
export declare const PARAGRAPH_TEXT_RETENTION_MAX = 512;
interface ParagraphEntry {
    readonly hashA: number;
    readonly hashB: number;
    readonly utf16Length: number;
    readonly startOffset: number;
    readonly text: string | undefined;
}
export interface ParagraphRepeatState {
    readonly ring: FixedRing<ParagraphEntry>;
    lineHashA: number;
    lineHashB: number;
    lineLength: number;
    lineWordChars: number;
    lineHasContent: boolean;
    lineStartOffset: number;
    lineText: string;
    hashA: number;
    hashB: number;
    length: number;
    wordChars: number;
    startOffset: number;
    retained: string;
}
export declare function createParagraphRepeatState(): ParagraphRepeatState;
export declare function updateParagraphRepeats(state: ParagraphRepeatState, entry: ScalarEntry): DetectorMatch | null;
export {};
//# sourceMappingURL=collapse-paragraphs.d.ts.map