import * as z from "zod/v4";
import { ClosedEnum, OpenEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { CompoundFilter, CompoundFilter$Outbound } from "./compoundfilter.js";
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
export declare const FiltersType: {
    readonly Eq: "eq";
    readonly Ne: "ne";
    readonly Gt: "gt";
    readonly Gte: "gte";
    readonly Lt: "lt";
    readonly Lte: "lte";
};
export type FiltersType = OpenEnum<typeof FiltersType>;
export type FileSearchServerToolValue1 = string | number;
export type FileSearchServerToolValue2 = string | number | boolean | Array<string | number>;
export type Filters = {
    key: string;
    type: FiltersType;
    value: string | number | boolean | Array<string | number>;
};
export type FiltersUnion = Filters | CompoundFilter;
export declare const Ranker: {
    readonly Auto: "auto";
    readonly Default20241115: "default-2024-11-15";
};
export type Ranker = OpenEnum<typeof Ranker>;
export type RankingOptions = {
    ranker?: Ranker | undefined;
    scoreThreshold?: number | undefined;
};
export declare const TypeFileSearch: {
    readonly FileSearch: "file_search";
};
export type TypeFileSearch = ClosedEnum<typeof TypeFileSearch>;
/**
 * File search tool configuration
 */
export type FileSearchServerTool = {
    filters?: Filters | CompoundFilter | null | undefined;
    maxNumResults?: number | undefined;
    rankingOptions?: RankingOptions | undefined;
    type: TypeFileSearch;
    vectorStoreIds: Array<string>;
};
/** @internal */
export declare const FiltersType$inboundSchema: z.ZodType<FiltersType, unknown>;
/** @internal */
export declare const FiltersType$outboundSchema: z.ZodType<string, FiltersType>;
/** @internal */
export declare const FileSearchServerToolValue1$inboundSchema: z.ZodType<FileSearchServerToolValue1, unknown>;
/** @internal */
export type FileSearchServerToolValue1$Outbound = string | number;
/** @internal */
export declare const FileSearchServerToolValue1$outboundSchema: z.ZodType<FileSearchServerToolValue1$Outbound, FileSearchServerToolValue1>;
export declare function fileSearchServerToolValue1ToJSON(fileSearchServerToolValue1: FileSearchServerToolValue1): string;
export declare function fileSearchServerToolValue1FromJSON(jsonString: string): SafeParseResult<FileSearchServerToolValue1, SDKValidationError>;
/** @internal */
export declare const FileSearchServerToolValue2$inboundSchema: z.ZodType<FileSearchServerToolValue2, unknown>;
/** @internal */
export type FileSearchServerToolValue2$Outbound = string | number | boolean | Array<string | number>;
/** @internal */
export declare const FileSearchServerToolValue2$outboundSchema: z.ZodType<FileSearchServerToolValue2$Outbound, FileSearchServerToolValue2>;
export declare function fileSearchServerToolValue2ToJSON(fileSearchServerToolValue2: FileSearchServerToolValue2): string;
export declare function fileSearchServerToolValue2FromJSON(jsonString: string): SafeParseResult<FileSearchServerToolValue2, SDKValidationError>;
/** @internal */
export declare const Filters$inboundSchema: z.ZodType<Filters, unknown>;
/** @internal */
export type Filters$Outbound = {
    key: string;
    type: string;
    value: string | number | boolean | Array<string | number>;
};
/** @internal */
export declare const Filters$outboundSchema: z.ZodType<Filters$Outbound, Filters>;
export declare function filtersToJSON(filters: Filters): string;
export declare function filtersFromJSON(jsonString: string): SafeParseResult<Filters, SDKValidationError>;
/** @internal */
export declare const FiltersUnion$inboundSchema: z.ZodType<FiltersUnion, unknown>;
/** @internal */
export type FiltersUnion$Outbound = Filters$Outbound | CompoundFilter$Outbound;
/** @internal */
export declare const FiltersUnion$outboundSchema: z.ZodType<FiltersUnion$Outbound, FiltersUnion>;
export declare function filtersUnionToJSON(filtersUnion: FiltersUnion): string;
export declare function filtersUnionFromJSON(jsonString: string): SafeParseResult<FiltersUnion, SDKValidationError>;
/** @internal */
export declare const Ranker$inboundSchema: z.ZodType<Ranker, unknown>;
/** @internal */
export declare const Ranker$outboundSchema: z.ZodType<string, Ranker>;
/** @internal */
export declare const RankingOptions$inboundSchema: z.ZodType<RankingOptions, unknown>;
/** @internal */
export type RankingOptions$Outbound = {
    ranker?: string | undefined;
    score_threshold?: number | undefined;
};
/** @internal */
export declare const RankingOptions$outboundSchema: z.ZodType<RankingOptions$Outbound, RankingOptions>;
export declare function rankingOptionsToJSON(rankingOptions: RankingOptions): string;
export declare function rankingOptionsFromJSON(jsonString: string): SafeParseResult<RankingOptions, SDKValidationError>;
/** @internal */
export declare const TypeFileSearch$inboundSchema: z.ZodEnum<typeof TypeFileSearch>;
/** @internal */
export declare const TypeFileSearch$outboundSchema: z.ZodEnum<typeof TypeFileSearch>;
/** @internal */
export declare const FileSearchServerTool$inboundSchema: z.ZodType<FileSearchServerTool, unknown>;
/** @internal */
export type FileSearchServerTool$Outbound = {
    filters?: Filters$Outbound | CompoundFilter$Outbound | null | undefined;
    max_num_results?: number | undefined;
    ranking_options?: RankingOptions$Outbound | undefined;
    type: string;
    vector_store_ids: Array<string>;
};
/** @internal */
export declare const FileSearchServerTool$outboundSchema: z.ZodType<FileSearchServerTool$Outbound, FileSearchServerTool>;
export declare function fileSearchServerToolToJSON(fileSearchServerTool: FileSearchServerTool): string;
export declare function fileSearchServerToolFromJSON(jsonString: string): SafeParseResult<FileSearchServerTool, SDKValidationError>;
//# sourceMappingURL=filesearchservertool.d.ts.map