import * as z from "zod";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export declare const SearchParametersType: {
    readonly Bytes: "bytes";
    readonly ImagePixels: "image_pixels";
    readonly VideoPixels: "video_pixels";
    readonly Duration: "duration";
};
export type SearchParametersType = ClosedEnum<typeof SearchParametersType>;
export type SearchParametersRange = {
    /**
     * Start of the range (inclusive)
     */
    from?: number | undefined;
    /**
     * End of the range (exclusive)
     */
    to?: number | undefined;
};
export type Aggregate = {
    type: SearchParametersType;
    ranges: Array<SearchParametersRange>;
};
export declare const AggregateEnum: {
    readonly Format: "format";
    readonly ResourceType: "resource_type";
    readonly Type: "type";
};
export type AggregateEnum = ClosedEnum<typeof AggregateEnum>;
export type AggregateUnion = Array<AggregateEnum> | Array<Aggregate>;
export declare const WithField: {
    readonly Context: "context";
    readonly Tags: "tags";
    readonly ImageMetadata: "image_metadata";
    readonly ImageAnalysis: "image_analysis";
    readonly Metadata: "metadata";
    readonly QualityAnalysis: "quality_analysis";
    readonly AccessibilityAnalysis: "accessibility_analysis";
};
export type WithField = ClosedEnum<typeof WithField>;
/**
 * Common parameters for resource search operations.
 */
export type SearchParameters = {
    /**
     * The search expression. Supports exact match, wildcard match, presence, greater/less than, and range. For details on building expressions, see the Search API documentation.
     */
    expression?: string | undefined;
    /**
     * The fields to sort results by. You can specify multiple fields with optional directions (asc/desc). Default direction is desc.
     */
    sortBy?: Array<string> | undefined;
    /**
     * The maximum number of results to return. Default - 50. Maximum - 500.
     */
    maxResults?: number | undefined;
    /**
     * The cursor value to get the next page of results. Available when a previous search returned more results than max_results.
     */
    nextCursor?: string | undefined;
    aggregate?: Array<AggregateEnum> | Array<Aggregate> | undefined;
    /**
     * The additional fields to include in the response. Note that the fields parameter takes precedence over this parameter.
     */
    withField?: Array<WithField> | undefined;
    /**
     * A comma-separated list of fields to include in the response.
     *
     * @remarks
     * Notes:
     * - This parameter takes precedence over the with_field parameter, so if you want any additional asset attributes returned, make sure to also include them in this list (e.g., tags or context).
     * - The following fields are always included in the response: public_id, asset_id, asset_folder, created_at, status, type, and resource_type.
     */
    fields?: string | undefined;
};
/** @internal */
export declare const SearchParametersType$inboundSchema: z.ZodNativeEnum<typeof SearchParametersType>;
/** @internal */
export declare const SearchParametersType$outboundSchema: z.ZodNativeEnum<typeof SearchParametersType>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace SearchParametersType$ {
    /** @deprecated use `SearchParametersType$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<{
        readonly Bytes: "bytes";
        readonly ImagePixels: "image_pixels";
        readonly VideoPixels: "video_pixels";
        readonly Duration: "duration";
    }>;
    /** @deprecated use `SearchParametersType$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<{
        readonly Bytes: "bytes";
        readonly ImagePixels: "image_pixels";
        readonly VideoPixels: "video_pixels";
        readonly Duration: "duration";
    }>;
}
/** @internal */
export declare const SearchParametersRange$inboundSchema: z.ZodType<SearchParametersRange, z.ZodTypeDef, unknown>;
/** @internal */
export type SearchParametersRange$Outbound = {
    from?: number | undefined;
    to?: number | undefined;
};
/** @internal */
export declare const SearchParametersRange$outboundSchema: z.ZodType<SearchParametersRange$Outbound, z.ZodTypeDef, SearchParametersRange>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace SearchParametersRange$ {
    /** @deprecated use `SearchParametersRange$inboundSchema` instead. */
    const inboundSchema: z.ZodType<SearchParametersRange, z.ZodTypeDef, unknown>;
    /** @deprecated use `SearchParametersRange$outboundSchema` instead. */
    const outboundSchema: z.ZodType<SearchParametersRange$Outbound, z.ZodTypeDef, SearchParametersRange>;
    /** @deprecated use `SearchParametersRange$Outbound` instead. */
    type Outbound = SearchParametersRange$Outbound;
}
export declare function searchParametersRangeToJSON(searchParametersRange: SearchParametersRange): string;
export declare function searchParametersRangeFromJSON(jsonString: string): SafeParseResult<SearchParametersRange, SDKValidationError>;
/** @internal */
export declare const Aggregate$inboundSchema: z.ZodType<Aggregate, z.ZodTypeDef, unknown>;
/** @internal */
export type Aggregate$Outbound = {
    type: string;
    ranges: Array<SearchParametersRange$Outbound>;
};
/** @internal */
export declare const Aggregate$outboundSchema: z.ZodType<Aggregate$Outbound, z.ZodTypeDef, Aggregate>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Aggregate$ {
    /** @deprecated use `Aggregate$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Aggregate, z.ZodTypeDef, unknown>;
    /** @deprecated use `Aggregate$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Aggregate$Outbound, z.ZodTypeDef, Aggregate>;
    /** @deprecated use `Aggregate$Outbound` instead. */
    type Outbound = Aggregate$Outbound;
}
export declare function aggregateToJSON(aggregate: Aggregate): string;
export declare function aggregateFromJSON(jsonString: string): SafeParseResult<Aggregate, SDKValidationError>;
/** @internal */
export declare const AggregateEnum$inboundSchema: z.ZodNativeEnum<typeof AggregateEnum>;
/** @internal */
export declare const AggregateEnum$outboundSchema: z.ZodNativeEnum<typeof AggregateEnum>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace AggregateEnum$ {
    /** @deprecated use `AggregateEnum$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<{
        readonly Format: "format";
        readonly ResourceType: "resource_type";
        readonly Type: "type";
    }>;
    /** @deprecated use `AggregateEnum$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<{
        readonly Format: "format";
        readonly ResourceType: "resource_type";
        readonly Type: "type";
    }>;
}
/** @internal */
export declare const AggregateUnion$inboundSchema: z.ZodType<AggregateUnion, z.ZodTypeDef, unknown>;
/** @internal */
export type AggregateUnion$Outbound = Array<string> | Array<Aggregate$Outbound>;
/** @internal */
export declare const AggregateUnion$outboundSchema: z.ZodType<AggregateUnion$Outbound, z.ZodTypeDef, AggregateUnion>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace AggregateUnion$ {
    /** @deprecated use `AggregateUnion$inboundSchema` instead. */
    const inboundSchema: z.ZodType<AggregateUnion, z.ZodTypeDef, unknown>;
    /** @deprecated use `AggregateUnion$outboundSchema` instead. */
    const outboundSchema: z.ZodType<AggregateUnion$Outbound, z.ZodTypeDef, AggregateUnion>;
    /** @deprecated use `AggregateUnion$Outbound` instead. */
    type Outbound = AggregateUnion$Outbound;
}
export declare function aggregateUnionToJSON(aggregateUnion: AggregateUnion): string;
export declare function aggregateUnionFromJSON(jsonString: string): SafeParseResult<AggregateUnion, SDKValidationError>;
/** @internal */
export declare const WithField$inboundSchema: z.ZodNativeEnum<typeof WithField>;
/** @internal */
export declare const WithField$outboundSchema: z.ZodNativeEnum<typeof WithField>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace WithField$ {
    /** @deprecated use `WithField$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<{
        readonly Context: "context";
        readonly Tags: "tags";
        readonly ImageMetadata: "image_metadata";
        readonly ImageAnalysis: "image_analysis";
        readonly Metadata: "metadata";
        readonly QualityAnalysis: "quality_analysis";
        readonly AccessibilityAnalysis: "accessibility_analysis";
    }>;
    /** @deprecated use `WithField$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<{
        readonly Context: "context";
        readonly Tags: "tags";
        readonly ImageMetadata: "image_metadata";
        readonly ImageAnalysis: "image_analysis";
        readonly Metadata: "metadata";
        readonly QualityAnalysis: "quality_analysis";
        readonly AccessibilityAnalysis: "accessibility_analysis";
    }>;
}
/** @internal */
export declare const SearchParameters$inboundSchema: z.ZodType<SearchParameters, z.ZodTypeDef, unknown>;
/** @internal */
export type SearchParameters$Outbound = {
    expression?: string | undefined;
    sort_by?: Array<string> | undefined;
    max_results?: number | undefined;
    next_cursor?: string | undefined;
    aggregate?: Array<string> | Array<Aggregate$Outbound> | undefined;
    with_field?: Array<string> | undefined;
    fields?: string | undefined;
};
/** @internal */
export declare const SearchParameters$outboundSchema: z.ZodType<SearchParameters$Outbound, z.ZodTypeDef, SearchParameters>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace SearchParameters$ {
    /** @deprecated use `SearchParameters$inboundSchema` instead. */
    const inboundSchema: z.ZodType<SearchParameters, z.ZodTypeDef, unknown>;
    /** @deprecated use `SearchParameters$outboundSchema` instead. */
    const outboundSchema: z.ZodType<SearchParameters$Outbound, z.ZodTypeDef, SearchParameters>;
    /** @deprecated use `SearchParameters$Outbound` instead. */
    type Outbound = SearchParameters$Outbound;
}
export declare function searchParametersToJSON(searchParameters: SearchParameters): string;
export declare function searchParametersFromJSON(jsonString: string): SafeParseResult<SearchParameters, SDKValidationError>;
//# sourceMappingURL=searchparameters.d.ts.map