/** * A UAX#14-lite tokenizer: enough of the Unicode line-breaking algorithm to * place break opportunities at spaces, hyphens, and between CJK characters, * without implementing the full class table. * * The `isEastAsianChar` codepoint ranges are ported, with this provenance * note, from the sibling PowerPoint viewer's East Asian line-breaking helper * at `../pptx-viewer-new/packages/angular/src/internal/shared-src/render/text-east-asian-breaks.ts` * (`isEastAsianChar`). That module's hanging-punctuation/kinsoku machinery is * PowerPoint-specific (`a:pPr/@hangingPunct`, `@eaLnBrk`) and is not ported; * only the character classification is reused here. */ export declare function isEastAsianChar(ch: string): boolean; export type BreakToken = { kind: 'word'; text: string; runIndex: number; sourceStart: number; } | { kind: 'space'; text: string; runIndex: number; sourceStart: number; } | { kind: 'tab'; runIndex: number; sourceStart: number; } /** An inline picture: an unbreakable box of the run's object size. */ | { kind: 'object'; runIndex: number; sourceStart: number; } /** A manual line break (`w:br`/`w:cr`); ends the current line without ending the paragraph. */ | { kind: 'lineBreak'; runIndex: number; sourceStart: number; } /** An explicit page or column break carried on a run (see {@link LayoutRun.breakAfter}). */ | { kind: 'pageBreak' | 'columnBreak'; runIndex: number; sourceStart: number; }; /** * Splits one run's text into break-opportunity tokens. `sourceStart` is the * character offset of each token within the run's own text, so callers can * map a line's fragments back to a paragraph/run character range (used for * click-to-place-cursor mapping in the Print Layout view). */ export declare function tokenizeRun(text: string, runIndex: number): BreakToken[]; /** Appends a forced page or column break marker after a run's tokens. */ export declare function appendBreakMarker(tokens: BreakToken[], runIndex: number, sourceStart: number, kind: 'page' | 'column'): void; //# sourceMappingURL=text-breaks.d.ts.map