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;
    };
    widgetFileItem?: {
        index: number;
        value: string;
    };
    widgetFieldLeftMarker?: boolean;
    widgetFieldRightMarker?: boolean;
    /** 页面组件元数据 */
    pageWidgetMeta?: WidgetMeta;
    dataIndex?: number;
}
export interface TextWidgetOptions extends TextRunOptions {
    /** 组件元数据 */
    widgetMeta?: WidgetMeta;
    /** 值路径 */
    valuePath?: string;
    /** 是否为空占位符 */
    isEmptyPlaceholder?: boolean;
    isIconPlaceholder?: boolean;
    isSpacePlaceholder?: boolean;
    widgetOption?: ITextWidget['widgetOption'];
    widgetFileItem?: ITextWidget['widgetFileItem'];
    widgetFieldLeftMarker?: boolean;
    widgetFieldRightMarker?: boolean;
    pageWidgetMeta: ITextWidget['pageWidgetMeta'];
    dataIndex?: number;
}
export declare class TextWidget extends TextRun implements ITextWidget {
    widgetMeta?: WidgetMeta;
    valuePath?: string;
    isEmptyPlaceholder: boolean;
    isIconPlaceholder: boolean;
    isSpacePlaceholder: boolean;
    widgetFieldLeftMarker?: boolean;
    widgetFieldRightMarker?: boolean;
    widgetOption?: ITextWidget['widgetOption'];
    widgetFileItem?: ITextWidget['widgetFileItem'];
    pageWidgetMeta: ITextWidget['pageWidgetMeta'];
    dataIndex?: number;
    constructor(options: TextWidgetOptions);
}
