///
import type { LcdpPlatformKey } from '../interfaces/types';
import type { LcdpEditorContextValue } from './EditContext';
import { DSLNode, RootNode } from '@lingxiteam/dsl/lib/core/PropType';
export declare const LoadReact: import("react").ForwardRefExoticComponent & import("react").RefAttributes>;
declare const deepCopy: (data: any) => any;
declare const isPromise: (val: Promise) => boolean;
declare const getComponentType: (isMobile: boolean, platformType: LcdpPlatformKey) => "h5" | "pc";
declare const checkDomain: () => boolean;
interface GetComponentParamter {
isMobile: boolean;
platformType: LcdpPlatformKey;
fusionModeState: LcdpEditorContextValue['fusionModeState'];
compName: string;
alias?: string;
}
declare const getComponent: ({ isMobile, platformType, fusionModeState, compName, alias, }: GetComponentParamter) => {
Component: import("react").ForwardRefExoticComponent & import("react").RefAttributes>;
props: {
type: string;
platform: any;
terminal: import("@wufengteam/core").AssetTerminalType;
};
};
declare const getPlatform: ({ isMobile, fusionModeState, }: {
isMobile: boolean;
fusionModeState: LcdpEditorContextValue['fusionModeState'];
}) => "h5" | "pc";
declare const getBOFramerComponent: (c: any) => {
Component: import("react").ForwardRefExoticComponent & import("react").RefAttributes>;
props: {
type: any;
terminal: import("@wufengteam/core").AssetTerminalType;
};
};
declare const setRgbTo16: (str: string) => string;
/**
* 零宽断言(safari不支持)正则替换,n为正则分组的第几个$n,reg均为带g正则
* */
declare const zeroWidthRegPolyfill: (str: string, reg: RegExp, n?: number) => any[] | null;
/**
* 通过value获取事件对象
* @param value
*/
declare const getEventByValue: (value: string, isMobile: boolean, compName?: string) => import("@lingxiteam/types").TodoEventObject | null | undefined;
declare const parseExpressionLabel: (title: string | undefined, comp?: DSLNode | RootNode, context?: {
getI18nValue: (v?: string) => string;
} | undefined) => string | undefined;
declare const getRandomNum: (min?: number, max?: number) => string;
declare const getFileName: (fileContentStr: any) => string;
/**
* @description: 根据文本计算大概宽度
*/
declare const getTextWidth: (text: string, fontSize?: number) => number;
/**
* 判断当前组件是否能够设置ref
* @param {*} Comp 需要判断的组件
*/
declare function canAcceptsRef(Comp: any): any;
export { deepCopy, isPromise, getComponentType, checkDomain, getComponent, getPlatform, getBOFramerComponent, setRgbTo16, zeroWidthRegPolyfill, getEventByValue, parseExpressionLabel, getRandomNum, getFileName, getTextWidth, canAcceptsRef, };