/// import type { DSLQuery } from '@lingxiteam/dsl/lib/core/DSLQuery'; import type { NodeType, onListenFunction } from '@lingxiteam/dsl/lib/core/PropType'; import { ActionDescInstance } from '../constant/actionDescGenerator'; import type { EditorConfigProps, InitialEditorConfigFnReturn } from '../Editor/interface'; import type { EventEmitterType } from '../hooks/useEventEmitter'; import type useFusion from '../hooks/useFusion'; import type { CompCreatorType, ComponentGroup, PageContanerTypeKey, VisibleCustomEventProps } from '../interfaces/types'; import type { FunctionLibFormatProps, FunctionLibProps } from '../hooks/useFunctionLib'; export interface LcdpEditorContextValue extends EditorConfigProps { setPageContainerType: (pageContainerType: PageContanerTypeKey) => void; setIsMoile: (isMobile: boolean) => void; editSize: string[]; setEditSize: (editSize: string[]) => void; DSLCore: DSLQuery | undefined; DSLAddListener: (callback: onListenFunction) => void; DSLRemoveListener: (callback: onListenFunction) => void; DSLCurrentAttribute: NodeType['attribute'] | undefined; DSLCurrentProps: Record | undefined; isDragging: boolean; draggingItem: any; hoverItem: any; updateDraggingState: (e: { isDragging?: boolean; draggingItem?: any; hoverItem?: any; }) => void; compCreators: () => CompCreatorType; isPreviewApp: boolean; setShowPreviewApp: (isPreviewApp: boolean) => void; showSidebar: boolean; setShowSiderBarState: (showSideBar: boolean) => void; timeLineObj: any; fusionModeState: ReturnType; emitter$?: EventEmitterType; expandedAll: boolean; setExpandedAll: () => void; isDSLUpdate: boolean; setIsDSLUpdate: (isUpdate: boolean) => void; isReloadBlockListFlag: number; reloadBlockListFlag: () => void; visibleCustomEvent: VisibleCustomEventProps; setVisibleCustomEvent: (data: VisibleCustomEventProps) => void; pageDetailsMap?: { getSync: (pageInfo: any, isNew?: boolean) => any; getAsync: (pageInfo: any, isNew?: boolean) => Promise; clear: (pageId?: string) => void; }; pageUpdate: any; actionDescInstance: ActionDescInstance; setAllGlobalData: (e: any[]) => void; allGlobalData: any[]; compEventCloseKeys: any; setCompEventCloseKeys: (e: any) => void; createComponentId: (prefix?: string) => string; createEventId: (prefix?: string) => string; compList?: ComponentGroup[]; setCompList: React.Dispatch>; funcLibList: FunctionLibProps[]; funcFlatLibList: FunctionLibProps[]; funcLibs: FunctionLibFormatProps[]; getFuncLibList: () => void; busiData: any; setBusiData: (busiData: any) => void; breadList: { label: string; nodeId: string; }[]; openCreateDataSourcePanel?: (flag: boolean) => void; openCompEventPanel: (comp: any) => void; businessCompDetailMap: { get(id: string): undefined | { customFuctions?: any[]; [key: string]: any; }; getAsync(id: string, isRefresh?: boolean): Promise; }; i18n?: InitialEditorConfigFnReturn['i18n']; /** * 获取配置态控件能力 */ getEdEngineApi: (compName: string, platform: 'pc' | 'mobile') => Record; /** * 显示状态mock数据配置弹窗 */ showStateMockDataModal: boolean; /** * mock数据配置弹窗状态修改 */ setShowStateMockDataModal(state: boolean): void; /** * 应用id */ appId?: string; } /** * 对creatId进行初始化,方式调用闪退 */ declare const EditContext: import("react").Context; export declare const useEditContext: () => LcdpEditorContextValue; export default EditContext;