import React from 'react'; import { ParseNodeItemHooksType, DSLQuery } from '@lingxiteam/dsl'; import { InitialEditorConfigFnReturn } from '../interface'; declare const useDSLHooks: (context: { config: InitialEditorConfigFnReturn; dslParseNodeBefore: any; editorViewRef: React.MutableRefObject; pageData: Record; editorDidLoad?: ((DSLCore: DSLQuery) => void) | undefined; /** * 组件添加前的预处理方法 * @param compName 组件名称 * @param isMobile 是否移动端 * @param opts 当前组件生成的时候存在dsl的节点信息,如果需要处理,直接修改opts里面的值 * @returns void */ parseAddComProcess?: ((compName: string, opts: Record, DSLCore: DSLQuery) => void | undefined) | undefined; }) => ParseNodeItemHooksType; export default useDSLHooks;