import { WidgetMeta } from '../../widget/widget-meta';
import { TextRun, ITextRun, TextRunOptions } from './TextRun';
/**
 * 文本组件接口
 */
export interface ITextWidget extends ITextRun {
    /** 组件元数据 */
    widgetMeta: WidgetMeta;
    /** 值路径 */
    valuePath: string;
    /** 是否为空占位符 */
    isEmptyPlaceholder: boolean;
    isIconPlaceholder: boolean;
    isSpacePlaceholder: boolean;
    widgetOption?: {
        id: string;
        value: any;
    };
}
export interface TextWidgetOptions extends TextRunOptions {
    /** 组件元数据 */
    widgetMeta: WidgetMeta;
    /** 值路径 */
    valuePath: string;
    /** 是否为空占位符 */
    isEmptyPlaceholder?: boolean;
    isIconPlaceholder?: boolean;
    isSpacePlaceholder?: boolean;
    widgetOption?: {
        id: string;
        value: any;
    };
}
export declare class TextWidget extends TextRun implements ITextWidget {
    widgetMeta: WidgetMeta;
    valuePath: string;
    isEmptyPlaceholder: boolean;
    isIconPlaceholder: boolean;
    isSpacePlaceholder: boolean;
    widgetOption?: {
        id: string;
        value: any;
    };
    constructor(options: TextWidgetOptions);
}
