/** * Provides utilities to transform hydrated and persisted data. */ export declare class DataTransformationUtils { /** * Normalizes date object hydrated from the database. */ static normalizeHydratedDate(mixedDate: Date | string | undefined, storedInLocal: boolean): Date | string | undefined; /** * Converts given value into date string in a "YYYY-MM-DD" format. */ static mixedDateToDateString(value: Date | any): string | any; /** * Converts given value into time string in a "HH:mm:ss" format. */ static mixedDateToTimeString(value: Date | any): string | any; /** * Converts given string value with "-" separator into a "HH:mm:ss" format. */ static mixedTimeToString(value: string | any): string | any; /** * Converts given value into datetime string in a "YYYY-MM-DD HH-mm-ss" format. */ static mixedDateToDatetimeString(value: Date | any): string | any; /** * Converts given value into utc datetime string in a "YYYY-MM-DD HH-mm-ss" format. */ static mixedDateToUtcDatetimeString(value: Date | any): string | any; /** * Converts each item in the given array to string joined by "," separator. */ static simpleArrayToString(value: any[] | any): string[] | any; /** * Converts given string to simple array split by "," separator. */ static stringToSimpleArray(value: string | any): string | any; /** * Formats given number to "0x" format, e.g. if it is 1 then it will return "01". */ private static formatZerolessValue(value); }