import { BuiltinComponentType } from '../../constants';
import { TextWidget } from '../../view/runs/TextWidget';
import { Page } from '../../view/Page';
import { BaseMetaNode, LineInfo } from '../types';
export declare function buildLayoutMeta(pages: Page[]): {
    dataCenter: Map<string, BaseMetaNode>;
    lineCenter: Map<string, LineInfo>;
    widgetIds: string[];
    widgetMetaMap: Map<string, any>;
};
/** 是否是原子组件 */
export declare function isAtom(component: BuiltinComponentType): boolean;
/** 判断是否为占位符文本原子节点 */
export declare function isPlaceholderNode(node: BaseMetaNode): boolean;
/**
 * 判断是否点击是字段组件节点
 * @param node - 节点
 * @param checkMarker - 是否需要校验 widgetFieldLeftMarker / RightMarker，默认 true
 */
export declare function isClickSelectAllNode(node: BaseMetaNode, checkMarker?: boolean): boolean;
/**
 * 校验组件是否符合选中规则
 * @param raw - 文本组件原始数据
 * @param checkMarker - 是否校验左右标记位
 * @returns 符合规则返回 true，否则返回 false
 */
export declare function validateTextWidgetMarker(raw: TextWidget, checkMarker: boolean): boolean;
/**
 * 判断是否点击是页面组件节点
 * @param node - 节点
 */
export declare function isClickPaperWidgetAllNode(node: BaseMetaNode): boolean;
