import { DSLQuery } from '@lingxiteam/dsl'; import { InitialEditorConfigFnReturn } from '../../Editor/interface'; import { JSONType } from '../propType'; /** * 返回false,则表示增加控件失败 */ export declare type ParseAddComProcessFunctionType = (components: JSONType, config: InitialEditorConfigFnReturn) => boolean | void; /** * 增加控件的DSL预处理 * @param opts 预处理数据 * @param config 上下文 * @returns 如果返回false,则表示增加控件失败 */ export declare const parseAddComProcess: (opts: { DSLCore: DSLQuery; components: JSONType; }, config: InitialEditorConfigFnReturn, parseAddComToProcess?: ((compName: string, opts: Record, DSLCore: DSLQuery) => void | undefined) | undefined) => boolean;