/**
* 页面配置解析器
*/
///
export interface ComponentConfig {
/** 组件 ID */
id?: string;
/** 组件类型 */
type: string;
/** 组件属性 */
props?: Record;
/** 子组件 */
children?: ComponentConfig[];
/** 样式 */
style?: React.CSSProperties;
}
export interface PageConfig {
/** 页面 ID */
id?: string;
/** 页面标题 */
title?: string;
/** 页面样式 */
style?: React.CSSProperties;
/** 组件列表 */
components: ComponentConfig[];
/** 数据集配置 */
dataSets?: Record;
/** 动作配置 */
actions?: Record;
}
/**
* 解析页面配置 JSON
*/
export declare const parsePageConfig: (configJson: string) => PageConfig;
/**
* 标准化页面配置
*/
export declare const normalizePageConfig: (config: any) => PageConfig;
export default parsePageConfig;