import { Base64String } from '../specializations/Base64String.mjs'; import { Encryptable } from './Encryptable.mjs'; import { TypedValuesType } from './TypedValuesType.mjs'; /** * * Represents a typed value that can hold one of several primitive types (boolean, integer, double, * string, or date). * The actual value is stored in the corresponding typed field based on the [type]. * / */ export interface TypedValue extends Encryptable { /** * * The type of the value stored. */ type: TypedValuesType | undefined; /** * * The boolean value, if type is BOOLEAN. */ booleanValue: boolean | undefined; /** * * The integer value, if type is INTEGER. */ integerValue: number | undefined; /** * * The double value, if type is DOUBLE. */ doubleValue: number | undefined; /** * * The string value, if type is STRING, JSON, or CLOB. */ stringValue: string | undefined; /** * * The date value as an Instant, if type is DATE. */ dateValue: number | undefined; readonly isEncrypted: boolean; toJSON(): object; } /** * * Represents a typed value that can hold one of several primitive types (boolean, integer, double, * string, or date). * The actual value is stored in the corresponding typed field based on the [type]. * / */ export declare class DecryptedTypedValue { /** * * The type of the value stored. */ type: TypedValuesType | undefined; /** * * The boolean value, if type is BOOLEAN. */ booleanValue: boolean | undefined; /** * * The integer value, if type is INTEGER. */ integerValue: number | undefined; /** * * The double value, if type is DOUBLE. */ doubleValue: number | undefined; /** * * The string value, if type is STRING, JSON, or CLOB. */ stringValue: string | undefined; /** * * The date value as an Instant, if type is DATE. */ dateValue: number | undefined; /** * * The base64-encoded encrypted content. */ encryptedSelf: Base64String | undefined; readonly isEncrypted: false; constructor(partial: Partial); toJSON(): object; static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array): DecryptedTypedValue; } /** * * Represents a typed value that can hold one of several primitive types (boolean, integer, double, * string, or date). * The actual value is stored in the corresponding typed field based on the [type]. * / */ export declare class EncryptedTypedValue { /** * * The type of the value stored. */ type: TypedValuesType | undefined; /** * * The boolean value, if type is BOOLEAN. */ booleanValue: boolean | undefined; /** * * The integer value, if type is INTEGER. */ integerValue: number | undefined; /** * * The double value, if type is DOUBLE. */ doubleValue: number | undefined; /** * * The string value, if type is STRING, JSON, or CLOB. */ stringValue: string | undefined; /** * * The date value as an Instant, if type is DATE. */ dateValue: number | undefined; /** * * The base64-encoded encrypted content. */ encryptedSelf: Base64String | undefined; readonly isEncrypted: true; constructor(partial: Partial); toJSON(): object; static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array): EncryptedTypedValue; }