import { JsonPath } from '@p-lc/shared'; import { Uidl } from '@p-lc/uidl'; import { LogicSetterHelper, SetterEntityDetail, UidlUtilsConfig } from '../config'; import { ElementOfUidl, ExpressionOfUidl } from '../types'; /** * 创建逻辑设置器助手 * @param config UIDL 工具集配置 */ export declare function createLogicSetterHelper(config: UidlUtilsConfig): LogicSetterHelper; /** * 在 UIDL 中设置实体,原地修改 * @param config UIDL 工具集配置 * @param uidl UIDL * @param logicPath 逻辑路径,长度大于 0 * @param entity 实体 */ export declare function logicSetEntity(config: UidlUtilsConfig, uidl: U, logicPath: JsonPath, entity: SetterEntityDetail): U; /** * 在元素中设置实体,原地修改 * @param config UIDL 工具集配置 * @param element 元素 * @param logicPath 逻辑路径,长度大于 0 * @param entity 实体 */ export declare function logicSetEntityInElement(config: UidlUtilsConfig, element: ElementOfUidl, logicPath: JsonPath, entity: SetterEntityDetail): ElementOfUidl; /** * 在表达式中设置实体,会尽量原地修改,但最外层表达式被修改时,以返回值为准 * @param config UIDL 工具集配置 * @param expression 表达式 * @param logicPath 逻辑路径,长度大于 0 * @param entity 实体 */ export declare function logicSetEntityInExpression(config: UidlUtilsConfig, expression: ExpressionOfUidl, logicPath: JsonPath, entity: SetterEntityDetail): ExpressionOfUidl; /** * 在 UIDL 中设置元素,原地修改 * @param config UIDL 工具集配置 * @param uidl UIDL * @param logicPath 逻辑路径,长度大于 0 * @param childElement 子元素,不传表示删除 */ export declare function logicSetElement(config: UidlUtilsConfig, uidl: U, logicPath: JsonPath, childElement?: ElementOfUidl): U; /** * 在元素中设置元素,原地修改 * @param config UIDL 工具集配置 * @param element 元素 * @param logicPath 逻辑路径,长度大于 0 * @param childElement 子元素,不传表示删除 */ export declare function logicSetElementInElement(config: UidlUtilsConfig, element: ElementOfUidl, logicPath: JsonPath, childElement?: ElementOfUidl): ElementOfUidl; /** * 在元素中设置表达式,原地修改 * @param config UIDL 工具集配置 * @param element 元素 * @param logicPath 逻辑路径,长度大于 0 * @param expression 表达式,不传表示删除 */ export declare function logicSetExpressionInElement(config: UidlUtilsConfig, element: ElementOfUidl, logicPath: JsonPath, expression?: ExpressionOfUidl): ElementOfUidl; //# sourceMappingURL=setter.d.ts.map