import { DSLQuery } from '@lingxiteam/dsl'; export declare type PageType = 'Page' | 'Modal' | 'MobileModal' | 'BusiComp' | 'MobilePopover' | 'Drawer' | 'Popover'; export interface PageTemplateProps { /** * 页面路径 */ pagePath: string; /** * 页面名称 */ pageName: string; /** * 平台 */ terminalType: 'APP' | 'PC'; /** * 页面类型 * @default Page */ pageContainerType?: PageType; [key: string]: any; } export interface ComponentDSLType { id: string; label: string; compName?: string; type: string; components?: ComponentDSLType[]; props?: unknown; style?: unknown; setEvents: any[]; compLib: string; isContainer?: boolean; isBusiObjContainer?: boolean; platform: 'h5' | 'pc' | 'web'; groupsName: string; customStyle?: any; path?: string[]; } export interface PageDSLType extends PageTemplateProps { id: string; components: ComponentDSLType[]; events: any[]; actions: any[]; setEvents: any[]; } declare const createPageTemplate: ({ pagePath, pageName, terminalType, pageContainerType, ...otherProps }: PageTemplateProps, platform?: string) => any; /** * 获取开放性校验规则 */ export declare const getOpennessValidatorRules: ({ platform }: { platform: string; }) => import("@lingxiteam/dsl").ValidatorType; /** * 通过Node创建,并校验 * @param props * @param platform * @returns */ export declare const createPageWithValidate: (props: PageTemplateProps, { platform, isValidate }: { platform: string; isValidate?: boolean | undefined; }) => DSLQuery; export default createPageTemplate;