/** Angular2 */ import { PipeTransform } from "@angular/core"; import Cmf from "cmf.lbos"; /** Nested components*/ import { EntityTypePropertyValueType as SimpleType, ComplexType } from "cmf.core/src/domain/extensions/caches/entityType"; import { Generic } from "cmf.core/src/core"; /** * Given a type (SimpleType | ComplexType), and a value (string) returns a promise to an object of that value type * * ### Example * * ``` * {{valueObj | cmfCoreBusinessControlsAsyncConvertStringComplexValue:complexTypeObj}} * {{plainValue | cmfCoreBusinessControlsAsyncConvertStringComplexValue:simpleType}} * ``` */ export declare class AsyncConvertStringComplexValue extends Generic implements PipeTransform { /** * Given a reference type, a reference type name and a string value returns a promise to a value of the given type * Note that this does not make services calls to retrieve an object, it will simply return the converted value, or fetch it from the cache * if available * @param value String value to convert * @param type Simple type used to convert the value */ convertReferenceValue(value: string, referenceType: Cmf.Foundation.Common.ReferenceType, referenceTypeName: string, referenceTypeId: string): Promise; /** * Given a complexType and a value returns an adequate representation of that value * @param value String value to convert * @param type Complex type used to convert the value * @param shortFormat Short format flag */ getValue(value: any, receivedType: SimpleType | ComplexType, shortFormat?: boolean): Promise; /** * Transform * @param value Value * @param args Args[0] = simpleType; Args[1] = shortFormat */ transform(value: string, ...args: any[]): Promise; } export declare class AsyncConvertStringComplexValueModule { }