import { DSLQuery } from '@lingxiteam/dsl'; import { DSLNode, RootNode } from '@lingxiteam/dsl/lib/core/PropType'; import useFusion from '../../hooks/useFusion'; import LocalDragUtils from '../../utils/localDragUtils'; export interface PageZoneContextType { c?: DSLNode | RootNode; DSLCore?: DSLQuery; isMobile: boolean; compName: string; showdata: boolean; selectCurrentComp: (compId: string) => void; ContainerDropBox: any; LabelDropBox: any; fusionModeState: ReturnType; fixedMode?: boolean; renderComponents: (compIds: string[], fixedMode?: boolean) => void; localDragInst?: LocalDragUtils; hasPageDragBox?: boolean; i18nUtils?: { /** * 是否开启国际化 */ enabled: boolean; /** * 获取国际化的中文值 * @param value * @returns */ getI18nValue: (value?: string) => any; }; } export declare type PageZoneJSONType = Record; export declare type PageZoneProcessFunctionType = (options: PageZoneJSONType, context: PageZoneContextType) => PageZoneJSONType; /** * 画布渲染前的预处理控件属性的方法, 本方法仅在编辑器端使用。 * @param options 控件属性 * @param context 上下文 */ declare const pageZoneParseBefore: (options: any, context: PageZoneContextType) => any; export default pageZoneParseBefore;