/** 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 (object | any) returns an adequate representation of that value * * ### Example * * ``` * {{valueObj | cmfCoreBusinessControlsConvertComplexValue:complexTypeObj}} * {{plainValue | cmfCoreBusinessControlsConvertComplexValue:simpleType}} * ``` */ export declare class ConvertComplexValue extends Generic implements PipeTransform { /** * Given a reference type, a reference type name and a value returns an adequate representation of that value * @param value Plain or complex value to convert * @param type Simple type used to convert the value */ convertReferenceValue(value: any, referenceType: Cmf.Foundation.Common.ReferenceType, referenceTypeName: string, referenceTypeId: string): string; /** * Given a complexType and a value returns an adequate representation of that value * @param value Plain or complex 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): string; /** * Transform * @param value Value * @param args Args[0] = simpleType; Args[1] = shortFormat */ transform(value: any, ...args: any[]): any; } export declare class ConvertComplexValueModule { }