import { IVariable } from "../types"; /** * 数据源工具类 */ export declare class DataSourceUtils { /** * 重新执行变量 */ static reExecuteAllVariable(): void; /** * 执行变量 * @param variableData 变量集合 */ static executeAllVariable(variableData: IVariable[], updateWidget?: boolean): void; static replaceObjectVariables(obj: any): any; static replaceStringVariables(str: string): string; static getObjectVariableNames(obj: any): string[]; static getStringVariableNames(str: string): string[]; static parseVariablePath(path: any): { varName: any; propPath: any; }; static getEnvironments(): { envName: string; envBaseUrl: string; }; static setEnvironments(environments: any[]): void; static getVariables(): any[]; static setVariables(variable: any[]): void; static setVariableById(variable: any, value: any, updateWidget?: boolean, path?: string): void; static getVariableById(id: string): any; static getVariableByName(name: string): any; static getVariableValueById(id: string): any; static addVariable: (variable: any) => void; static updateVariable: (variable: any) => void; static deleteVariableById: (id: any) => void; static clearVariables: () => void; static noneData(id: string): { id: string; finalKeyData: { id: string; data: any; }; finalUserData: { id: string; data: any; }; filteredData: any; rawData: any; noMappingData: any; }; /** * 动态给对象指定路径设置值(含路径有效性检测,全程使用new Function) * @param {string} path - 支持点分隔(data3.t1)和数组下标(data3.t2[1]) * @param {object} obj - 目标对象 * @param {any} value - 待设置值 * @throws {Error} 路径无效(节点不存在)时抛出错误 */ static setObjectJsonByPath(path: any, obj: any, value: any): any; }