import { AbsProps } from "./AbsProps";
import { ITextProps } from "../../idl";
import { PropType } from "./PropType";
import { TextSizeMode } from "../../idl";
import { TextAlignType } from "../../idl";
export declare class TextProps extends AbsProps implements ITextProps {
    type: PropType;
    text: string;
    richText: string;
    fontSize: number;
    fontFamily: string;
    fontColor: string;
    noFill: boolean;
    bgNoFill: boolean;
    fontBgColor: string;
    bold: boolean;
    italic: boolean;
    underline: boolean;
    strikethrough: boolean;
    verticalAlign: TextAlignType;
    horizonAlign: TextAlignType;
    sizeMode: TextSizeMode;
    static create(updateProps: Partial<TextProps>): TextProps;
    static createPureTextDefaults(updateProps?: Partial<TextProps>): TextProps;
    static from(iProps: ITextProps): TextProps;
    update(props: Partial<TextProps>): void;
    clone(): TextProps;
    static dealTextToRichText(text: string): string;
    /**
     * 按给定倍率缩放 richText 中显式写在 <style> 上的局部字号。
     * 默认字号仍由 textProps.fontSize 单独更新；这里不触碰其他样式字段。
     */
    static scaleRichTextFontSize(richText: string, scale: number): string;
}
//# sourceMappingURL=TextProps.d.ts.map