/** Angular2 */ import { PipeTransform } from "@angular/core"; /** Core */ import { Generic } from "cmf.core/src/core"; import { DateTimeType } from "cmf.core/src/domain/extensions/formatter"; import moment from "moment"; export declare class DateTime extends Generic implements PipeTransform { /** * All the available cultures - string array. * These match the ones found on FormatterImplementation Extension LOCALS dictionary. */ private static availableCultures; /** * Given a moment and a format returns a string with he formated date * @param value time instant moment object * @param recvFormatType Format type - can be 'DateTime', 'Date', 'Time' * @param culture Culture string value - can be 'de-DE', 'pt-PT', 'pt-BR', 'zh-CN', 'zh-TW', 'vi-VN', 'en-US', 'es-ES'. */ getValue(value: moment.Moment, recvFormatType: DateTimeType | string, culture?: string): string; /** * @value DateTime value (Moment object). * @args it can be simple string setting the DateTimeType or a string array setting not only the DateTimeType [0] but also the culture [1]. */ transform(value: moment.Moment, args: string[]): any; } export declare class DateTimeModule { }