import type Collection from "../../../chip-types/collection.js"; import Field, { type ValidationResult } from "../../../chip-types/field.js"; import type { FieldsetInput, FieldsetOutput } from "../../../chip-types/fieldset.js"; import type Context from "../../../context.js"; import { OpenApiTypes } from "../../../schemas/open-api-types.js"; import type { App } from "../../app.js"; export declare class ItemDraftObject { target_collection: C; input: FieldsetInput; constructor(target_collection: C, input: FieldsetInput); decode(context: Context, is_for_http: boolean): Promise>>; finalize(context: Context): Promise>; } export declare class ItemDraft = FieldsetInput> extends Field, InputType> { target_collection_name: string; typeName: string; target_collection: C; open_api_type: OpenApiTypes; constructor(target_collection_name: string); init(app: App): Promise; hasIndex(): Promise; getMatchQueryValue(context: Context, filter: "" | null | InputType): Promise | { $exists: boolean; $in?: undefined; } | { $in: boolean[]; $exists?: undefined; } | null>; protected isProperValue(context: Context, new_value: InputType, _old_value: InputType, _new_value_blessing_token: symbol | null): Promise; getPostgreSqlFieldDefinitions(): string[]; decode(context: Context, storage_value: ItemDraftObject, old_value: any, is_http_api_request?: boolean): Promise | null>; }