import * as z from "zod";
import { ClosedEnum } from "../types/enums.js";
import { ApiError } from "./apierror.js";
import { MetadataField } from "./metadatafield.js";
import { StateEnum } from "./stateenum.js";
export type CreateMetadataFieldGlobals = {
    cloud_name?: string | undefined;
};
export declare const CreateMetadataFieldGlobals$zodSchema: z.ZodType<CreateMetadataFieldGlobals>;
/**
 * The type of the metadata field.
 */
export declare const CreateMetadataFieldType: {
    readonly String: "string";
    readonly Integer: "integer";
    readonly Date: "date";
    readonly Enum: "enum";
    readonly Set: "set";
};
/**
 * The type of the metadata field.
 */
export type CreateMetadataFieldType = ClosedEnum<typeof CreateMetadataFieldType>;
export declare const CreateMetadataFieldType$zodSchema: z.ZodEnum<{
    string: "string";
    date: "date";
    set: "set";
    enum: "enum";
    integer: "integer";
}>;
/**
 * The default value of the metadata field.
 */
export type CreateMetadataFieldDefaultValue = string | number;
export declare const CreateMetadataFieldDefaultValue$zodSchema: z.ZodType<CreateMetadataFieldDefaultValue>;
/**
 * The restrictions defined for the metadata field.
 */
export type CreateMetadataFieldRestrictions = {
    readonly_ui?: boolean | undefined;
};
export declare const CreateMetadataFieldRestrictions$zodSchema: z.ZodType<CreateMetadataFieldRestrictions>;
export type CreateMetadataFieldValue = {
    external_id?: string | undefined;
    value?: string | undefined;
    position?: number | undefined;
    state?: StateEnum | undefined;
};
export declare const CreateMetadataFieldValue$zodSchema: z.ZodType<CreateMetadataFieldValue>;
/**
 * The datasource defined for the metadata field.
 */
export type CreateMetadataFieldDatasource = {
    values?: Array<CreateMetadataFieldValue> | undefined;
};
export declare const CreateMetadataFieldDatasource$zodSchema: z.ZodType<CreateMetadataFieldDatasource>;
/**
 * The metadata field definition.
 */
export type CreateMetadataFieldRequest = {
    type: CreateMetadataFieldType;
    external_id?: string | undefined;
    label: string;
    mandatory?: boolean | null | undefined;
    default_value?: string | number | null | undefined;
    default_disabled?: boolean | null | undefined;
    validation?: {
        [k: string]: any;
    } | null | undefined;
    restrictions?: CreateMetadataFieldRestrictions | null | undefined;
    datasource?: CreateMetadataFieldDatasource | null | undefined;
    allow_dynamic_list_values?: boolean | null | undefined;
};
export declare const CreateMetadataFieldRequest$zodSchema: z.ZodType<CreateMetadataFieldRequest>;
export type CreateMetadataFieldResponse = ApiError | MetadataField;
export declare const CreateMetadataFieldResponse$zodSchema: z.ZodType<CreateMetadataFieldResponse>;
//# sourceMappingURL=createmetadatafieldop.d.ts.map