import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { DynamicFormDesignerConfig } from '../utils/dynamic-form-designer-config'; import { OptionProperty } from '../types'; import { OptionItem } from '../types/control.types'; export declare class OptionService { private httpClient; private _config; constructor(httpClient: HttpClient, config: DynamicFormDesignerConfig); get(url: string): Observable; /** * 获取选项值 * */ getSelectOptions(properties: Array, globalData: any, defaultValue?: string): Observable>; /** * 根据默认变量值获取选项值 * * @param properties * @param [defaultVarValue=''] 默认变量值 * @memberof OptionService */ getSelectOptionsByDefaultVarValue(properties: Array, defaultVarValue?: string): Observable>; /** * 获取选项值 根据固定选项 * * @memberof OptionService */ getSelectOptionsByProperty(property: OptionProperty, newValue: string, isFirst: boolean): Observable>; /** * 获取计算后的url * * @param url * @param newVal * @memberof OptionService */ getUrl(url: string, newVal: string): string; /** * 根据url获取变量值 * * @memberof OptionService */ getVarValueByUrl(url: string, globalData: any): string; /** * 获取变量名称 * * @memberof OptionService */ getVarName(url: string): string; /** * 根据变量名获取变量值 * * @memberof OptionService */ getVarValue(varName: string, globalData: any): string; }