import { JsonPath } from '@p-lc/shared'; import { Uidl } from '@p-lc/uidl'; import { GetterEntityDetail, LogicGetterHelper, UidlUtilsConfig } from '../config'; import { ElementOfUidl, ExpressionOfUidl } from '../types'; /** * 创建逻辑获取器助手 * @param config UIDL 工具集配置 */ export declare function createLogicGetterHelper(config: UidlUtilsConfig): LogicGetterHelper; /** * 通过 UIDL 获取实体 * @param config UIDL 工具集配置 * @param uidl UIDL * @param logicPath 逻辑路径 */ export declare function logicGetEntity(config: UidlUtilsConfig, uidl: U, logicPath: JsonPath): GetterEntityDetail; /** * 在元素中获取实体 * @param config UIDL 工具集配置 * @param element 元素 * @param logicPath 逻辑路径 */ export declare function logicGetEntityInElement(config: UidlUtilsConfig, element: ElementOfUidl, logicPath: JsonPath): GetterEntityDetail; /** * 在表达式中获取实体 * @param config UIDL 工具集配置 * @param expression 表达式 * @param logicPath 逻辑路径 */ export declare function logicGetEntityInExpression(config: UidlUtilsConfig, expression: ExpressionOfUidl, logicPath: JsonPath): GetterEntityDetail; /** * 获取器实体详情转元素 * @param ed 获取器实体详情 */ export declare function getterEntityDetailToElement(ed: GetterEntityDetail): ElementOfUidl | undefined; /** * 获取器实体详情转表达式 * @param ed 获取器实体详情 */ export declare function getterEntityDetailToExpression(ed: GetterEntityDetail): ExpressionOfUidl | undefined; /** * 在元素中获取元素 * @param config UIDL 工具集配置 * @param element 元素 * @param logicPath 逻辑路径 */ export declare function logicGetElementInElement(config: UidlUtilsConfig, element: ElementOfUidl, logicPath: JsonPath): ElementOfUidl | undefined; /** * 在元素中获取表达式 * @param config UIDL 工具集配置 * @param element 元素 * @param logicPath 逻辑路径 */ export declare function logicGetExpressionInElement(config: UidlUtilsConfig, element: ElementOfUidl, logicPath: JsonPath): ExpressionOfUidl | undefined; /** * 在元素中获取元素数组,`undefined` 表示数组不存在或数组为空 * @param config UIDL 工具集配置 * @param element 元素 * @param logicPath 逻辑路径 */ export declare function logicGetElementArrayInElement(config: UidlUtilsConfig, element: ElementOfUidl, logicPath: JsonPath): ElementOfUidl[] | undefined; //# sourceMappingURL=getter.d.ts.map