import type { EntityFieldDefinitionOptions, EntityFieldDefinitionOptionsExplicitCache } from './EntityFieldDefinition.ts'; import { EntityFieldDefinition } from './EntityFieldDefinition.ts'; /** * EntityFieldDefinition for a column with a JS string type. */ export declare class StringField extends EntityFieldDefinition { protected validateInputValueInternal(value: string): boolean; } /** * EntityFieldDefinition for a column with a JS string type. * Enforces that the string is a valid UUID and that it is lowercase. Entity requires UUIDs to be lowercase since most * databases (e.g. Postgres) treat UUIDs as case-insensitive, which can lead to unexpected entity load results if mixed-case * UUIDs are used. */ export declare class UUIDField extends StringField { protected validateInputValueInternal(value: string): boolean; } /** * EntityFieldDefinition for a column with a JS Date type. */ export declare class DateField extends EntityFieldDefinition { protected validateInputValueInternal(value: Date): boolean; } /** * EntityFieldDefinition for a column with a JS boolean type. */ export declare class BooleanField extends EntityFieldDefinition { protected validateInputValueInternal(value: boolean): boolean; } /** * EntityFieldDefinition for a column with a JS number type. * Enforces that the number is an integer. */ export declare class IntField extends EntityFieldDefinition { protected validateInputValueInternal(value: number): boolean; } /** * EntityFieldDefinition for a column with a JS number type. * Enforces that the number is a float (which includes integers in JS). */ export declare class FloatField extends EntityFieldDefinition { protected validateInputValueInternal(value: number): boolean; } /** * EntityFieldDefinition for a column with a JS string array type. * Enforces that every member of the string array is a string. */ export declare class StringArrayField extends EntityFieldDefinition { protected validateInputValueInternal(value: string[]): boolean; } /** * EntityFieldDefinition for a column with a JS JSON object type. */ export declare class JSONObjectField extends EntityFieldDefinition { protected validateInputValueInternal(value: object): boolean; } /** * EntityFieldDefinition for a enum column with a JS string or number type. */ export declare class EnumField extends EntityFieldDefinition { protected validateInputValueInternal(value: string | number): boolean; } /** * EntityFieldDefinition for a enum column with a strict typescript enum type. * The strict version checks that the value of the field adheres to a particular typescript enum */ export declare class StrictEnumField extends EnumField { private readonly enumValues; constructor(options: TRequireExplicitCache extends true ? EntityFieldDefinitionOptionsExplicitCache & { enum: T; } : EntityFieldDefinitionOptions & { enum: T; }); protected validateInputValueInternal(value: string | number): boolean; } /** * EntityFieldDefinition for a column with a JS Buffer type. */ export declare class BufferField extends EntityFieldDefinition { protected validateInputValueInternal(value: Buffer): boolean; }