/**
 * Text Wrap - grapheme-segmentation
 *
 * 本模块只负责把字符串切成“字符簇（grapheme clusters）”数组。
 * 后续 TC 换行断点只能发生在 clusters 边界。
 */

export type GraphemeSegmentationMode = 'PREFERRED' | 'FALLBACK';

export type GraphemeSegmentationStrategy = 'INTL_SEGMENTER' | 'FALLBACK';

export type GraphemeSegmentationMeta = {
  strategy: GraphemeSegmentationStrategy;
  hadFallback: boolean;
};

export type GraphemeSegmentationResult = {
  clusters: string[];
  meta: GraphemeSegmentationMeta;
};

