import { LibMetaType, AssetPackage, CSSType } from './base'; import { FunctionPropType } from './node'; import { CRootNodeDataType } from './rootNode'; import { CNode } from '../Page/RootNode/Node'; import { CPage } from '../Page'; import { CRootNode } from '../Page/RootNode'; export type ComponentMetaType = { componentName: string; } & LibMetaType; export declare enum RenderType { PAGE = "PAGE", COMPONENT = "COMPONENT" } export type LifecycleItem = { nodeId: string; run: (params: { ctx: any; }) => void; }; export type CPageDataType = { version: string; name: string; css?: CSSType[]; lifecycle?: { beforeMount?: LifecycleItem[]; didMount?: LifecycleItem[]; beforeUnmount?: LifecycleItem[]; }; /** 页面级 别 或者组件级别的外部传入的 props, 用于数据交互,比如通过平台导出源码,直接集成到 pro code 项目中使用 */ props?: Record; methods?: FunctionPropType[]; componentsMeta: ComponentMetaType[]; thirdLibs?: LibMetaType[]; componentsTree: CRootNodeDataType; assets?: AssetPackage[]; extra?: T; }; export declare const CPageDataTypeDescribe: import('superstruct').Struct<{ componentsTree: { [x: string]: any; }; componentsMeta: { package: string; version: string; name: string; componentName: string; exportName?: string | undefined; destructuring?: boolean | undefined; subName?: string | undefined; main?: string | undefined; cssPaths?: string[] | undefined; }[]; version?: string | undefined; name?: string | undefined; css?: string | undefined; lifecycle?: any; props?: any; methods?: { type: import("..").CNodePropsTypeEnum.FUNCTION; value: string; }[] | undefined; thirdLibs?: { package: string; version: string; name: string; exportName?: string | undefined; destructuring?: boolean | undefined; subName?: string | undefined; main?: string | undefined; cssPaths?: string[] | undefined; }[] | undefined; assets?: any[] | undefined; extra?: any; }, { version: import('superstruct').Struct; name: import('superstruct').Struct; css: import('superstruct').Struct; lifecycle: import('superstruct').Struct; props: import('superstruct').Struct; methods: import('superstruct').Struct<{ type: import("..").CNodePropsTypeEnum.FUNCTION; value: string; }[] | undefined, import('superstruct').Struct<{ type: import("..").CNodePropsTypeEnum.FUNCTION; value: string; }, { type: import('superstruct').Struct; value: import('superstruct').Struct; }>>; componentsMeta: import('superstruct').Struct<{ package: string; version: string; name: string; componentName: string; exportName?: string | undefined; destructuring?: boolean | undefined; subName?: string | undefined; main?: string | undefined; cssPaths?: string[] | undefined; }[], import('superstruct').Struct<{ package: string; version: string; name: string; componentName: string; exportName?: string | undefined; destructuring?: boolean | undefined; subName?: string | undefined; main?: string | undefined; cssPaths?: string[] | undefined; }, { package: import('superstruct').Struct; version: import('superstruct').Struct; name: import('superstruct').Struct; exportName: import('superstruct').Struct; destructuring: import('superstruct').Struct; subName: import('superstruct').Struct; main: import('superstruct').Struct; cssPaths: import('superstruct').Struct>; componentName: import('superstruct').Struct; }>>; thirdLibs: import('superstruct').Struct<{ package: string; version: string; name: string; exportName?: string | undefined; destructuring?: boolean | undefined; subName?: string | undefined; main?: string | undefined; cssPaths?: string[] | undefined; }[] | undefined, import('superstruct').Struct<{ package: string; version: string; name: string; exportName?: string | undefined; destructuring?: boolean | undefined; subName?: string | undefined; main?: string | undefined; cssPaths?: string[] | undefined; }, { package: import('superstruct').Struct; version: import('superstruct').Struct; name: import('superstruct').Struct; exportName: import('superstruct').Struct; destructuring: import('superstruct').Struct; subName: import('superstruct').Struct; main: import('superstruct').Struct; cssPaths: import('superstruct').Struct>; }>>; componentsTree: import('superstruct').Struct<{ [x: string]: any; }, { [x: string]: import('superstruct').Struct; componentName: import('superstruct').Struct; }>; assets: import('superstruct').Struct>; extra: import('superstruct').Struct; }>; export type CPageNode = CNode | CPage | CRootNode;