import * as z from "zod";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import * as components from "../components/index.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type UpdateMetadataFieldDatasourceGlobals = {
    /**
     * The cloud name of your product environment.
     */
    cloudName?: string | undefined;
};
/**
 * The state of the option.
 */
export declare const State: {
    readonly Active: "active";
    readonly Inactive: "inactive";
};
/**
 * The state of the option.
 */
export type State = ClosedEnum<typeof State>;
export type Value = {
    /**
     * The external ID of the datasource value.
     */
    externalId?: string | undefined;
    /**
     * The value of the option.
     */
    value?: string | undefined;
    /**
     * The position of the option.
     */
    position?: number | undefined;
    /**
     * The state of the option.
     */
    state?: State | undefined;
};
export type UpdateMetadataFieldDatasourceRequestBody = {
    values?: Array<Value> | undefined;
};
export type UpdateMetadataFieldDatasourceRequest = {
    /**
     * The external ID of the metadata field to update the datasource for.
     */
    externalId: string;
    requestBody: UpdateMetadataFieldDatasourceRequestBody;
};
/**
 * datasource updated
 */
export type UpdateMetadataFieldDatasourceResponse = {
    values?: Array<components.MetadataFieldDatasourceValue> | undefined;
};
/** @internal */
export declare const UpdateMetadataFieldDatasourceGlobals$inboundSchema: z.ZodType<UpdateMetadataFieldDatasourceGlobals, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateMetadataFieldDatasourceGlobals$Outbound = {
    cloud_name?: string | undefined;
};
/** @internal */
export declare const UpdateMetadataFieldDatasourceGlobals$outboundSchema: z.ZodType<UpdateMetadataFieldDatasourceGlobals$Outbound, z.ZodTypeDef, UpdateMetadataFieldDatasourceGlobals>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace UpdateMetadataFieldDatasourceGlobals$ {
    /** @deprecated use `UpdateMetadataFieldDatasourceGlobals$inboundSchema` instead. */
    const inboundSchema: z.ZodType<UpdateMetadataFieldDatasourceGlobals, z.ZodTypeDef, unknown>;
    /** @deprecated use `UpdateMetadataFieldDatasourceGlobals$outboundSchema` instead. */
    const outboundSchema: z.ZodType<UpdateMetadataFieldDatasourceGlobals$Outbound, z.ZodTypeDef, UpdateMetadataFieldDatasourceGlobals>;
    /** @deprecated use `UpdateMetadataFieldDatasourceGlobals$Outbound` instead. */
    type Outbound = UpdateMetadataFieldDatasourceGlobals$Outbound;
}
export declare function updateMetadataFieldDatasourceGlobalsToJSON(updateMetadataFieldDatasourceGlobals: UpdateMetadataFieldDatasourceGlobals): string;
export declare function updateMetadataFieldDatasourceGlobalsFromJSON(jsonString: string): SafeParseResult<UpdateMetadataFieldDatasourceGlobals, SDKValidationError>;
/** @internal */
export declare const State$inboundSchema: z.ZodNativeEnum<typeof State>;
/** @internal */
export declare const State$outboundSchema: z.ZodNativeEnum<typeof State>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace State$ {
    /** @deprecated use `State$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<{
        readonly Active: "active";
        readonly Inactive: "inactive";
    }>;
    /** @deprecated use `State$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<{
        readonly Active: "active";
        readonly Inactive: "inactive";
    }>;
}
/** @internal */
export declare const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown>;
/** @internal */
export type Value$Outbound = {
    external_id?: string | undefined;
    value?: string | undefined;
    position?: number | undefined;
    state?: string | undefined;
};
/** @internal */
export declare const Value$outboundSchema: z.ZodType<Value$Outbound, z.ZodTypeDef, Value>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Value$ {
    /** @deprecated use `Value$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown>;
    /** @deprecated use `Value$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Value$Outbound, z.ZodTypeDef, Value>;
    /** @deprecated use `Value$Outbound` instead. */
    type Outbound = Value$Outbound;
}
export declare function valueToJSON(value: Value): string;
export declare function valueFromJSON(jsonString: string): SafeParseResult<Value, SDKValidationError>;
/** @internal */
export declare const UpdateMetadataFieldDatasourceRequestBody$inboundSchema: z.ZodType<UpdateMetadataFieldDatasourceRequestBody, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateMetadataFieldDatasourceRequestBody$Outbound = {
    values?: Array<Value$Outbound> | undefined;
};
/** @internal */
export declare const UpdateMetadataFieldDatasourceRequestBody$outboundSchema: z.ZodType<UpdateMetadataFieldDatasourceRequestBody$Outbound, z.ZodTypeDef, UpdateMetadataFieldDatasourceRequestBody>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace UpdateMetadataFieldDatasourceRequestBody$ {
    /** @deprecated use `UpdateMetadataFieldDatasourceRequestBody$inboundSchema` instead. */
    const inboundSchema: z.ZodType<UpdateMetadataFieldDatasourceRequestBody, z.ZodTypeDef, unknown>;
    /** @deprecated use `UpdateMetadataFieldDatasourceRequestBody$outboundSchema` instead. */
    const outboundSchema: z.ZodType<UpdateMetadataFieldDatasourceRequestBody$Outbound, z.ZodTypeDef, UpdateMetadataFieldDatasourceRequestBody>;
    /** @deprecated use `UpdateMetadataFieldDatasourceRequestBody$Outbound` instead. */
    type Outbound = UpdateMetadataFieldDatasourceRequestBody$Outbound;
}
export declare function updateMetadataFieldDatasourceRequestBodyToJSON(updateMetadataFieldDatasourceRequestBody: UpdateMetadataFieldDatasourceRequestBody): string;
export declare function updateMetadataFieldDatasourceRequestBodyFromJSON(jsonString: string): SafeParseResult<UpdateMetadataFieldDatasourceRequestBody, SDKValidationError>;
/** @internal */
export declare const UpdateMetadataFieldDatasourceRequest$inboundSchema: z.ZodType<UpdateMetadataFieldDatasourceRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateMetadataFieldDatasourceRequest$Outbound = {
    external_id: string;
    RequestBody: UpdateMetadataFieldDatasourceRequestBody$Outbound;
};
/** @internal */
export declare const UpdateMetadataFieldDatasourceRequest$outboundSchema: z.ZodType<UpdateMetadataFieldDatasourceRequest$Outbound, z.ZodTypeDef, UpdateMetadataFieldDatasourceRequest>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace UpdateMetadataFieldDatasourceRequest$ {
    /** @deprecated use `UpdateMetadataFieldDatasourceRequest$inboundSchema` instead. */
    const inboundSchema: z.ZodType<UpdateMetadataFieldDatasourceRequest, z.ZodTypeDef, unknown>;
    /** @deprecated use `UpdateMetadataFieldDatasourceRequest$outboundSchema` instead. */
    const outboundSchema: z.ZodType<UpdateMetadataFieldDatasourceRequest$Outbound, z.ZodTypeDef, UpdateMetadataFieldDatasourceRequest>;
    /** @deprecated use `UpdateMetadataFieldDatasourceRequest$Outbound` instead. */
    type Outbound = UpdateMetadataFieldDatasourceRequest$Outbound;
}
export declare function updateMetadataFieldDatasourceRequestToJSON(updateMetadataFieldDatasourceRequest: UpdateMetadataFieldDatasourceRequest): string;
export declare function updateMetadataFieldDatasourceRequestFromJSON(jsonString: string): SafeParseResult<UpdateMetadataFieldDatasourceRequest, SDKValidationError>;
/** @internal */
export declare const UpdateMetadataFieldDatasourceResponse$inboundSchema: z.ZodType<UpdateMetadataFieldDatasourceResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateMetadataFieldDatasourceResponse$Outbound = {
    values?: Array<components.MetadataFieldDatasourceValue$Outbound> | undefined;
};
/** @internal */
export declare const UpdateMetadataFieldDatasourceResponse$outboundSchema: z.ZodType<UpdateMetadataFieldDatasourceResponse$Outbound, z.ZodTypeDef, UpdateMetadataFieldDatasourceResponse>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace UpdateMetadataFieldDatasourceResponse$ {
    /** @deprecated use `UpdateMetadataFieldDatasourceResponse$inboundSchema` instead. */
    const inboundSchema: z.ZodType<UpdateMetadataFieldDatasourceResponse, z.ZodTypeDef, unknown>;
    /** @deprecated use `UpdateMetadataFieldDatasourceResponse$outboundSchema` instead. */
    const outboundSchema: z.ZodType<UpdateMetadataFieldDatasourceResponse$Outbound, z.ZodTypeDef, UpdateMetadataFieldDatasourceResponse>;
    /** @deprecated use `UpdateMetadataFieldDatasourceResponse$Outbound` instead. */
    type Outbound = UpdateMetadataFieldDatasourceResponse$Outbound;
}
export declare function updateMetadataFieldDatasourceResponseToJSON(updateMetadataFieldDatasourceResponse: UpdateMetadataFieldDatasourceResponse): string;
export declare function updateMetadataFieldDatasourceResponseFromJSON(jsonString: string): SafeParseResult<UpdateMetadataFieldDatasourceResponse, SDKValidationError>;
//# sourceMappingURL=updatemetadatafielddatasource.d.ts.map