import { ValueTransformer } from 'typeorm'; /** * TypeORM transformers used to marshal properties of an arbitrary type * into the type supported by the database. */ export declare class DatabaseTransformer { /** * A transformer that converts array of strings to pg array */ static get array(): ValueTransformer; /** * A transformer that converts a Date to pg timestamp and vice versa */ static get timestamp(): ValueTransformer; /** * A transformer that converts a string to a BigNumber and vice versa */ static get bignumber(): ValueTransformer; /** * A transformer that converts a string[] to a BigNumber[] and vice versa */ static get bignumberArray(): ValueTransformer; /** * A transformer that converts a bignumber-like object to a string and * removes insignificant trailing zeros */ static get bignumberString(): ValueTransformer; /** * A transformer that converts a string to a number and vice versa */ static get number(): ValueTransformer; /** * A transformer that converts a string to lowercase */ static get lowercase(): ValueTransformer; /** * A transformer that converts a string to uppercase */ static get uppercase(): ValueTransformer; /** * Convert a hex string to bytea and vice versa */ static get bytea(): ValueTransformer; /** * Convert a hex string array to bytea array and vice versa */ static get byteaArray(): ValueTransformer; /** * Convert a representation of a number to a bignumber if defined * @param value The value to convert */ private static toSafeBigNumber; /** * Convert a representation of hex string to pg compatible bytea * @param value The hex string to convert */ private static toBytea; /** * Convert a pg bytea to hex string * @param value The bytea */ private static fromBytea; } //# sourceMappingURL=database.transformer.d.ts.map