import { DSLQuery } from '@lingxiteam/dsl'; import type { DSLNode } from '@lingxiteam/dsl/lib/core/PropType'; import type React from 'react'; import { ReactNode } from 'react'; import type { CompCreatorType, CompCreatorReturnType } from '@lingxiteam/editor-types'; export declare const LcdpPlatform: { readonly LowCode: "LowCode"; readonly ZeroCode: "ZeroCode"; readonly Design: "Design"; }; /** * 编辑组件类型 */ export declare const EditCompType: { readonly page: "page"; readonly busiComp: "busiComp"; }; export declare const PageContanerType: { readonly Page: "Page"; readonly Modal: "Modal"; readonly Drawer: "Drawer"; }; export declare type LcdpPlatformKey = keyof typeof LcdpPlatform; export declare type EditCompTypeKey = keyof typeof EditCompType; export declare type PageContanerTypeKey = keyof typeof PageContanerType; export interface pageZoomTabs { name: string; key: string; icon: string; } export interface pageZoomCompOperator { title: string; hoverTitle?: string; showRules: (DSLCore: DSLQuery | undefined) => boolean; operImage: ReactNode; onClick: (node: DSLNode | null | undefined) => void; } /** * 组件列表组项 */ export interface ComponentGroup { sort: number; /** * 分组id */ id: string | number; /** * 分组标题 */ title: string; /** * 自定义header时生效 */ icon?: (ishover: boolean) => React.ReactNode; /** * 组件项 */ children: { /** * 组件名称 */ label: string; /** * 组件类型 */ compName: string; /** * 组件依赖项 组合组件时使用 例如:compName: Card 则 compTypes: ['CardHeader', 'CardFooter', 'CardBody'], */ compTypes?: string[]; /** * 图片地址 */ imageUrl?: string; sort: number; }[]; } /** * 放置节点操作类型 */ export declare const BeforeDropOperatorType: { readonly add: "add"; readonly replace: "replace"; }; export declare type VisibleCustomEventProps = { visible: boolean; innerPageEvent: boolean; newCustomEventVisible: boolean; customEventCodes?: any[]; newCustomEventInfo?: { data?: any | any[]; type: 'add' | 'new'; eventCode?: string; } | null; }; export interface CompBoxProps { compList?: ComponentGroup[]; clickInject?: boolean; } /** * 控件选中操作 */ export declare type CompOperatorType = 'block' | 'copy' | 'delete' | 'event'; export type { CompCreatorType, CompCreatorReturnType, };