/** * Strip immediately-repeated paragraph blocks from a single reply text. * * The model occasionally emits the same paragraph two or three times in a row * (most often when memory injection echoes a recent reply back into the * prompt, or when a stream gets re-flushed after a tool call). This is a * conservative safety net: it only collapses *adjacent* duplicate blocks of * non-trivial length and leaves intentional repetition (e.g. lyrics, lists, * single short sentences) alone. * * Also detects full-text repetition: when the entire reply is N copies of the * same substring concatenated together (common when the model re-emits the * same block multiple times in a stream). */ export declare function dedupeRepeatedParagraphs(text: string): string;