import { ValidationErrors } from '@angular/forms'; import { ConditionExpression, ExpressionType, FieldTypes, FilterOperators, IQueryCondition } from 'mel-common'; import { ValidationError } from 'class-validator'; export declare function newValidationError(key: string, constraint: string): ValidationError; /** * This class represents one filterexpression of a condition * Members: * - _operator: the filteroperator for the API-Call * - _operands: string[] * - _input: the original expression */ export declare class ClientExpression extends ConditionExpression { notYetImplemented(dummy: any): string; validationError(dummy: any): ValidationErrors; private _toApiOperand; private _toFriendlyOperand; private _validate; /** * The constructor ist used for a friendly interface. The faster way is to use create() * @param fieldType * @param _input */ constructor(fieldType: FieldTypes, inputOrOperator?: string | FilterOperators, operands?: ExpressionType[]); get queryCondition(): IQueryCondition; private get apiOperands(); /** * Formats the expression into a friendly format f.e. 020320 --> 02.03.2020 (date) */ get friendly(): string; /** * validates the condition and returns ValidationErrors if invalid otherwise null */ validate(): ValidationErrors | null; }