import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type SearchMetadataFieldDatasourceGlobals = {
    /**
     * The cloud name of your product environment.
     */
    cloudName?: string | undefined;
};
export type SearchMetadataFieldDatasourceRequest = {
    /**
     * The term to search for. Can be any substring of the value.
     */
    term?: string | undefined;
    /**
     * The maximum number of results to return.
     */
    maxResults?: number | undefined;
};
export type SearchMetadataFieldDatasourceResponse = {
    /**
     * The external ID of the metadata field.
     */
    fieldId?: string | undefined;
    /**
     * The external ID of the option.
     */
    id?: string | undefined;
    /**
     * The value of the option.
     */
    value?: string | undefined;
};
/** @internal */
export declare const SearchMetadataFieldDatasourceGlobals$inboundSchema: z.ZodType<SearchMetadataFieldDatasourceGlobals, z.ZodTypeDef, unknown>;
/** @internal */
export type SearchMetadataFieldDatasourceGlobals$Outbound = {
    cloud_name?: string | undefined;
};
/** @internal */
export declare const SearchMetadataFieldDatasourceGlobals$outboundSchema: z.ZodType<SearchMetadataFieldDatasourceGlobals$Outbound, z.ZodTypeDef, SearchMetadataFieldDatasourceGlobals>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace SearchMetadataFieldDatasourceGlobals$ {
    /** @deprecated use `SearchMetadataFieldDatasourceGlobals$inboundSchema` instead. */
    const inboundSchema: z.ZodType<SearchMetadataFieldDatasourceGlobals, z.ZodTypeDef, unknown>;
    /** @deprecated use `SearchMetadataFieldDatasourceGlobals$outboundSchema` instead. */
    const outboundSchema: z.ZodType<SearchMetadataFieldDatasourceGlobals$Outbound, z.ZodTypeDef, SearchMetadataFieldDatasourceGlobals>;
    /** @deprecated use `SearchMetadataFieldDatasourceGlobals$Outbound` instead. */
    type Outbound = SearchMetadataFieldDatasourceGlobals$Outbound;
}
export declare function searchMetadataFieldDatasourceGlobalsToJSON(searchMetadataFieldDatasourceGlobals: SearchMetadataFieldDatasourceGlobals): string;
export declare function searchMetadataFieldDatasourceGlobalsFromJSON(jsonString: string): SafeParseResult<SearchMetadataFieldDatasourceGlobals, SDKValidationError>;
/** @internal */
export declare const SearchMetadataFieldDatasourceRequest$inboundSchema: z.ZodType<SearchMetadataFieldDatasourceRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type SearchMetadataFieldDatasourceRequest$Outbound = {
    term?: string | undefined;
    max_results: number;
};
/** @internal */
export declare const SearchMetadataFieldDatasourceRequest$outboundSchema: z.ZodType<SearchMetadataFieldDatasourceRequest$Outbound, z.ZodTypeDef, SearchMetadataFieldDatasourceRequest>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace SearchMetadataFieldDatasourceRequest$ {
    /** @deprecated use `SearchMetadataFieldDatasourceRequest$inboundSchema` instead. */
    const inboundSchema: z.ZodType<SearchMetadataFieldDatasourceRequest, z.ZodTypeDef, unknown>;
    /** @deprecated use `SearchMetadataFieldDatasourceRequest$outboundSchema` instead. */
    const outboundSchema: z.ZodType<SearchMetadataFieldDatasourceRequest$Outbound, z.ZodTypeDef, SearchMetadataFieldDatasourceRequest>;
    /** @deprecated use `SearchMetadataFieldDatasourceRequest$Outbound` instead. */
    type Outbound = SearchMetadataFieldDatasourceRequest$Outbound;
}
export declare function searchMetadataFieldDatasourceRequestToJSON(searchMetadataFieldDatasourceRequest: SearchMetadataFieldDatasourceRequest): string;
export declare function searchMetadataFieldDatasourceRequestFromJSON(jsonString: string): SafeParseResult<SearchMetadataFieldDatasourceRequest, SDKValidationError>;
/** @internal */
export declare const SearchMetadataFieldDatasourceResponse$inboundSchema: z.ZodType<SearchMetadataFieldDatasourceResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type SearchMetadataFieldDatasourceResponse$Outbound = {
    field_id?: string | undefined;
    id?: string | undefined;
    value?: string | undefined;
};
/** @internal */
export declare const SearchMetadataFieldDatasourceResponse$outboundSchema: z.ZodType<SearchMetadataFieldDatasourceResponse$Outbound, z.ZodTypeDef, SearchMetadataFieldDatasourceResponse>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace SearchMetadataFieldDatasourceResponse$ {
    /** @deprecated use `SearchMetadataFieldDatasourceResponse$inboundSchema` instead. */
    const inboundSchema: z.ZodType<SearchMetadataFieldDatasourceResponse, z.ZodTypeDef, unknown>;
    /** @deprecated use `SearchMetadataFieldDatasourceResponse$outboundSchema` instead. */
    const outboundSchema: z.ZodType<SearchMetadataFieldDatasourceResponse$Outbound, z.ZodTypeDef, SearchMetadataFieldDatasourceResponse>;
    /** @deprecated use `SearchMetadataFieldDatasourceResponse$Outbound` instead. */
    type Outbound = SearchMetadataFieldDatasourceResponse$Outbound;
}
export declare function searchMetadataFieldDatasourceResponseToJSON(searchMetadataFieldDatasourceResponse: SearchMetadataFieldDatasourceResponse): string;
export declare function searchMetadataFieldDatasourceResponseFromJSON(jsonString: string): SafeParseResult<SearchMetadataFieldDatasourceResponse, SDKValidationError>;
//# sourceMappingURL=searchmetadatafielddatasource.d.ts.map