export declare const hasSegmenter: boolean; export declare function isCompoundEmojiGrapheme(grapheme: string): boolean; export declare function toRenderableGraphemes(text: string): string[]; export declare function stripCompoundEmoji(text: string): string; export declare function countVisibleCharacters(text: string): number; export interface TextMeasurer { measureText: (text: string) => { width: number; }; } interface WrapTextOptions { measurer: TextMeasurer; message: string; areaWidth: number; } /** * Wraps a message into display lines, mirroring the backend's wrapTextIntoLines so the * live preview wraps at the same positions as the printed PDF. Compound emoji are * stripped first. Returns the wrapped lines; the caller clamps to maxLines and renders. * * On engines without Intl.Segmenter this falls back to the legacy space-split wrap * (wrapBySpace). Accepted gap: such browsers may wrap differently from the PDF. */ export declare function wrapText({ measurer, message, areaWidth }: WrapTextOptions): string[]; export {};