import { Class, Json, JsonMap, JsonArray } from '../util'; import { File } from '../binding'; import { GeoPoint } from '../GeoPoint'; import { PersistenceType, Type } from './Type'; import { ManagedState } from '../intersection'; export declare class BasicType extends Type { static readonly Boolean: { fromJsonValue(state: ManagedState, json: Json, currentValue: Boolean | null): Boolean | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; /** * @inheritDoc */ toJsonValue(state: ManagedState, currentValue: Boolean | null): Json; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; static readonly Double: { fromJsonValue(state: ManagedState, json: Json, currentValue: Number | null): number | Number | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; /** * @inheritDoc */ toJsonValue(state: ManagedState, currentValue: Number | null): Json; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; static readonly Integer: { fromJsonValue(state: ManagedState, json: Json, currentValue: number | null): number | Number | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; /** * @inheritDoc */ toJsonValue(state: ManagedState, currentValue: Number | null): Json; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; static readonly String: { fromJsonValue(state: ManagedState, json: Json, currentValue: String | null): String | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; /** * @inheritDoc */ toJsonValue(state: ManagedState, currentValue: String | null): Json; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; static readonly DateTime: { toJsonValue(state: ManagedState, value: Date | null): string | null; fromJsonValue(state: ManagedState, json: Json, currentValue: Date | null): Date | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; static readonly Date: { toJsonValue(state: ManagedState, value: Date | null): string | null; fromJsonValue(state: ManagedState, json: Json, currentValue: Date | null): Date | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; static readonly Time: { toJsonValue(state: ManagedState, value: Date | null): string | null; fromJsonValue(state: ManagedState, json: Json, currentValue: Date | null): Date | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; static readonly File: { toJsonValue(state: ManagedState, value: File | null): string | null; fromJsonValue(state: ManagedState, json: Json, currentValue: File | null): File | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; static readonly GeoPoint: { toJsonValue(state: ManagedState, value: GeoPoint | null): JsonMap | null; fromJsonValue(state: ManagedState, json: Json): GeoPoint | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; static readonly JsonArray: { toJsonValue(state: ManagedState, value: Array | null): any[] | null; fromJsonValue(state: ManagedState, json: Json): JsonArray | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; static readonly JsonObject: { fromJsonValue(state: ManagedState, json: Json, currentValue: JsonMap | null): JsonMap | null; toJsonValue(state: ManagedState, value: JsonMap | null): JsonMap | null; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ readonly persistenceType: PersistenceType; toString(): string; readonly ref: string; readonly name: string; _typeConstructor?: Class | undefined; readonly isBasic: boolean; readonly isEmbeddable: boolean; readonly isEntity: boolean; readonly isMappedSuperclass: boolean; typeConstructor: Class; }; /** * Indicates if this type is not the main type of the constructor */ noResolving: boolean; /** * @inheritDoc */ get persistenceType(): PersistenceType; /** * Creates a new instance of a native db type * @param ref The db ref of this type * @param typeConstructor The javascript class of this type * @param noResolving Indicates if this type is not the main type of the constructor */ constructor(ref: string, typeConstructor: Class, noResolving?: boolean); /** * @inheritDoc */ toJsonValue(state: ManagedState, currentValue: T | null): Json; /** * @inheritDoc */ fromJsonValue(state: ManagedState, json: Json, currentValue: T | null): T | null; toString(): string; }