import * as z from "zod/v4";
import { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
import { ToolCallStatus } from "./toolcallstatus.js";
export declare const OutputWebSearchServerToolItemTypeURL: {
    readonly Url: "url";
};
export type OutputWebSearchServerToolItemTypeURL = ClosedEnum<typeof OutputWebSearchServerToolItemTypeURL>;
export type OutputWebSearchServerToolItemSource = {
    type: OutputWebSearchServerToolItemTypeURL;
    url: string;
};
export declare const OutputWebSearchServerToolItemTypeSearch: {
    readonly Search: "search";
};
export type OutputWebSearchServerToolItemTypeSearch = ClosedEnum<typeof OutputWebSearchServerToolItemTypeSearch>;
/**
 * The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider.
 */
export type OutputWebSearchServerToolItemAction = {
    query: string;
    sources?: Array<OutputWebSearchServerToolItemSource> | undefined;
    type: OutputWebSearchServerToolItemTypeSearch;
};
export declare const OutputWebSearchServerToolItemTypeOpenrouterWebSearch: {
    readonly OpenrouterWebSearch: "openrouter:web_search";
};
export type OutputWebSearchServerToolItemTypeOpenrouterWebSearch = ClosedEnum<typeof OutputWebSearchServerToolItemTypeOpenrouterWebSearch>;
/**
 * An openrouter:web_search server tool output item
 */
export type OutputWebSearchServerToolItem = {
    /**
     * The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider.
     */
    action?: OutputWebSearchServerToolItemAction | undefined;
    id?: string | undefined;
    status: ToolCallStatus;
    type: OutputWebSearchServerToolItemTypeOpenrouterWebSearch;
};
/** @internal */
export declare const OutputWebSearchServerToolItemTypeURL$inboundSchema: z.ZodEnum<typeof OutputWebSearchServerToolItemTypeURL>;
/** @internal */
export declare const OutputWebSearchServerToolItemTypeURL$outboundSchema: z.ZodEnum<typeof OutputWebSearchServerToolItemTypeURL>;
/** @internal */
export declare const OutputWebSearchServerToolItemSource$inboundSchema: z.ZodType<OutputWebSearchServerToolItemSource, unknown>;
/** @internal */
export type OutputWebSearchServerToolItemSource$Outbound = {
    type: string;
    url: string;
};
/** @internal */
export declare const OutputWebSearchServerToolItemSource$outboundSchema: z.ZodType<OutputWebSearchServerToolItemSource$Outbound, OutputWebSearchServerToolItemSource>;
export declare function outputWebSearchServerToolItemSourceToJSON(outputWebSearchServerToolItemSource: OutputWebSearchServerToolItemSource): string;
export declare function outputWebSearchServerToolItemSourceFromJSON(jsonString: string): SafeParseResult<OutputWebSearchServerToolItemSource, SDKValidationError>;
/** @internal */
export declare const OutputWebSearchServerToolItemTypeSearch$inboundSchema: z.ZodEnum<typeof OutputWebSearchServerToolItemTypeSearch>;
/** @internal */
export declare const OutputWebSearchServerToolItemTypeSearch$outboundSchema: z.ZodEnum<typeof OutputWebSearchServerToolItemTypeSearch>;
/** @internal */
export declare const OutputWebSearchServerToolItemAction$inboundSchema: z.ZodType<OutputWebSearchServerToolItemAction, unknown>;
/** @internal */
export type OutputWebSearchServerToolItemAction$Outbound = {
    query: string;
    sources?: Array<OutputWebSearchServerToolItemSource$Outbound> | undefined;
    type: string;
};
/** @internal */
export declare const OutputWebSearchServerToolItemAction$outboundSchema: z.ZodType<OutputWebSearchServerToolItemAction$Outbound, OutputWebSearchServerToolItemAction>;
export declare function outputWebSearchServerToolItemActionToJSON(outputWebSearchServerToolItemAction: OutputWebSearchServerToolItemAction): string;
export declare function outputWebSearchServerToolItemActionFromJSON(jsonString: string): SafeParseResult<OutputWebSearchServerToolItemAction, SDKValidationError>;
/** @internal */
export declare const OutputWebSearchServerToolItemTypeOpenrouterWebSearch$inboundSchema: z.ZodEnum<typeof OutputWebSearchServerToolItemTypeOpenrouterWebSearch>;
/** @internal */
export declare const OutputWebSearchServerToolItemTypeOpenrouterWebSearch$outboundSchema: z.ZodEnum<typeof OutputWebSearchServerToolItemTypeOpenrouterWebSearch>;
/** @internal */
export declare const OutputWebSearchServerToolItem$inboundSchema: z.ZodType<OutputWebSearchServerToolItem, unknown>;
/** @internal */
export type OutputWebSearchServerToolItem$Outbound = {
    action?: OutputWebSearchServerToolItemAction$Outbound | undefined;
    id?: string | undefined;
    status: string;
    type: string;
};
/** @internal */
export declare const OutputWebSearchServerToolItem$outboundSchema: z.ZodType<OutputWebSearchServerToolItem$Outbound, OutputWebSearchServerToolItem>;
export declare function outputWebSearchServerToolItemToJSON(outputWebSearchServerToolItem: OutputWebSearchServerToolItem): string;
export declare function outputWebSearchServerToolItemFromJSON(jsonString: string): SafeParseResult<OutputWebSearchServerToolItem, SDKValidationError>;
//# sourceMappingURL=outputwebsearchservertoolitem.d.ts.map