import type { App } from "./app.js";
import type { Collection } from "./collection_model.js";
import { JSONRaw } from "../tools/types/json_raw.js";
import { type Field, type MaxBodySizeCalculator, type RecordLike } from "./field.js";
export declare const FieldTypeJSON = "json";
export declare const DefaultJSONFieldMaxSize: number;
export declare class JSONField implements Field, MaxBodySizeCalculator {
    Name: string;
    Id: string;
    System: boolean;
    Hidden: boolean;
    Presentable: boolean;
    Help: string;
    MaxSize: number;
    Required: boolean;
    Type(): string;
    GetId(): string;
    SetId(id: string): void;
    GetName(): string;
    SetName(name: string): void;
    GetSystem(): boolean;
    SetSystem(system: boolean): void;
    GetHidden(): boolean;
    SetHidden(hidden: boolean): void;
    ColumnType(_app: App): string;
    PrepareValue(_record: unknown, raw: unknown): JSONRaw;
    ValidateValue(_ctx: unknown, _app: App, record: RecordLike): Error | null;
    ValidateSettings(_ctx: unknown, _app: App, _collection: Collection): Error | null;
    CalculateMaxBodySize(): number;
}
