import { DSLQuery } from '@lingxiteam/dsl'; import { EditorPluginClass } from './plugin/EditorPlugin'; export interface ConfigItem { attrType: string; attrCode: string; attrName: string; helpUrlTitle: string; helpUrl: string; applyScene: string; warnNote: string; configNote: string; otherNote: string; attrDesc: string; updatedTime: any; isFetch?: boolean; } interface funcParams { DSLCore?: DSLQuery; compId?: string; editorPluginInst: EditorPluginClass; [key: string]: any; } export declare type DescType = 'action' | 'props' | 'event' | 'action_props'; declare class EditorDescUtils { totalData: { pc: Record; h5: Record; }; static instance: EditorDescUtils | undefined; constructor(); static getInstance(): EditorDescUtils; private addData; private formatJSONData; private initData; /** * 根据keys请求查询配置并返回配置项 * @param isMobile * @param attrTypes * @param compName 组件名称 * @param keys * @returns */ fetchAndGetDesc(isMobile: boolean, attrTypes: string[], compName: string, keys: string[], editorPluginInst: EditorPluginClass): Promise<{}>; } /** * 描述支持函数字符串 * @param desStr 描述字符串 * @param funcParams 函数入参 * @returns */ export declare const desStrIsFunc: (desStr: any, funcParams: funcParams) => string; /** * 组件属性/动作属性提示拼接配置提示(支持函数表达式) * tip: 在线配置向导提示(对象) * defaultTip: 默认提示 * funcParams: 函数表达式入参 * @returns */ export declare const getDescInfo: ({ tip, defaultTip, funcParams }: { tip: any; defaultTip?: string | undefined; funcParams: funcParams; }) => string | null; declare const edInst: EditorDescUtils; export { edInst as EditorDescUtils }; export default EditorDescUtils;