/** * Stage 3: plain text block segmentation. * * Blocks tile the canonical text completely and without overlap. Every character belongs to exactly * one block, including blank lines and trailing whitespace, so that concatenating block texts * reproduces the input exactly. That is maintained by construction here, and asserted as a property * test, because it is what guarantees content cannot vanish between stages. * * Boundaries are placed at: * - a change of quote depth * - a blank line, which separates paragraphs * - a reply attribution line, which becomes its own block * - a forward marker, which becomes its own block * - a signature delimiter, which becomes its own block * - a rule separator * - the start of an embedded header block */ import { type CanonicalText } from '../canonical/text'; import { type Block } from './types'; /** * Segment a plain text part into blocks. * * @param raw decoded text of the part * @param mimePart part id for traceability */ export declare function segmentTextBlocks(raw: string, mimePart: string): { canonical: CanonicalText; blocks: Block[]; }; //# sourceMappingURL=text-blocks.d.ts.map