import { TextStyle } from 'react-native';
/**
 *
 * RnText 类型判断
 * @param type "header" | "title" | 'label' | 'subLabel'
 * @returns
 */
export declare function rnTextType(type?: 'header' | 'title' | 'label' | 'subLabel'): TextStyle;
/**
 * 处理高亮文本
 * @targetString 整体文本
 * @highlightText 高亮的文本
 * textParts:[]
 * */
export declare const getTextPartsByHighlight: (targetString?: string, highlightText?: string) => string[];
/**
 * 截取文本 + '...'
 * @param text 文本
 * @param length 截取的长度
 * @returns
 */
export declare function sliceText(text: string | undefined, length: number): string;
