import { z } from 'zod';

declare const ChatUsage: z.ZodObject<{
    promptTokens: z.ZodNumber;
    completionTokens: z.ZodNumber;
    totalTokens: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    promptTokens: number;
    completionTokens: number;
    totalTokens: number;
}, {
    promptTokens: number;
    completionTokens: number;
    totalTokens: number;
}>;
type ChatUsageType = z.infer<typeof ChatUsage>;
declare const ChatBaseLogProb: z.ZodObject<{
    token: z.ZodString;
    logProb: z.ZodNumber;
    bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
}, "strip", z.ZodTypeAny, {
    token: string;
    logProb: number;
    bytes: number[] | null;
}, {
    token: string;
    logProb: number;
    bytes: number[] | null;
}>;
type ChatBaseLogProbType = z.infer<typeof ChatBaseLogProb>;
declare const ChatLogProb: z.ZodObject<z.objectUtil.extendShape<{
    token: z.ZodString;
    logProb: z.ZodNumber;
    bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
}, {
    topLogProbs: z.ZodArray<z.ZodObject<{
        token: z.ZodString;
        logProb: z.ZodNumber;
        bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
    }, "strip", z.ZodTypeAny, {
        token: string;
        logProb: number;
        bytes: number[] | null;
    }, {
        token: string;
        logProb: number;
        bytes: number[] | null;
    }>, "many">;
}>, "strip", z.ZodTypeAny, {
    token: string;
    logProb: number;
    bytes: number[] | null;
    topLogProbs: {
        token: string;
        logProb: number;
        bytes: number[] | null;
    }[];
}, {
    token: string;
    logProb: number;
    bytes: number[] | null;
    topLogProbs: {
        token: string;
        logProb: number;
        bytes: number[] | null;
    }[];
}>;
type ChatLogProbType = z.infer<typeof ChatLogProb>;
declare const ChatLogProbs: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
    token: z.ZodString;
    logProb: z.ZodNumber;
    bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
}, {
    topLogProbs: z.ZodArray<z.ZodObject<{
        token: z.ZodString;
        logProb: z.ZodNumber;
        bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
    }, "strip", z.ZodTypeAny, {
        token: string;
        logProb: number;
        bytes: number[] | null;
    }, {
        token: string;
        logProb: number;
        bytes: number[] | null;
    }>, "many">;
}>, "strip", z.ZodTypeAny, {
    token: string;
    logProb: number;
    bytes: number[] | null;
    topLogProbs: {
        token: string;
        logProb: number;
        bytes: number[] | null;
    }[];
}, {
    token: string;
    logProb: number;
    bytes: number[] | null;
    topLogProbs: {
        token: string;
        logProb: number;
        bytes: number[] | null;
    }[];
}>, "many">;
type ChatLogProbsType = z.infer<typeof ChatLogProbs>;
declare const ChatResponse: z.ZodObject<{
    messages: z.ZodArray<z.ZodObject<{
        role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
        content: z.ZodArray<z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
            modality: z.ZodLiteral<"text">;
            value: z.ZodString;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            value: string;
            modality: "text";
            metadata?: undefined;
        }, {
            value: string;
            modality: "text";
            metadata?: undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"image">;
            detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
            value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
                type: z.ZodLiteral<"base64">;
                base64: z.ZodString;
                mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
            }, "strip", z.ZodTypeAny, {
                type: "base64";
                base64: string;
                mediaType: "png" | "jpeg" | "webp" | "gif";
            }, {
                type: "base64";
                base64: string;
                mediaType: "png" | "jpeg" | "webp" | "gif";
            }>, z.ZodObject<{
                type: z.ZodLiteral<"url">;
                url: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "url";
                url: string;
            }, {
                type: "url";
                url: string;
            }>]>;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            value: {
                type: "base64";
                base64: string;
                mediaType: "png" | "jpeg" | "webp" | "gif";
            } | {
                type: "url";
                url: string;
            };
            modality: "image";
            detail: "low" | "medium" | "high" | "auto";
            metadata?: undefined;
        }, {
            value: {
                type: "base64";
                base64: string;
                mediaType: "png" | "jpeg" | "webp" | "gif";
            } | {
                type: "url";
                url: string;
            };
            modality: "image";
            detail: "low" | "medium" | "high" | "auto";
            metadata?: undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"pdf">;
            value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
                type: z.ZodLiteral<"base64">;
                base64: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "base64";
                base64: string;
            }, {
                type: "base64";
                base64: string;
            }>, z.ZodObject<{
                type: z.ZodLiteral<"url">;
                url: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "url";
                url: string;
            }, {
                type: "url";
                url: string;
            }>]>;
            file: z.ZodObject<{
                name: z.ZodString;
                id: z.ZodString;
                size: z.ZodOptional<z.ZodNumber>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                id: string;
                size?: number | undefined;
            }, {
                name: string;
                id: string;
                size?: number | undefined;
            }>;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            value: {
                type: "base64";
                base64: string;
            } | {
                type: "url";
                url: string;
            };
            modality: "pdf";
            file: {
                name: string;
                id: string;
                size?: number | undefined;
            };
            metadata?: undefined;
        }, {
            value: {
                type: "base64";
                base64: string;
            } | {
                type: "url";
                url: string;
            };
            modality: "pdf";
            file: {
                name: string;
                id: string;
                size?: number | undefined;
            };
            metadata?: undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"tool-call">;
            index: z.ZodNumber;
            id: z.ZodString;
            name: z.ZodString;
            arguments: z.ZodString;
            serverName: z.ZodOptional<z.ZodString>;
            thoughtSignature: z.ZodOptional<z.ZodString>;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            modality: "tool-call";
            name: string;
            id: string;
            index: number;
            arguments: string;
            metadata?: undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        }, {
            modality: "tool-call";
            name: string;
            id: string;
            index: number;
            arguments: string;
            metadata?: undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"tool-response">;
            index: z.ZodNumber;
            id: z.ZodString;
            name: z.ZodString;
            data: z.ZodString;
            apiResponse: z.ZodOptional<z.ZodObject<{
                statusCode: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                statusCode: number;
            }, {
                statusCode: number;
            }>>;
            metadata: z.ZodTypeAny;
        }, "strip", z.ZodTypeAny, {
            modality: "tool-response";
            name: string;
            id: string;
            data: string;
            index: number;
            metadata?: any;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        }, {
            modality: "tool-response";
            name: string;
            id: string;
            data: string;
            index: number;
            metadata?: any;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"reasoning">;
            value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
                type: z.ZodLiteral<"thinking">;
                thinking: z.ZodString;
                signature: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "thinking";
                thinking: string;
                signature: string;
            }, {
                type: "thinking";
                thinking: string;
                signature: string;
            }>, z.ZodObject<{
                type: z.ZodLiteral<"redacted">;
                data: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "redacted";
                data: string;
            }, {
                type: "redacted";
                data: string;
            }>]>;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            value: {
                type: "thinking";
                thinking: string;
                signature: string;
            } | {
                type: "redacted";
                data: string;
            };
            modality: "reasoning";
            metadata?: undefined;
        }, {
            value: {
                type: "thinking";
                thinking: string;
                signature: string;
            } | {
                type: "redacted";
                data: string;
            };
            modality: "reasoning";
            metadata?: undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"error">;
            value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
                type: z.ZodLiteral<"safety">;
                value: z.ZodObject<{
                    category: z.ZodString;
                    probability: z.ZodString;
                    blocked: z.ZodBoolean;
                    message: z.ZodString;
                }, "strip", z.ZodTypeAny, {
                    message: string;
                    category: string;
                    probability: string;
                    blocked: boolean;
                }, {
                    message: string;
                    category: string;
                    probability: string;
                    blocked: boolean;
                }>;
            }, "strip", z.ZodTypeAny, {
                type: "safety";
                value: {
                    message: string;
                    category: string;
                    probability: string;
                    blocked: boolean;
                };
            }, {
                type: "safety";
                value: {
                    message: string;
                    category: string;
                    probability: string;
                    blocked: boolean;
                };
            }>, z.ZodObject<{
                type: z.ZodLiteral<"response_error">;
                value: z.ZodObject<{
                    code: z.ZodString;
                    message: z.ZodString;
                    provider: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    code: string;
                    message: string;
                    provider?: string | undefined;
                }, {
                    code: string;
                    message: string;
                    provider?: string | undefined;
                }>;
            }, "strip", z.ZodTypeAny, {
                type: "response_error";
                value: {
                    code: string;
                    message: string;
                    provider?: string | undefined;
                };
            }, {
                type: "response_error";
                value: {
                    code: string;
                    message: string;
                    provider?: string | undefined;
                };
            }>]>;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            value: {
                type: "safety";
                value: {
                    message: string;
                    category: string;
                    probability: string;
                    blocked: boolean;
                };
            } | {
                type: "response_error";
                value: {
                    code: string;
                    message: string;
                    provider?: string | undefined;
                };
            };
            modality: "error";
            metadata?: undefined;
        }, {
            value: {
                type: "safety";
                value: {
                    message: string;
                    category: string;
                    probability: string;
                    blocked: boolean;
                };
            } | {
                type: "response_error";
                value: {
                    code: string;
                    message: string;
                    provider?: string | undefined;
                };
            };
            modality: "error";
            metadata?: undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"search-result">;
            value: z.ZodObject<{
                type: z.ZodOptional<z.ZodString>;
                query: z.ZodString;
                responses: z.ZodArray<z.ZodObject<{
                    source: z.ZodString;
                    url: z.ZodString;
                    title: z.ZodString;
                    snippet: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    url: string;
                    source: string;
                    title: string;
                    snippet?: string | undefined;
                }, {
                    url: string;
                    source: string;
                    title: string;
                    snippet?: string | undefined;
                }>, "many">;
                references: z.ZodArray<z.ZodObject<{
                    text: z.ZodString;
                    responseIndices: z.ZodArray<z.ZodNumber, "many">;
                    startIndex: z.ZodOptional<z.ZodNumber>;
                    endIndex: z.ZodOptional<z.ZodNumber>;
                    confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
                }, "strip", z.ZodTypeAny, {
                    text: string;
                    responseIndices: number[];
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }, {
                    text: string;
                    responseIndices: number[];
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }>, "many">;
            }, "strip", z.ZodTypeAny, {
                query: string;
                responses: {
                    url: string;
                    source: string;
                    title: string;
                    snippet?: string | undefined;
                }[];
                references: {
                    text: string;
                    responseIndices: number[];
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[];
                type?: string | undefined;
            }, {
                query: string;
                responses: {
                    url: string;
                    source: string;
                    title: string;
                    snippet?: string | undefined;
                }[];
                references: {
                    text: string;
                    responseIndices: number[];
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[];
                type?: string | undefined;
            }>;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            value: {
                query: string;
                responses: {
                    url: string;
                    source: string;
                    title: string;
                    snippet?: string | undefined;
                }[];
                references: {
                    text: string;
                    responseIndices: number[];
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[];
                type?: string | undefined;
            };
            modality: "search-result";
            metadata?: undefined;
        }, {
            value: {
                query: string;
                responses: {
                    url: string;
                    source: string;
                    title: string;
                    snippet?: string | undefined;
                }[];
                references: {
                    text: string;
                    responseIndices: number[];
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[];
                type?: string | undefined;
            };
            modality: "search-result";
            metadata?: undefined;
        }>]>, "many">;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        role: "system" | "user" | "assistant" | "tool";
        content: ({
            modality: "tool-response";
            name: string;
            id: string;
            data: string;
            index: number;
            metadata?: any;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        } | {
            value: {
                type: "safety";
                value: {
                    message: string;
                    category: string;
                    probability: string;
                    blocked: boolean;
                };
            } | {
                type: "response_error";
                value: {
                    code: string;
                    message: string;
                    provider?: string | undefined;
                };
            };
            modality: "error";
            metadata?: undefined;
        } | {
            value: {
                query: string;
                responses: {
                    url: string;
                    source: string;
                    title: string;
                    snippet?: string | undefined;
                }[];
                references: {
                    text: string;
                    responseIndices: number[];
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[];
                type?: string | undefined;
            };
            modality: "search-result";
            metadata?: undefined;
        } | {
            value: string;
            modality: "text";
            metadata?: undefined;
        } | {
            value: {
                type: "base64";
                base64: string;
                mediaType: "png" | "jpeg" | "webp" | "gif";
            } | {
                type: "url";
                url: string;
            };
            modality: "image";
            detail: "low" | "medium" | "high" | "auto";
            metadata?: undefined;
        } | {
            value: {
                type: "base64";
                base64: string;
            } | {
                type: "url";
                url: string;
            };
            modality: "pdf";
            file: {
                name: string;
                id: string;
                size?: number | undefined;
            };
            metadata?: undefined;
        } | {
            modality: "tool-call";
            name: string;
            id: string;
            index: number;
            arguments: string;
            metadata?: undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        } | {
            value: {
                type: "thinking";
                thinking: string;
                signature: string;
            } | {
                type: "redacted";
                data: string;
            };
            modality: "reasoning";
            metadata?: undefined;
        })[];
        metadata?: undefined;
    }, {
        role: "system" | "user" | "assistant" | "tool";
        content: ({
            modality: "tool-response";
            name: string;
            id: string;
            data: string;
            index: number;
            metadata?: any;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        } | {
            value: {
                type: "safety";
                value: {
                    message: string;
                    category: string;
                    probability: string;
                    blocked: boolean;
                };
            } | {
                type: "response_error";
                value: {
                    code: string;
                    message: string;
                    provider?: string | undefined;
                };
            };
            modality: "error";
            metadata?: undefined;
        } | {
            value: {
                query: string;
                responses: {
                    url: string;
                    source: string;
                    title: string;
                    snippet?: string | undefined;
                }[];
                references: {
                    text: string;
                    responseIndices: number[];
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[];
                type?: string | undefined;
            };
            modality: "search-result";
            metadata?: undefined;
        } | {
            value: string;
            modality: "text";
            metadata?: undefined;
        } | {
            value: {
                type: "base64";
                base64: string;
                mediaType: "png" | "jpeg" | "webp" | "gif";
            } | {
                type: "url";
                url: string;
            };
            modality: "image";
            detail: "low" | "medium" | "high" | "auto";
            metadata?: undefined;
        } | {
            value: {
                type: "base64";
                base64: string;
            } | {
                type: "url";
                url: string;
            };
            modality: "pdf";
            file: {
                name: string;
                id: string;
                size?: number | undefined;
            };
            metadata?: undefined;
        } | {
            modality: "tool-call";
            name: string;
            id: string;
            index: number;
            arguments: string;
            metadata?: undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        } | {
            value: {
                type: "thinking";
                thinking: string;
                signature: string;
            } | {
                type: "redacted";
                data: string;
            };
            modality: "reasoning";
            metadata?: undefined;
        })[];
        metadata?: undefined;
    }>, "many">;
    usage: z.ZodOptional<z.ZodObject<{
        promptTokens: z.ZodNumber;
        completionTokens: z.ZodNumber;
        totalTokens: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        promptTokens: number;
        completionTokens: number;
        totalTokens: number;
    }, {
        promptTokens: number;
        completionTokens: number;
        totalTokens: number;
    }>>;
    logProbs: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
        token: z.ZodString;
        logProb: z.ZodNumber;
        bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
    }, {
        topLogProbs: z.ZodArray<z.ZodObject<{
            token: z.ZodString;
            logProb: z.ZodNumber;
            bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }, {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }>, "many">;
    }>, "strip", z.ZodTypeAny, {
        token: string;
        logProb: number;
        bytes: number[] | null;
        topLogProbs: {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }[];
    }, {
        token: string;
        logProb: number;
        bytes: number[] | null;
        topLogProbs: {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }[];
    }>, "many">>;
}, "strip", z.ZodTypeAny, {
    messages: {
        role: "system" | "user" | "assistant" | "tool";
        content: ({
            modality: "tool-response";
            name: string;
            id: string;
            data: string;
            index: number;
            metadata?: any;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        } | {
            value: {
                type: "safety";
                value: {
                    message: string;
                    category: string;
                    probability: string;
                    blocked: boolean;
                };
            } | {
                type: "response_error";
                value: {
                    code: string;
                    message: string;
                    provider?: string | undefined;
                };
            };
            modality: "error";
            metadata?: undefined;
        } | {
            value: {
                query: string;
                responses: {
                    url: string;
                    source: string;
                    title: string;
                    snippet?: string | undefined;
                }[];
                references: {
                    text: string;
                    responseIndices: number[];
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[];
                type?: string | undefined;
            };
            modality: "search-result";
            metadata?: undefined;
        } | {
            value: string;
            modality: "text";
            metadata?: undefined;
        } | {
            value: {
                type: "base64";
                base64: string;
                mediaType: "png" | "jpeg" | "webp" | "gif";
            } | {
                type: "url";
                url: string;
            };
            modality: "image";
            detail: "low" | "medium" | "high" | "auto";
            metadata?: undefined;
        } | {
            value: {
                type: "base64";
                base64: string;
            } | {
                type: "url";
                url: string;
            };
            modality: "pdf";
            file: {
                name: string;
                id: string;
                size?: number | undefined;
            };
            metadata?: undefined;
        } | {
            modality: "tool-call";
            name: string;
            id: string;
            index: number;
            arguments: string;
            metadata?: undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        } | {
            value: {
                type: "thinking";
                thinking: string;
                signature: string;
            } | {
                type: "redacted";
                data: string;
            };
            modality: "reasoning";
            metadata?: undefined;
        })[];
        metadata?: undefined;
    }[];
    usage?: {
        promptTokens: number;
        completionTokens: number;
        totalTokens: number;
    } | undefined;
    logProbs?: {
        token: string;
        logProb: number;
        bytes: number[] | null;
        topLogProbs: {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }[];
    }[] | undefined;
}, {
    messages: {
        role: "system" | "user" | "assistant" | "tool";
        content: ({
            modality: "tool-response";
            name: string;
            id: string;
            data: string;
            index: number;
            metadata?: any;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        } | {
            value: {
                type: "safety";
                value: {
                    message: string;
                    category: string;
                    probability: string;
                    blocked: boolean;
                };
            } | {
                type: "response_error";
                value: {
                    code: string;
                    message: string;
                    provider?: string | undefined;
                };
            };
            modality: "error";
            metadata?: undefined;
        } | {
            value: {
                query: string;
                responses: {
                    url: string;
                    source: string;
                    title: string;
                    snippet?: string | undefined;
                }[];
                references: {
                    text: string;
                    responseIndices: number[];
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[];
                type?: string | undefined;
            };
            modality: "search-result";
            metadata?: undefined;
        } | {
            value: string;
            modality: "text";
            metadata?: undefined;
        } | {
            value: {
                type: "base64";
                base64: string;
                mediaType: "png" | "jpeg" | "webp" | "gif";
            } | {
                type: "url";
                url: string;
            };
            modality: "image";
            detail: "low" | "medium" | "high" | "auto";
            metadata?: undefined;
        } | {
            value: {
                type: "base64";
                base64: string;
            } | {
                type: "url";
                url: string;
            };
            modality: "pdf";
            file: {
                name: string;
                id: string;
                size?: number | undefined;
            };
            metadata?: undefined;
        } | {
            modality: "tool-call";
            name: string;
            id: string;
            index: number;
            arguments: string;
            metadata?: undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        } | {
            value: {
                type: "thinking";
                thinking: string;
                signature: string;
            } | {
                type: "redacted";
                data: string;
            };
            modality: "reasoning";
            metadata?: undefined;
        })[];
        metadata?: undefined;
    }[];
    usage?: {
        promptTokens: number;
        completionTokens: number;
        totalTokens: number;
    } | undefined;
    logProbs?: {
        token: string;
        logProb: number;
        bytes: number[] | null;
        topLogProbs: {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }[];
    }[] | undefined;
}>;
type ChatResponseType = z.infer<typeof ChatResponse>;
declare const PartialChatUsage: z.ZodObject<{
    promptTokens: z.ZodOptional<z.ZodNumber>;
    completionTokens: z.ZodOptional<z.ZodNumber>;
    totalTokens: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    promptTokens?: number | undefined;
    completionTokens?: number | undefined;
    totalTokens?: number | undefined;
}, {
    promptTokens?: number | undefined;
    completionTokens?: number | undefined;
    totalTokens?: number | undefined;
}>;
type PartialChatUsageType = z.infer<typeof PartialChatUsage>;
declare const PartialChatResponse: z.ZodObject<{
    partialMessages: z.ZodArray<z.ZodObject<{
        role: z.ZodEnum<["assistant"]>;
        partialContent: z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
            modality: z.ZodLiteral<"partial-text">;
            value: z.ZodString;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            value: string;
            modality: "partial-text";
            metadata?: undefined;
        }, {
            value: string;
            modality: "partial-text";
            metadata?: undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"partial-tool-call">;
            index: z.ZodNumber;
            id: z.ZodOptional<z.ZodString>;
            name: z.ZodOptional<z.ZodString>;
            arguments: z.ZodOptional<z.ZodString>;
            serverName: z.ZodOptional<z.ZodString>;
            thoughtSignature: z.ZodOptional<z.ZodString>;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            modality: "partial-tool-call";
            index: number;
            metadata?: undefined;
            name?: string | undefined;
            id?: string | undefined;
            arguments?: string | undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        }, {
            modality: "partial-tool-call";
            index: number;
            metadata?: undefined;
            name?: string | undefined;
            id?: string | undefined;
            arguments?: string | undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"partial-reasoning">;
            value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
                type: z.ZodLiteral<"thinking">;
                thinking: z.ZodOptional<z.ZodString>;
                signature: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                type: "thinking";
                thinking?: string | undefined;
                signature?: string | undefined;
            }, {
                type: "thinking";
                thinking?: string | undefined;
                signature?: string | undefined;
            }>, z.ZodObject<{
                type: z.ZodLiteral<"redacted">;
                data: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                type: "redacted";
                data: string;
            }, {
                type: "redacted";
                data: string;
            }>]>;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            value: {
                type: "redacted";
                data: string;
            } | {
                type: "thinking";
                thinking?: string | undefined;
                signature?: string | undefined;
            };
            modality: "partial-reasoning";
            metadata?: undefined;
        }, {
            value: {
                type: "redacted";
                data: string;
            } | {
                type: "thinking";
                thinking?: string | undefined;
                signature?: string | undefined;
            };
            modality: "partial-reasoning";
            metadata?: undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"partial-tool-response">;
            index: z.ZodNumber;
            id: z.ZodOptional<z.ZodString>;
            name: z.ZodOptional<z.ZodString>;
            data: z.ZodOptional<z.ZodString>;
            apiResponse: z.ZodOptional<z.ZodObject<{
                statusCode: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                statusCode: number;
            }, {
                statusCode: number;
            }>>;
            metadata: z.ZodTypeAny;
        }, "strip", z.ZodTypeAny, {
            modality: "partial-tool-response";
            index: number;
            metadata?: any;
            name?: string | undefined;
            id?: string | undefined;
            data?: string | undefined;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        }, {
            modality: "partial-tool-response";
            index: number;
            metadata?: any;
            name?: string | undefined;
            id?: string | undefined;
            data?: string | undefined;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"partial-error">;
            value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
                type: z.ZodLiteral<"safety">;
                category: z.ZodOptional<z.ZodString>;
                probability: z.ZodOptional<z.ZodString>;
                blocked: z.ZodOptional<z.ZodBoolean>;
                message: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                type: "safety";
                message?: string | undefined;
                category?: string | undefined;
                probability?: string | undefined;
                blocked?: boolean | undefined;
            }, {
                type: "safety";
                message?: string | undefined;
                category?: string | undefined;
                probability?: string | undefined;
                blocked?: boolean | undefined;
            }>, z.ZodObject<{
                type: z.ZodLiteral<"response_error">;
                code: z.ZodOptional<z.ZodString>;
                message: z.ZodOptional<z.ZodString>;
                provider: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                type: "response_error";
                code?: string | undefined;
                message?: string | undefined;
                provider?: string | undefined;
            }, {
                type: "response_error";
                code?: string | undefined;
                message?: string | undefined;
                provider?: string | undefined;
            }>]>;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            value: {
                type: "safety";
                message?: string | undefined;
                category?: string | undefined;
                probability?: string | undefined;
                blocked?: boolean | undefined;
            } | {
                type: "response_error";
                code?: string | undefined;
                message?: string | undefined;
                provider?: string | undefined;
            };
            modality: "partial-error";
            metadata?: undefined;
        }, {
            value: {
                type: "safety";
                message?: string | undefined;
                category?: string | undefined;
                probability?: string | undefined;
                blocked?: boolean | undefined;
            } | {
                type: "response_error";
                code?: string | undefined;
                message?: string | undefined;
                provider?: string | undefined;
            };
            modality: "partial-error";
            metadata?: undefined;
        }>, z.ZodObject<{
            modality: z.ZodLiteral<"partial-search-result">;
            value: z.ZodObject<{
                type: z.ZodOptional<z.ZodString>;
                query: z.ZodOptional<z.ZodString>;
                responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    source: z.ZodOptional<z.ZodString>;
                    url: z.ZodOptional<z.ZodString>;
                    title: z.ZodOptional<z.ZodString>;
                    snippet: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    url?: string | undefined;
                    source?: string | undefined;
                    title?: string | undefined;
                    snippet?: string | undefined;
                }, {
                    url?: string | undefined;
                    source?: string | undefined;
                    title?: string | undefined;
                    snippet?: string | undefined;
                }>, "many">>;
                references: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    text: z.ZodOptional<z.ZodString>;
                    responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
                    startIndex: z.ZodOptional<z.ZodNumber>;
                    endIndex: z.ZodOptional<z.ZodNumber>;
                    confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
                }, "strip", z.ZodTypeAny, {
                    text?: string | undefined;
                    responseIndices?: number[] | undefined;
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }, {
                    text?: string | undefined;
                    responseIndices?: number[] | undefined;
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }>, "many">>;
            }, "strip", z.ZodTypeAny, {
                type?: string | undefined;
                query?: string | undefined;
                responses?: {
                    url?: string | undefined;
                    source?: string | undefined;
                    title?: string | undefined;
                    snippet?: string | undefined;
                }[] | undefined;
                references?: {
                    text?: string | undefined;
                    responseIndices?: number[] | undefined;
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[] | undefined;
            }, {
                type?: string | undefined;
                query?: string | undefined;
                responses?: {
                    url?: string | undefined;
                    source?: string | undefined;
                    title?: string | undefined;
                    snippet?: string | undefined;
                }[] | undefined;
                references?: {
                    text?: string | undefined;
                    responseIndices?: number[] | undefined;
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[] | undefined;
            }>;
            metadata: z.ZodUndefined;
        }, "strip", z.ZodTypeAny, {
            value: {
                type?: string | undefined;
                query?: string | undefined;
                responses?: {
                    url?: string | undefined;
                    source?: string | undefined;
                    title?: string | undefined;
                    snippet?: string | undefined;
                }[] | undefined;
                references?: {
                    text?: string | undefined;
                    responseIndices?: number[] | undefined;
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[] | undefined;
            };
            modality: "partial-search-result";
            metadata?: undefined;
        }, {
            value: {
                type?: string | undefined;
                query?: string | undefined;
                responses?: {
                    url?: string | undefined;
                    source?: string | undefined;
                    title?: string | undefined;
                    snippet?: string | undefined;
                }[] | undefined;
                references?: {
                    text?: string | undefined;
                    responseIndices?: number[] | undefined;
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[] | undefined;
            };
            modality: "partial-search-result";
            metadata?: undefined;
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        role: "assistant";
        partialContent: {
            modality: "partial-tool-response";
            index: number;
            metadata?: any;
            name?: string | undefined;
            id?: string | undefined;
            data?: string | undefined;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        } | {
            value: {
                type: "safety";
                message?: string | undefined;
                category?: string | undefined;
                probability?: string | undefined;
                blocked?: boolean | undefined;
            } | {
                type: "response_error";
                code?: string | undefined;
                message?: string | undefined;
                provider?: string | undefined;
            };
            modality: "partial-error";
            metadata?: undefined;
        } | {
            value: {
                type?: string | undefined;
                query?: string | undefined;
                responses?: {
                    url?: string | undefined;
                    source?: string | undefined;
                    title?: string | undefined;
                    snippet?: string | undefined;
                }[] | undefined;
                references?: {
                    text?: string | undefined;
                    responseIndices?: number[] | undefined;
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[] | undefined;
            };
            modality: "partial-search-result";
            metadata?: undefined;
        } | {
            value: string;
            modality: "partial-text";
            metadata?: undefined;
        } | {
            modality: "partial-tool-call";
            index: number;
            metadata?: undefined;
            name?: string | undefined;
            id?: string | undefined;
            arguments?: string | undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        } | {
            value: {
                type: "redacted";
                data: string;
            } | {
                type: "thinking";
                thinking?: string | undefined;
                signature?: string | undefined;
            };
            modality: "partial-reasoning";
            metadata?: undefined;
        };
        metadata?: undefined;
    }, {
        role: "assistant";
        partialContent: {
            modality: "partial-tool-response";
            index: number;
            metadata?: any;
            name?: string | undefined;
            id?: string | undefined;
            data?: string | undefined;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        } | {
            value: {
                type: "safety";
                message?: string | undefined;
                category?: string | undefined;
                probability?: string | undefined;
                blocked?: boolean | undefined;
            } | {
                type: "response_error";
                code?: string | undefined;
                message?: string | undefined;
                provider?: string | undefined;
            };
            modality: "partial-error";
            metadata?: undefined;
        } | {
            value: {
                type?: string | undefined;
                query?: string | undefined;
                responses?: {
                    url?: string | undefined;
                    source?: string | undefined;
                    title?: string | undefined;
                    snippet?: string | undefined;
                }[] | undefined;
                references?: {
                    text?: string | undefined;
                    responseIndices?: number[] | undefined;
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[] | undefined;
            };
            modality: "partial-search-result";
            metadata?: undefined;
        } | {
            value: string;
            modality: "partial-text";
            metadata?: undefined;
        } | {
            modality: "partial-tool-call";
            index: number;
            metadata?: undefined;
            name?: string | undefined;
            id?: string | undefined;
            arguments?: string | undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        } | {
            value: {
                type: "redacted";
                data: string;
            } | {
                type: "thinking";
                thinking?: string | undefined;
                signature?: string | undefined;
            };
            modality: "partial-reasoning";
            metadata?: undefined;
        };
        metadata?: undefined;
    }>, "many">;
    usage: z.ZodOptional<z.ZodObject<{
        promptTokens: z.ZodOptional<z.ZodNumber>;
        completionTokens: z.ZodOptional<z.ZodNumber>;
        totalTokens: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        promptTokens?: number | undefined;
        completionTokens?: number | undefined;
        totalTokens?: number | undefined;
    }, {
        promptTokens?: number | undefined;
        completionTokens?: number | undefined;
        totalTokens?: number | undefined;
    }>>;
    logProbs: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
        token: z.ZodString;
        logProb: z.ZodNumber;
        bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
    }, {
        topLogProbs: z.ZodArray<z.ZodObject<{
            token: z.ZodString;
            logProb: z.ZodNumber;
            bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }, {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }>, "many">;
    }>, "strip", z.ZodTypeAny, {
        token: string;
        logProb: number;
        bytes: number[] | null;
        topLogProbs: {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }[];
    }, {
        token: string;
        logProb: number;
        bytes: number[] | null;
        topLogProbs: {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }[];
    }>, "many">>;
}, "strip", z.ZodTypeAny, {
    partialMessages: {
        role: "assistant";
        partialContent: {
            modality: "partial-tool-response";
            index: number;
            metadata?: any;
            name?: string | undefined;
            id?: string | undefined;
            data?: string | undefined;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        } | {
            value: {
                type: "safety";
                message?: string | undefined;
                category?: string | undefined;
                probability?: string | undefined;
                blocked?: boolean | undefined;
            } | {
                type: "response_error";
                code?: string | undefined;
                message?: string | undefined;
                provider?: string | undefined;
            };
            modality: "partial-error";
            metadata?: undefined;
        } | {
            value: {
                type?: string | undefined;
                query?: string | undefined;
                responses?: {
                    url?: string | undefined;
                    source?: string | undefined;
                    title?: string | undefined;
                    snippet?: string | undefined;
                }[] | undefined;
                references?: {
                    text?: string | undefined;
                    responseIndices?: number[] | undefined;
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[] | undefined;
            };
            modality: "partial-search-result";
            metadata?: undefined;
        } | {
            value: string;
            modality: "partial-text";
            metadata?: undefined;
        } | {
            modality: "partial-tool-call";
            index: number;
            metadata?: undefined;
            name?: string | undefined;
            id?: string | undefined;
            arguments?: string | undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        } | {
            value: {
                type: "redacted";
                data: string;
            } | {
                type: "thinking";
                thinking?: string | undefined;
                signature?: string | undefined;
            };
            modality: "partial-reasoning";
            metadata?: undefined;
        };
        metadata?: undefined;
    }[];
    usage?: {
        promptTokens?: number | undefined;
        completionTokens?: number | undefined;
        totalTokens?: number | undefined;
    } | undefined;
    logProbs?: {
        token: string;
        logProb: number;
        bytes: number[] | null;
        topLogProbs: {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }[];
    }[] | undefined;
}, {
    partialMessages: {
        role: "assistant";
        partialContent: {
            modality: "partial-tool-response";
            index: number;
            metadata?: any;
            name?: string | undefined;
            id?: string | undefined;
            data?: string | undefined;
            apiResponse?: {
                statusCode: number;
            } | undefined;
        } | {
            value: {
                type: "safety";
                message?: string | undefined;
                category?: string | undefined;
                probability?: string | undefined;
                blocked?: boolean | undefined;
            } | {
                type: "response_error";
                code?: string | undefined;
                message?: string | undefined;
                provider?: string | undefined;
            };
            modality: "partial-error";
            metadata?: undefined;
        } | {
            value: {
                type?: string | undefined;
                query?: string | undefined;
                responses?: {
                    url?: string | undefined;
                    source?: string | undefined;
                    title?: string | undefined;
                    snippet?: string | undefined;
                }[] | undefined;
                references?: {
                    text?: string | undefined;
                    responseIndices?: number[] | undefined;
                    startIndex?: number | undefined;
                    endIndex?: number | undefined;
                    confidenceScores?: number[] | undefined;
                }[] | undefined;
            };
            modality: "partial-search-result";
            metadata?: undefined;
        } | {
            value: string;
            modality: "partial-text";
            metadata?: undefined;
        } | {
            modality: "partial-tool-call";
            index: number;
            metadata?: undefined;
            name?: string | undefined;
            id?: string | undefined;
            arguments?: string | undefined;
            serverName?: string | undefined;
            thoughtSignature?: string | undefined;
        } | {
            value: {
                type: "redacted";
                data: string;
            } | {
                type: "thinking";
                thinking?: string | undefined;
                signature?: string | undefined;
            };
            modality: "partial-reasoning";
            metadata?: undefined;
        };
        metadata?: undefined;
    }[];
    usage?: {
        promptTokens?: number | undefined;
        completionTokens?: number | undefined;
        totalTokens?: number | undefined;
    } | undefined;
    logProbs?: {
        token: string;
        logProb: number;
        bytes: number[] | null;
        topLogProbs: {
            token: string;
            logProb: number;
            bytes: number[] | null;
        }[];
    }[] | undefined;
}>;
type PartialChatResponseType = z.infer<typeof PartialChatResponse>;

declare const Config: <C extends z.ZodRecord<z.ZodString, z.ZodAny> = z.ZodRecord<z.ZodString, z.ZodAny>>(Config?: C) => C;
type ConfigType<C extends z.ZodRecord<z.ZodString, z.ZodAny> = z.ZodRecord<z.ZodString, z.ZodAny>> = z.infer<ReturnType<typeof Config<C>>>;

declare const McpServerToolConfiguration: z.ZodObject<{
    enabled: z.ZodDefault<z.ZodBoolean>;
    allowedTools: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
    enabled: boolean;
    allowedTools: string[];
}, {
    allowedTools: string[];
    enabled?: boolean | undefined;
}>;
type McpServerToolConfigurationType = z.infer<typeof McpServerToolConfiguration>;
declare const McpServer: z.ZodObject<{
    type: z.ZodLiteral<"url">;
    url: z.ZodEffects<z.ZodString, string, string>;
    name: z.ZodString;
    toolConfiguration: z.ZodOptional<z.ZodObject<{
        enabled: z.ZodDefault<z.ZodBoolean>;
        allowedTools: z.ZodArray<z.ZodString, "many">;
    }, "strip", z.ZodTypeAny, {
        enabled: boolean;
        allowedTools: string[];
    }, {
        allowedTools: string[];
        enabled?: boolean | undefined;
    }>>;
    authorizationToken: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    type: "url";
    url: string;
    name: string;
    toolConfiguration?: {
        enabled: boolean;
        allowedTools: string[];
    } | undefined;
    authorizationToken?: string | undefined;
}, {
    type: "url";
    url: string;
    name: string;
    toolConfiguration?: {
        allowedTools: string[];
        enabled?: boolean | undefined;
    } | undefined;
    authorizationToken?: string | undefined;
}>;
type McpServerType = z.infer<typeof McpServer>;

declare const ResponseSchemaTypes: readonly ["object", "array", "number", "string", "boolean", "enum"];
declare const ResponseSchemaTypesLiteral: z.ZodEnum<["object", "array", "number", "string", "boolean", "enum"]>;
type ResponseSchemaTypesType = z.infer<typeof ResponseSchemaTypesLiteral>;
declare const ResponseSchemaProperty: z.ZodObject<{
    anyOf: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
    type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["object", "array", "number", "string", "boolean", "enum"]>, z.ZodArray<z.ZodUnion<[z.ZodEnum<["object", "array", "number", "string", "boolean", "enum"]>, z.ZodLiteral<"null">]>, "many">]>>;
    default: z.ZodOptional<z.ZodAny>;
    title: z.ZodOptional<z.ZodString>;
    description: z.ZodOptional<z.ZodString>;
    properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    minItems: z.ZodOptional<z.ZodNumber>;
    maxItems: z.ZodOptional<z.ZodNumber>;
    items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
    minimum: z.ZodOptional<z.ZodNumber>;
    maximum: z.ZodOptional<z.ZodNumber>;
    minLength: z.ZodOptional<z.ZodNumber>;
    maxLength: z.ZodOptional<z.ZodNumber>;
    $ref: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    minimum?: number | undefined;
    type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
    maximum?: number | undefined;
    default?: any;
    title?: string | undefined;
    enum?: (string | number | boolean | null)[] | undefined;
    anyOf?: any[] | undefined;
    description?: string | undefined;
    properties?: Record<string, any> | undefined;
    required?: string[] | undefined;
    minItems?: number | undefined;
    maxItems?: number | undefined;
    items?: Record<string, any> | undefined;
    minLength?: number | undefined;
    maxLength?: number | undefined;
    $ref?: string | undefined;
}, {
    minimum?: number | undefined;
    type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
    maximum?: number | undefined;
    default?: any;
    title?: string | undefined;
    enum?: (string | number | boolean | null)[] | undefined;
    anyOf?: any[] | undefined;
    description?: string | undefined;
    properties?: Record<string, any> | undefined;
    required?: string[] | undefined;
    minItems?: number | undefined;
    maxItems?: number | undefined;
    items?: Record<string, any> | undefined;
    minLength?: number | undefined;
    maxLength?: number | undefined;
    $ref?: string | undefined;
}>;
type ResponseSchemaPropertyType = z.infer<typeof ResponseSchemaProperty>;
declare const ResponseSchemaStructure: z.ZodObject<{
    type: z.ZodEnum<["object"]>;
    required: z.ZodArray<z.ZodString, "many">;
    $defs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    properties: z.ZodRecord<z.ZodString, z.ZodObject<{
        anyOf: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
        type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["object", "array", "number", "string", "boolean", "enum"]>, z.ZodArray<z.ZodUnion<[z.ZodEnum<["object", "array", "number", "string", "boolean", "enum"]>, z.ZodLiteral<"null">]>, "many">]>>;
        default: z.ZodOptional<z.ZodAny>;
        title: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        minItems: z.ZodOptional<z.ZodNumber>;
        maxItems: z.ZodOptional<z.ZodNumber>;
        items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
        minimum: z.ZodOptional<z.ZodNumber>;
        maximum: z.ZodOptional<z.ZodNumber>;
        minLength: z.ZodOptional<z.ZodNumber>;
        maxLength: z.ZodOptional<z.ZodNumber>;
        $ref: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        minimum?: number | undefined;
        type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
        maximum?: number | undefined;
        default?: any;
        title?: string | undefined;
        enum?: (string | number | boolean | null)[] | undefined;
        anyOf?: any[] | undefined;
        description?: string | undefined;
        properties?: Record<string, any> | undefined;
        required?: string[] | undefined;
        minItems?: number | undefined;
        maxItems?: number | undefined;
        items?: Record<string, any> | undefined;
        minLength?: number | undefined;
        maxLength?: number | undefined;
        $ref?: string | undefined;
    }, {
        minimum?: number | undefined;
        type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
        maximum?: number | undefined;
        default?: any;
        title?: string | undefined;
        enum?: (string | number | boolean | null)[] | undefined;
        anyOf?: any[] | undefined;
        description?: string | undefined;
        properties?: Record<string, any> | undefined;
        required?: string[] | undefined;
        minItems?: number | undefined;
        maxItems?: number | undefined;
        items?: Record<string, any> | undefined;
        minLength?: number | undefined;
        maxLength?: number | undefined;
        $ref?: string | undefined;
    }>>;
    additionalProperties: z.ZodLiteral<false>;
}, "strip", z.ZodTypeAny, {
    type: "object";
    properties: Record<string, {
        minimum?: number | undefined;
        type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
        maximum?: number | undefined;
        default?: any;
        title?: string | undefined;
        enum?: (string | number | boolean | null)[] | undefined;
        anyOf?: any[] | undefined;
        description?: string | undefined;
        properties?: Record<string, any> | undefined;
        required?: string[] | undefined;
        minItems?: number | undefined;
        maxItems?: number | undefined;
        items?: Record<string, any> | undefined;
        minLength?: number | undefined;
        maxLength?: number | undefined;
        $ref?: string | undefined;
    }>;
    required: string[];
    additionalProperties: false;
    $defs?: Record<string, any> | undefined;
}, {
    type: "object";
    properties: Record<string, {
        minimum?: number | undefined;
        type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
        maximum?: number | undefined;
        default?: any;
        title?: string | undefined;
        enum?: (string | number | boolean | null)[] | undefined;
        anyOf?: any[] | undefined;
        description?: string | undefined;
        properties?: Record<string, any> | undefined;
        required?: string[] | undefined;
        minItems?: number | undefined;
        maxItems?: number | undefined;
        items?: Record<string, any> | undefined;
        minLength?: number | undefined;
        maxLength?: number | undefined;
        $ref?: string | undefined;
    }>;
    required: string[];
    additionalProperties: false;
    $defs?: Record<string, any> | undefined;
}>;
type ResponseSchemaStructureType = z.infer<typeof ResponseSchemaStructure>;
declare const ResponseSchema: z.ZodOptional<z.ZodObject<{
    name: z.ZodString;
    description: z.ZodString;
    strict: z.ZodOptional<z.ZodBoolean>;
    schema: z.ZodObject<{
        type: z.ZodEnum<["object"]>;
        required: z.ZodArray<z.ZodString, "many">;
        $defs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        properties: z.ZodRecord<z.ZodString, z.ZodObject<{
            anyOf: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
            type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["object", "array", "number", "string", "boolean", "enum"]>, z.ZodArray<z.ZodUnion<[z.ZodEnum<["object", "array", "number", "string", "boolean", "enum"]>, z.ZodLiteral<"null">]>, "many">]>>;
            default: z.ZodOptional<z.ZodAny>;
            title: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
            required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            minItems: z.ZodOptional<z.ZodNumber>;
            maxItems: z.ZodOptional<z.ZodNumber>;
            items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
            enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
            minimum: z.ZodOptional<z.ZodNumber>;
            maximum: z.ZodOptional<z.ZodNumber>;
            minLength: z.ZodOptional<z.ZodNumber>;
            maxLength: z.ZodOptional<z.ZodNumber>;
            $ref: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            minimum?: number | undefined;
            type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
            maximum?: number | undefined;
            default?: any;
            title?: string | undefined;
            enum?: (string | number | boolean | null)[] | undefined;
            anyOf?: any[] | undefined;
            description?: string | undefined;
            properties?: Record<string, any> | undefined;
            required?: string[] | undefined;
            minItems?: number | undefined;
            maxItems?: number | undefined;
            items?: Record<string, any> | undefined;
            minLength?: number | undefined;
            maxLength?: number | undefined;
            $ref?: string | undefined;
        }, {
            minimum?: number | undefined;
            type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
            maximum?: number | undefined;
            default?: any;
            title?: string | undefined;
            enum?: (string | number | boolean | null)[] | undefined;
            anyOf?: any[] | undefined;
            description?: string | undefined;
            properties?: Record<string, any> | undefined;
            required?: string[] | undefined;
            minItems?: number | undefined;
            maxItems?: number | undefined;
            items?: Record<string, any> | undefined;
            minLength?: number | undefined;
            maxLength?: number | undefined;
            $ref?: string | undefined;
        }>>;
        additionalProperties: z.ZodLiteral<false>;
    }, "strip", z.ZodTypeAny, {
        type: "object";
        properties: Record<string, {
            minimum?: number | undefined;
            type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
            maximum?: number | undefined;
            default?: any;
            title?: string | undefined;
            enum?: (string | number | boolean | null)[] | undefined;
            anyOf?: any[] | undefined;
            description?: string | undefined;
            properties?: Record<string, any> | undefined;
            required?: string[] | undefined;
            minItems?: number | undefined;
            maxItems?: number | undefined;
            items?: Record<string, any> | undefined;
            minLength?: number | undefined;
            maxLength?: number | undefined;
            $ref?: string | undefined;
        }>;
        required: string[];
        additionalProperties: false;
        $defs?: Record<string, any> | undefined;
    }, {
        type: "object";
        properties: Record<string, {
            minimum?: number | undefined;
            type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
            maximum?: number | undefined;
            default?: any;
            title?: string | undefined;
            enum?: (string | number | boolean | null)[] | undefined;
            anyOf?: any[] | undefined;
            description?: string | undefined;
            properties?: Record<string, any> | undefined;
            required?: string[] | undefined;
            minItems?: number | undefined;
            maxItems?: number | undefined;
            items?: Record<string, any> | undefined;
            minLength?: number | undefined;
            maxLength?: number | undefined;
            $ref?: string | undefined;
        }>;
        required: string[];
        additionalProperties: false;
        $defs?: Record<string, any> | undefined;
    }>;
}, "strip", z.ZodTypeAny, {
    name: string;
    description: string;
    schema: {
        type: "object";
        properties: Record<string, {
            minimum?: number | undefined;
            type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
            maximum?: number | undefined;
            default?: any;
            title?: string | undefined;
            enum?: (string | number | boolean | null)[] | undefined;
            anyOf?: any[] | undefined;
            description?: string | undefined;
            properties?: Record<string, any> | undefined;
            required?: string[] | undefined;
            minItems?: number | undefined;
            maxItems?: number | undefined;
            items?: Record<string, any> | undefined;
            minLength?: number | undefined;
            maxLength?: number | undefined;
            $ref?: string | undefined;
        }>;
        required: string[];
        additionalProperties: false;
        $defs?: Record<string, any> | undefined;
    };
    strict?: boolean | undefined;
}, {
    name: string;
    description: string;
    schema: {
        type: "object";
        properties: Record<string, {
            minimum?: number | undefined;
            type?: "string" | "number" | "boolean" | "object" | "array" | "enum" | ("string" | "number" | "boolean" | "object" | "null" | "array" | "enum")[] | undefined;
            maximum?: number | undefined;
            default?: any;
            title?: string | undefined;
            enum?: (string | number | boolean | null)[] | undefined;
            anyOf?: any[] | undefined;
            description?: string | undefined;
            properties?: Record<string, any> | undefined;
            required?: string[] | undefined;
            minItems?: number | undefined;
            maxItems?: number | undefined;
            items?: Record<string, any> | undefined;
            minLength?: number | undefined;
            maxLength?: number | undefined;
            $ref?: string | undefined;
        }>;
        required: string[];
        additionalProperties: false;
        $defs?: Record<string, any> | undefined;
    };
    strict?: boolean | undefined;
}>>;
type ResponseSchemaType = z.infer<typeof ResponseSchema>;

declare const EmbeddingTextModalityLiteral: "text";
declare const EmbeddingTokenModalityLiteral: "token";
declare const EmbeddingModalityLiterals: readonly ["text", "token"];
declare const EmbeddingModalityEnum: z.ZodEnum<["text", "token"]>;
type EmbeddingModalityEnumType = z.infer<typeof EmbeddingModalityEnum>;
declare const TextEmbeddingRequests: z.ZodArray<z.ZodString, "many">;
type TextEmbeddingRequestsType = z.infer<typeof TextEmbeddingRequests>;
declare const TokenEmbeddingRequests: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
type TokenEmbeddingRequestsType = z.infer<typeof TokenEmbeddingRequests>;
declare const EmbeddingRequests: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
    modality: z.ZodLiteral<"text">;
    metadata: M;
    requests: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"text">;
    metadata: M;
    requests: z.ZodArray<z.ZodString, "many">;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"text">;
    metadata: M;
    requests: z.ZodArray<z.ZodString, "many">;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"text">;
    metadata: M;
    requests: z.ZodArray<z.ZodString, "many">;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"text">;
    metadata: M;
    requests: z.ZodArray<z.ZodString, "many">;
}>[k_1]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"token">;
    metadata: M;
    requests: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
}, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"token">;
    metadata: M;
    requests: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"token">;
    metadata: M;
    requests: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
}>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"token">;
    metadata: M;
    requests: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"token">;
    metadata: M;
    requests: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
}>[k_1_1]; }>]>;
type EmbeddingRequestsType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof EmbeddingRequests<M>>>;

declare const FloatEmbeddingLiteral: "float";
declare const FloatEmbedding: z.ZodObject<{
    index: z.ZodNumber;
    embedding: z.ZodArray<z.ZodNumber, "many">;
}, "strip", z.ZodTypeAny, {
    index: number;
    embedding: number[];
}, {
    index: number;
    embedding: number[];
}>;
type FloatEmbeddingType = z.infer<typeof FloatEmbedding>;
declare const Base64EmbeddingLiteral: "base64";
declare const Base64Embedding: z.ZodObject<{
    index: z.ZodNumber;
    embedding: z.ZodString;
}, "strip", z.ZodTypeAny, {
    index: number;
    embedding: string;
}, {
    index: number;
    embedding: string;
}>;
type Base64EmbeddingType = z.infer<typeof Base64Embedding>;
declare const EmbeddingsUsage: z.ZodObject<{
    totalTokens: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    totalTokens: number;
}, {
    totalTokens: number;
}>;
type EmbeddingsUsageType = z.infer<typeof EmbeddingsUsage>;
declare const EmbeddingResponse: z.ZodDiscriminatedUnion<"encodingFormat", [z.ZodObject<{
    encodingFormat: z.ZodLiteral<"float">;
    embeddings: z.ZodArray<z.ZodObject<{
        index: z.ZodNumber;
        embedding: z.ZodArray<z.ZodNumber, "many">;
    }, "strip", z.ZodTypeAny, {
        index: number;
        embedding: number[];
    }, {
        index: number;
        embedding: number[];
    }>, "many">;
    usage: z.ZodOptional<z.ZodObject<{
        totalTokens: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        totalTokens: number;
    }, {
        totalTokens: number;
    }>>;
}, "strip", z.ZodTypeAny, {
    encodingFormat: "float";
    embeddings: {
        index: number;
        embedding: number[];
    }[];
    usage?: {
        totalTokens: number;
    } | undefined;
}, {
    encodingFormat: "float";
    embeddings: {
        index: number;
        embedding: number[];
    }[];
    usage?: {
        totalTokens: number;
    } | undefined;
}>, z.ZodObject<{
    encodingFormat: z.ZodLiteral<"base64">;
    embeddings: z.ZodArray<z.ZodObject<{
        index: z.ZodNumber;
        embedding: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        index: number;
        embedding: string;
    }, {
        index: number;
        embedding: string;
    }>, "many">;
    usage: z.ZodOptional<z.ZodObject<{
        totalTokens: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        totalTokens: number;
    }, {
        totalTokens: number;
    }>>;
}, "strip", z.ZodTypeAny, {
    encodingFormat: "base64";
    embeddings: {
        index: number;
        embedding: string;
    }[];
    usage?: {
        totalTokens: number;
    } | undefined;
}, {
    encodingFormat: "base64";
    embeddings: {
        index: number;
        embedding: string;
    }[];
    usage?: {
        totalTokens: number;
    } | undefined;
}>]>;
type EmbeddingResponseType = z.infer<typeof EmbeddingResponse>;

declare class GatewayBaseError extends Error {
    readonly name: string;
    readonly info: string;
    readonly cause: unknown;
    constructor({ info, cause }: {
        info: string;
        cause: unknown;
    }, name?: string);
    static isGatewayBaseError(error: unknown): error is GatewayBaseError;
    toJSON(): object;
}

declare const SystemRoleLiteral: "system";
declare const UserRoleLiteral: "user";
declare const AssistantRoleLiteral: "assistant";
declare const ToolRoleLiteral: "tool";
declare const RoleLiterals: readonly ["system", "user", "assistant", "tool"];
declare const RoleEnum: z.ZodEnum<["system", "user", "assistant", "tool"]>;
type RoleEnumType = z.infer<typeof RoleEnum>;
declare const PartialRoleLiterals: readonly ["assistant"];
declare const PartialRoleEnum: z.ZodEnum<["assistant"]>;
type PartialRoleEnumType = z.infer<typeof PartialRoleEnum>;

declare const Message: <R extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["system", "user", "assistant", "tool"]>, TCM extends z.ZodTypeAny = z.ZodUndefined, ICM extends z.ZodTypeAny = z.ZodUndefined, CCM extends z.ZodTypeAny = z.ZodUndefined, RCM extends z.ZodTypeAny = z.ZodUndefined, RTCM extends z.ZodTypeAny = z.ZodUndefined, PCCM extends z.ZodTypeAny = z.ZodUndefined, MM extends z.ZodTypeAny = z.ZodUndefined>(Role?: R, TextContentMetadata?: TCM, ImageContentMetadata?: ICM, ToolCallContentMetadata?: CCM, ToolResponseContentMetadata?: RCM, PdfContentMetadata?: PCCM, ReasoningContentMetadata?: z.ZodTypeAny, MessageMetadata?: MM) => z.ZodObject<{
    role: R;
    content: z.ZodArray<z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>[k_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>[k_1_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>[k_1_2]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }, "strip", z.ZodTypeAny, { [k_4 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>, any>[k_4]; }, { [k_1_3 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>[k_1_3]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"tool-response">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        data: z.ZodString;
        apiResponse: z.ZodOptional<z.ZodObject<{
            statusCode: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            statusCode: number;
        }, {
            statusCode: number;
        }>>;
        metadata: z.ZodTypeAny;
    }, "strip", z.ZodTypeAny, {
        modality: "tool-response";
        name: string;
        id: string;
        data: string;
        index: number;
        metadata?: any;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }, {
        modality: "tool-response";
        name: string;
        id: string;
        data: string;
        index: number;
        metadata?: any;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }, "strip", z.ZodTypeAny, { [k_5 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>, any>[k_5]; }, { [k_1_4 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>[k_1_4]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"error">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"safety">;
            value: z.ZodObject<{
                category: z.ZodString;
                probability: z.ZodString;
                blocked: z.ZodBoolean;
                message: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            }, {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        }, {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        }>, z.ZodObject<{
            type: z.ZodLiteral<"response_error">;
            value: z.ZodObject<{
                code: z.ZodString;
                message: z.ZodString;
                provider: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                code: string;
                message: string;
                provider?: string | undefined;
            }, {
                code: string;
                message: string;
                provider?: string | undefined;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        }, {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        } | {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        };
        modality: "error";
        metadata?: undefined;
    }, {
        value: {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        } | {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        };
        modality: "error";
        metadata?: undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"search-result">;
        value: z.ZodObject<{
            type: z.ZodOptional<z.ZodString>;
            query: z.ZodString;
            responses: z.ZodArray<z.ZodObject<{
                source: z.ZodString;
                url: z.ZodString;
                title: z.ZodString;
                snippet: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }, {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }>, "many">;
            references: z.ZodArray<z.ZodObject<{
                text: z.ZodString;
                responseIndices: z.ZodArray<z.ZodNumber, "many">;
                startIndex: z.ZodOptional<z.ZodNumber>;
                endIndex: z.ZodOptional<z.ZodNumber>;
                confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            }, "strip", z.ZodTypeAny, {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }, {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }>, "many">;
        }, "strip", z.ZodTypeAny, {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        }, {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        }>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        };
        modality: "search-result";
        metadata?: undefined;
    }, {
        value: {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        };
        modality: "search-result";
        metadata?: undefined;
    }>]>, "many">;
    metadata: MM;
}, "strip", z.ZodTypeAny, { [k_6 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    role: R;
    content: z.ZodArray<z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>[k_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>[k_1_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>[k_1_2]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }, "strip", z.ZodTypeAny, { [k_4 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>, any>[k_4]; }, { [k_1_3 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>[k_1_3]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"tool-response">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        data: z.ZodString;
        apiResponse: z.ZodOptional<z.ZodObject<{
            statusCode: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            statusCode: number;
        }, {
            statusCode: number;
        }>>;
        metadata: z.ZodTypeAny;
    }, "strip", z.ZodTypeAny, {
        modality: "tool-response";
        name: string;
        id: string;
        data: string;
        index: number;
        metadata?: any;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }, {
        modality: "tool-response";
        name: string;
        id: string;
        data: string;
        index: number;
        metadata?: any;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }, "strip", z.ZodTypeAny, { [k_5 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>, any>[k_5]; }, { [k_1_4 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>[k_1_4]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"error">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"safety">;
            value: z.ZodObject<{
                category: z.ZodString;
                probability: z.ZodString;
                blocked: z.ZodBoolean;
                message: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            }, {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        }, {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        }>, z.ZodObject<{
            type: z.ZodLiteral<"response_error">;
            value: z.ZodObject<{
                code: z.ZodString;
                message: z.ZodString;
                provider: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                code: string;
                message: string;
                provider?: string | undefined;
            }, {
                code: string;
                message: string;
                provider?: string | undefined;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        }, {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        } | {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        };
        modality: "error";
        metadata?: undefined;
    }, {
        value: {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        } | {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        };
        modality: "error";
        metadata?: undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"search-result">;
        value: z.ZodObject<{
            type: z.ZodOptional<z.ZodString>;
            query: z.ZodString;
            responses: z.ZodArray<z.ZodObject<{
                source: z.ZodString;
                url: z.ZodString;
                title: z.ZodString;
                snippet: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }, {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }>, "many">;
            references: z.ZodArray<z.ZodObject<{
                text: z.ZodString;
                responseIndices: z.ZodArray<z.ZodNumber, "many">;
                startIndex: z.ZodOptional<z.ZodNumber>;
                endIndex: z.ZodOptional<z.ZodNumber>;
                confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            }, "strip", z.ZodTypeAny, {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }, {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }>, "many">;
        }, "strip", z.ZodTypeAny, {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        }, {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        }>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        };
        modality: "search-result";
        metadata?: undefined;
    }, {
        value: {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        };
        modality: "search-result";
        metadata?: undefined;
    }>]>, "many">;
    metadata: MM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    role: R;
    content: z.ZodArray<z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>[k_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>[k_1_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>[k_1_2]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }, "strip", z.ZodTypeAny, { [k_4 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>, any>[k_4]; }, { [k_1_3 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>[k_1_3]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"tool-response">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        data: z.ZodString;
        apiResponse: z.ZodOptional<z.ZodObject<{
            statusCode: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            statusCode: number;
        }, {
            statusCode: number;
        }>>;
        metadata: z.ZodTypeAny;
    }, "strip", z.ZodTypeAny, {
        modality: "tool-response";
        name: string;
        id: string;
        data: string;
        index: number;
        metadata?: any;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }, {
        modality: "tool-response";
        name: string;
        id: string;
        data: string;
        index: number;
        metadata?: any;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }, "strip", z.ZodTypeAny, { [k_5 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>, any>[k_5]; }, { [k_1_4 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>[k_1_4]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"error">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"safety">;
            value: z.ZodObject<{
                category: z.ZodString;
                probability: z.ZodString;
                blocked: z.ZodBoolean;
                message: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            }, {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        }, {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        }>, z.ZodObject<{
            type: z.ZodLiteral<"response_error">;
            value: z.ZodObject<{
                code: z.ZodString;
                message: z.ZodString;
                provider: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                code: string;
                message: string;
                provider?: string | undefined;
            }, {
                code: string;
                message: string;
                provider?: string | undefined;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        }, {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        } | {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        };
        modality: "error";
        metadata?: undefined;
    }, {
        value: {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        } | {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        };
        modality: "error";
        metadata?: undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"search-result">;
        value: z.ZodObject<{
            type: z.ZodOptional<z.ZodString>;
            query: z.ZodString;
            responses: z.ZodArray<z.ZodObject<{
                source: z.ZodString;
                url: z.ZodString;
                title: z.ZodString;
                snippet: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }, {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }>, "many">;
            references: z.ZodArray<z.ZodObject<{
                text: z.ZodString;
                responseIndices: z.ZodArray<z.ZodNumber, "many">;
                startIndex: z.ZodOptional<z.ZodNumber>;
                endIndex: z.ZodOptional<z.ZodNumber>;
                confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            }, "strip", z.ZodTypeAny, {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }, {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }>, "many">;
        }, "strip", z.ZodTypeAny, {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        }, {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        }>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        };
        modality: "search-result";
        metadata?: undefined;
    }, {
        value: {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        };
        modality: "search-result";
        metadata?: undefined;
    }>]>, "many">;
    metadata: MM;
}>, any>[k_6]; }, { [k_1_5 in keyof z.baseObjectInputType<{
    role: R;
    content: z.ZodArray<z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>[k_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>[k_1_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>[k_1_2]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }, "strip", z.ZodTypeAny, { [k_4 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>, any>[k_4]; }, { [k_1_3 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>[k_1_3]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"tool-response">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        data: z.ZodString;
        apiResponse: z.ZodOptional<z.ZodObject<{
            statusCode: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            statusCode: number;
        }, {
            statusCode: number;
        }>>;
        metadata: z.ZodTypeAny;
    }, "strip", z.ZodTypeAny, {
        modality: "tool-response";
        name: string;
        id: string;
        data: string;
        index: number;
        metadata?: any;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }, {
        modality: "tool-response";
        name: string;
        id: string;
        data: string;
        index: number;
        metadata?: any;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }, "strip", z.ZodTypeAny, { [k_5 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>, any>[k_5]; }, { [k_1_4 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>[k_1_4]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"error">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"safety">;
            value: z.ZodObject<{
                category: z.ZodString;
                probability: z.ZodString;
                blocked: z.ZodBoolean;
                message: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            }, {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        }, {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        }>, z.ZodObject<{
            type: z.ZodLiteral<"response_error">;
            value: z.ZodObject<{
                code: z.ZodString;
                message: z.ZodString;
                provider: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                code: string;
                message: string;
                provider?: string | undefined;
            }, {
                code: string;
                message: string;
                provider?: string | undefined;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        }, {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        } | {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        };
        modality: "error";
        metadata?: undefined;
    }, {
        value: {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        } | {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        };
        modality: "error";
        metadata?: undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"search-result">;
        value: z.ZodObject<{
            type: z.ZodOptional<z.ZodString>;
            query: z.ZodString;
            responses: z.ZodArray<z.ZodObject<{
                source: z.ZodString;
                url: z.ZodString;
                title: z.ZodString;
                snippet: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }, {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }>, "many">;
            references: z.ZodArray<z.ZodObject<{
                text: z.ZodString;
                responseIndices: z.ZodArray<z.ZodNumber, "many">;
                startIndex: z.ZodOptional<z.ZodNumber>;
                endIndex: z.ZodOptional<z.ZodNumber>;
                confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            }, "strip", z.ZodTypeAny, {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }, {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }>, "many">;
        }, "strip", z.ZodTypeAny, {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        }, {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        }>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        };
        modality: "search-result";
        metadata?: undefined;
    }, {
        value: {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        };
        modality: "search-result";
        metadata?: undefined;
    }>]>, "many">;
    metadata: MM;
}>]: z.baseObjectInputType<{
    role: R;
    content: z.ZodArray<z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"text">;
        value: z.ZodString;
        metadata: TCM;
    }>[k_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"image">;
        detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
            mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }, {
            type: "base64";
            base64: string;
            mediaType: "png" | "jpeg" | "webp" | "gif";
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        metadata: ICM;
    }>[k_1_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"pdf">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"base64">;
            base64: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "base64";
            base64: string;
        }, {
            type: "base64";
            base64: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"url">;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "url";
            url: string;
        }, {
            type: "url";
            url: string;
        }>]>;
        file: z.ZodObject<{
            name: z.ZodString;
            id: z.ZodString;
            size: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            id: string;
            size?: number | undefined;
        }, {
            name: string;
            id: string;
            size?: number | undefined;
        }>;
        metadata: CCM;
    }>[k_1_2]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }, "strip", z.ZodTypeAny, { [k_4 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>, any>[k_4]; }, { [k_1_3 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"tool-call">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodString;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: RCM;
    }>[k_1_3]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"tool-response">;
        index: z.ZodNumber;
        id: z.ZodString;
        name: z.ZodString;
        data: z.ZodString;
        apiResponse: z.ZodOptional<z.ZodObject<{
            statusCode: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            statusCode: number;
        }, {
            statusCode: number;
        }>>;
        metadata: z.ZodTypeAny;
    }, "strip", z.ZodTypeAny, {
        modality: "tool-response";
        name: string;
        id: string;
        data: string;
        index: number;
        metadata?: any;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }, {
        modality: "tool-response";
        name: string;
        id: string;
        data: string;
        index: number;
        metadata?: any;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }, "strip", z.ZodTypeAny, { [k_5 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>, any>[k_5]; }, { [k_1_4 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            signature: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking: string;
            signature: string;
        }, {
            type: "thinking";
            thinking: string;
            signature: string;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: PCCM;
    }>[k_1_4]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"error">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"safety">;
            value: z.ZodObject<{
                category: z.ZodString;
                probability: z.ZodString;
                blocked: z.ZodBoolean;
                message: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            }, {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        }, {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        }>, z.ZodObject<{
            type: z.ZodLiteral<"response_error">;
            value: z.ZodObject<{
                code: z.ZodString;
                message: z.ZodString;
                provider: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                code: string;
                message: string;
                provider?: string | undefined;
            }, {
                code: string;
                message: string;
                provider?: string | undefined;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        }, {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        } | {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        };
        modality: "error";
        metadata?: undefined;
    }, {
        value: {
            type: "safety";
            value: {
                message: string;
                category: string;
                probability: string;
                blocked: boolean;
            };
        } | {
            type: "response_error";
            value: {
                code: string;
                message: string;
                provider?: string | undefined;
            };
        };
        modality: "error";
        metadata?: undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"search-result">;
        value: z.ZodObject<{
            type: z.ZodOptional<z.ZodString>;
            query: z.ZodString;
            responses: z.ZodArray<z.ZodObject<{
                source: z.ZodString;
                url: z.ZodString;
                title: z.ZodString;
                snippet: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }, {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }>, "many">;
            references: z.ZodArray<z.ZodObject<{
                text: z.ZodString;
                responseIndices: z.ZodArray<z.ZodNumber, "many">;
                startIndex: z.ZodOptional<z.ZodNumber>;
                endIndex: z.ZodOptional<z.ZodNumber>;
                confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            }, "strip", z.ZodTypeAny, {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }, {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }>, "many">;
        }, "strip", z.ZodTypeAny, {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        }, {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        }>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        };
        modality: "search-result";
        metadata?: undefined;
    }, {
        value: {
            query: string;
            responses: {
                url: string;
                source: string;
                title: string;
                snippet?: string | undefined;
            }[];
            references: {
                text: string;
                responseIndices: number[];
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[];
            type?: string | undefined;
        };
        modality: "search-result";
        metadata?: undefined;
    }>]>, "many">;
    metadata: MM;
}>[k_1_5]; }>;
type MessageType<R extends z.ZodEnum<[string, ...string[]]> = typeof RoleEnum, TCM extends z.ZodTypeAny = z.ZodUndefined, ICM extends z.ZodTypeAny = z.ZodUndefined, CCM extends z.ZodTypeAny = z.ZodUndefined, RCM extends z.ZodTypeAny = z.ZodUndefined, RTCM extends z.ZodTypeAny = z.ZodUndefined, PCCM extends z.ZodTypeAny = z.ZodUndefined, MM extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof Message<R, TCM, ICM, CCM, RCM, PCCM, RTCM, MM>>>;
declare const PartialMessage: <R extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["assistant"]>, TCM extends z.ZodTypeAny = z.ZodUndefined, CCM extends z.ZodTypeAny = z.ZodUndefined, MM extends z.ZodTypeAny = z.ZodUndefined, RTCM extends z.ZodTypeAny = z.ZodUndefined, TPCM extends z.ZodTypeAny = z.ZodUndefined>(Role?: R, TextContentMetadata?: TCM, ToolCallContentMetadata?: CCM, ReasoningContentMetadata?: z.ZodTypeAny, MessageMetadata?: MM, ToolResponseContentMetadata?: TPCM) => z.ZodObject<{
    role: R;
    partialContent: z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>[k_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>[k_1_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>[k_1_2]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-tool-response">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        data: z.ZodOptional<z.ZodString>;
        apiResponse: z.ZodOptional<z.ZodObject<{
            statusCode: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            statusCode: number;
        }, {
            statusCode: number;
        }>>;
        metadata: z.ZodTypeAny;
    }, "strip", z.ZodTypeAny, {
        modality: "partial-tool-response";
        index: number;
        metadata?: any;
        name?: string | undefined;
        id?: string | undefined;
        data?: string | undefined;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }, {
        modality: "partial-tool-response";
        index: number;
        metadata?: any;
        name?: string | undefined;
        id?: string | undefined;
        data?: string | undefined;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-error">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"safety">;
            category: z.ZodOptional<z.ZodString>;
            probability: z.ZodOptional<z.ZodString>;
            blocked: z.ZodOptional<z.ZodBoolean>;
            message: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        }, {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"response_error">;
            code: z.ZodOptional<z.ZodString>;
            message: z.ZodOptional<z.ZodString>;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        }, {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        } | {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        };
        modality: "partial-error";
        metadata?: undefined;
    }, {
        value: {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        } | {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        };
        modality: "partial-error";
        metadata?: undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-search-result">;
        value: z.ZodObject<{
            type: z.ZodOptional<z.ZodString>;
            query: z.ZodOptional<z.ZodString>;
            responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
                source: z.ZodOptional<z.ZodString>;
                url: z.ZodOptional<z.ZodString>;
                title: z.ZodOptional<z.ZodString>;
                snippet: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }, {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }>, "many">>;
            references: z.ZodOptional<z.ZodArray<z.ZodObject<{
                text: z.ZodOptional<z.ZodString>;
                responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
                startIndex: z.ZodOptional<z.ZodNumber>;
                endIndex: z.ZodOptional<z.ZodNumber>;
                confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            }, "strip", z.ZodTypeAny, {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }, {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        }, {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        }>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        };
        modality: "partial-search-result";
        metadata?: undefined;
    }, {
        value: {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        };
        modality: "partial-search-result";
        metadata?: undefined;
    }>]>;
    metadata: MM;
}, "strip", z.ZodTypeAny, { [k_4 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    role: R;
    partialContent: z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>[k_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>[k_1_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>[k_1_2]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-tool-response">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        data: z.ZodOptional<z.ZodString>;
        apiResponse: z.ZodOptional<z.ZodObject<{
            statusCode: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            statusCode: number;
        }, {
            statusCode: number;
        }>>;
        metadata: z.ZodTypeAny;
    }, "strip", z.ZodTypeAny, {
        modality: "partial-tool-response";
        index: number;
        metadata?: any;
        name?: string | undefined;
        id?: string | undefined;
        data?: string | undefined;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }, {
        modality: "partial-tool-response";
        index: number;
        metadata?: any;
        name?: string | undefined;
        id?: string | undefined;
        data?: string | undefined;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-error">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"safety">;
            category: z.ZodOptional<z.ZodString>;
            probability: z.ZodOptional<z.ZodString>;
            blocked: z.ZodOptional<z.ZodBoolean>;
            message: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        }, {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"response_error">;
            code: z.ZodOptional<z.ZodString>;
            message: z.ZodOptional<z.ZodString>;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        }, {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        } | {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        };
        modality: "partial-error";
        metadata?: undefined;
    }, {
        value: {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        } | {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        };
        modality: "partial-error";
        metadata?: undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-search-result">;
        value: z.ZodObject<{
            type: z.ZodOptional<z.ZodString>;
            query: z.ZodOptional<z.ZodString>;
            responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
                source: z.ZodOptional<z.ZodString>;
                url: z.ZodOptional<z.ZodString>;
                title: z.ZodOptional<z.ZodString>;
                snippet: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }, {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }>, "many">>;
            references: z.ZodOptional<z.ZodArray<z.ZodObject<{
                text: z.ZodOptional<z.ZodString>;
                responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
                startIndex: z.ZodOptional<z.ZodNumber>;
                endIndex: z.ZodOptional<z.ZodNumber>;
                confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            }, "strip", z.ZodTypeAny, {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }, {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        }, {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        }>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        };
        modality: "partial-search-result";
        metadata?: undefined;
    }, {
        value: {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        };
        modality: "partial-search-result";
        metadata?: undefined;
    }>]>;
    metadata: MM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    role: R;
    partialContent: z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>[k_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>[k_1_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>[k_1_2]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-tool-response">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        data: z.ZodOptional<z.ZodString>;
        apiResponse: z.ZodOptional<z.ZodObject<{
            statusCode: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            statusCode: number;
        }, {
            statusCode: number;
        }>>;
        metadata: z.ZodTypeAny;
    }, "strip", z.ZodTypeAny, {
        modality: "partial-tool-response";
        index: number;
        metadata?: any;
        name?: string | undefined;
        id?: string | undefined;
        data?: string | undefined;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }, {
        modality: "partial-tool-response";
        index: number;
        metadata?: any;
        name?: string | undefined;
        id?: string | undefined;
        data?: string | undefined;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-error">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"safety">;
            category: z.ZodOptional<z.ZodString>;
            probability: z.ZodOptional<z.ZodString>;
            blocked: z.ZodOptional<z.ZodBoolean>;
            message: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        }, {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"response_error">;
            code: z.ZodOptional<z.ZodString>;
            message: z.ZodOptional<z.ZodString>;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        }, {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        } | {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        };
        modality: "partial-error";
        metadata?: undefined;
    }, {
        value: {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        } | {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        };
        modality: "partial-error";
        metadata?: undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-search-result">;
        value: z.ZodObject<{
            type: z.ZodOptional<z.ZodString>;
            query: z.ZodOptional<z.ZodString>;
            responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
                source: z.ZodOptional<z.ZodString>;
                url: z.ZodOptional<z.ZodString>;
                title: z.ZodOptional<z.ZodString>;
                snippet: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }, {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }>, "many">>;
            references: z.ZodOptional<z.ZodArray<z.ZodObject<{
                text: z.ZodOptional<z.ZodString>;
                responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
                startIndex: z.ZodOptional<z.ZodNumber>;
                endIndex: z.ZodOptional<z.ZodNumber>;
                confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            }, "strip", z.ZodTypeAny, {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }, {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        }, {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        }>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        };
        modality: "partial-search-result";
        metadata?: undefined;
    }, {
        value: {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        };
        modality: "partial-search-result";
        metadata?: undefined;
    }>]>;
    metadata: MM;
}>, any>[k_4]; }, { [k_1_3 in keyof z.baseObjectInputType<{
    role: R;
    partialContent: z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>[k_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>[k_1_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>[k_1_2]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-tool-response">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        data: z.ZodOptional<z.ZodString>;
        apiResponse: z.ZodOptional<z.ZodObject<{
            statusCode: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            statusCode: number;
        }, {
            statusCode: number;
        }>>;
        metadata: z.ZodTypeAny;
    }, "strip", z.ZodTypeAny, {
        modality: "partial-tool-response";
        index: number;
        metadata?: any;
        name?: string | undefined;
        id?: string | undefined;
        data?: string | undefined;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }, {
        modality: "partial-tool-response";
        index: number;
        metadata?: any;
        name?: string | undefined;
        id?: string | undefined;
        data?: string | undefined;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-error">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"safety">;
            category: z.ZodOptional<z.ZodString>;
            probability: z.ZodOptional<z.ZodString>;
            blocked: z.ZodOptional<z.ZodBoolean>;
            message: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        }, {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"response_error">;
            code: z.ZodOptional<z.ZodString>;
            message: z.ZodOptional<z.ZodString>;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        }, {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        } | {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        };
        modality: "partial-error";
        metadata?: undefined;
    }, {
        value: {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        } | {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        };
        modality: "partial-error";
        metadata?: undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-search-result">;
        value: z.ZodObject<{
            type: z.ZodOptional<z.ZodString>;
            query: z.ZodOptional<z.ZodString>;
            responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
                source: z.ZodOptional<z.ZodString>;
                url: z.ZodOptional<z.ZodString>;
                title: z.ZodOptional<z.ZodString>;
                snippet: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }, {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }>, "many">>;
            references: z.ZodOptional<z.ZodArray<z.ZodObject<{
                text: z.ZodOptional<z.ZodString>;
                responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
                startIndex: z.ZodOptional<z.ZodNumber>;
                endIndex: z.ZodOptional<z.ZodNumber>;
                confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            }, "strip", z.ZodTypeAny, {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }, {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        }, {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        }>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        };
        modality: "partial-search-result";
        metadata?: undefined;
    }, {
        value: {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        };
        modality: "partial-search-result";
        metadata?: undefined;
    }>]>;
    metadata: MM;
}>]: z.baseObjectInputType<{
    role: R;
    partialContent: z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-text">;
        value: z.ZodString;
        metadata: TCM;
    }>[k_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-tool-call">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        arguments: z.ZodOptional<z.ZodString>;
        serverName: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        metadata: CCM;
    }>[k_1_1]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>]: z.baseObjectInputType<{
        modality: z.ZodLiteral<"partial-reasoning">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }, {
            type: "thinking";
            thinking?: string | undefined;
            signature?: string | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"redacted">;
            data: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "redacted";
            data: string;
        }, {
            type: "redacted";
            data: string;
        }>]>;
        metadata: TPCM;
    }>[k_1_2]; }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-tool-response">;
        index: z.ZodNumber;
        id: z.ZodOptional<z.ZodString>;
        name: z.ZodOptional<z.ZodString>;
        data: z.ZodOptional<z.ZodString>;
        apiResponse: z.ZodOptional<z.ZodObject<{
            statusCode: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            statusCode: number;
        }, {
            statusCode: number;
        }>>;
        metadata: z.ZodTypeAny;
    }, "strip", z.ZodTypeAny, {
        modality: "partial-tool-response";
        index: number;
        metadata?: any;
        name?: string | undefined;
        id?: string | undefined;
        data?: string | undefined;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }, {
        modality: "partial-tool-response";
        index: number;
        metadata?: any;
        name?: string | undefined;
        id?: string | undefined;
        data?: string | undefined;
        apiResponse?: {
            statusCode: number;
        } | undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-error">;
        value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
            type: z.ZodLiteral<"safety">;
            category: z.ZodOptional<z.ZodString>;
            probability: z.ZodOptional<z.ZodString>;
            blocked: z.ZodOptional<z.ZodBoolean>;
            message: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        }, {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"response_error">;
            code: z.ZodOptional<z.ZodString>;
            message: z.ZodOptional<z.ZodString>;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        }, {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        }>]>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        } | {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        };
        modality: "partial-error";
        metadata?: undefined;
    }, {
        value: {
            type: "safety";
            message?: string | undefined;
            category?: string | undefined;
            probability?: string | undefined;
            blocked?: boolean | undefined;
        } | {
            type: "response_error";
            code?: string | undefined;
            message?: string | undefined;
            provider?: string | undefined;
        };
        modality: "partial-error";
        metadata?: undefined;
    }>, z.ZodObject<{
        modality: z.ZodLiteral<"partial-search-result">;
        value: z.ZodObject<{
            type: z.ZodOptional<z.ZodString>;
            query: z.ZodOptional<z.ZodString>;
            responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
                source: z.ZodOptional<z.ZodString>;
                url: z.ZodOptional<z.ZodString>;
                title: z.ZodOptional<z.ZodString>;
                snippet: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }, {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }>, "many">>;
            references: z.ZodOptional<z.ZodArray<z.ZodObject<{
                text: z.ZodOptional<z.ZodString>;
                responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
                startIndex: z.ZodOptional<z.ZodNumber>;
                endIndex: z.ZodOptional<z.ZodNumber>;
                confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            }, "strip", z.ZodTypeAny, {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }, {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        }, {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        }>;
        metadata: z.ZodUndefined;
    }, "strip", z.ZodTypeAny, {
        value: {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        };
        modality: "partial-search-result";
        metadata?: undefined;
    }, {
        value: {
            type?: string | undefined;
            query?: string | undefined;
            responses?: {
                url?: string | undefined;
                source?: string | undefined;
                title?: string | undefined;
                snippet?: string | undefined;
            }[] | undefined;
            references?: {
                text?: string | undefined;
                responseIndices?: number[] | undefined;
                startIndex?: number | undefined;
                endIndex?: number | undefined;
                confidenceScores?: number[] | undefined;
            }[] | undefined;
        };
        modality: "partial-search-result";
        metadata?: undefined;
    }>]>;
    metadata: MM;
}>[k_1_3]; }>;
type PartialMessageType<R extends z.ZodEnum<[string, ...string[]]> = typeof PartialRoleEnum, TCM extends z.ZodTypeAny = z.ZodUndefined, CCM extends z.ZodTypeAny = z.ZodUndefined, MM extends z.ZodTypeAny = z.ZodUndefined, RTCM extends z.ZodTypeAny = z.ZodUndefined, TPCM extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof PartialMessage<R, TCM, CCM, MM, RTCM, TPCM>>>;

declare const ModalityLiterals: readonly ["text", "image", "pdf", "tool-call", "tool-response", "reasoning", "error", "search-result"];
declare const ModalityEnum: z.ZodEnum<["text", "image", "pdf", "tool-call", "tool-response", "reasoning", "error", "search-result"]>;
type ModalityEnumType = z.infer<typeof ModalityEnum>;
declare const Content: <TCM extends z.ZodTypeAny = z.ZodUndefined, ICM extends z.ZodTypeAny = z.ZodUndefined, PCM extends z.ZodTypeAny = z.ZodUndefined, TCCM extends z.ZodTypeAny = z.ZodUndefined, TRCM extends z.ZodTypeAny = z.ZodUndefined, RCM extends z.ZodTypeAny = z.ZodUndefined, ECM extends z.ZodTypeAny = z.ZodUndefined, SRCM extends z.ZodTypeAny = z.ZodUndefined>(TextContentMetadata?: TCM, ImageContentMetadata?: ICM, PdfContentMetadata?: PCM, ToolCallContentMetadata?: TCCM, ToolResponseContentMetadata?: TRCM, ReasoningContentMetadata?: RCM, ErrorContentMetadata?: ECM, SearchResultContentMetadata?: SRCM) => z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
    modality: z.ZodLiteral<"text">;
    value: z.ZodString;
    metadata: TCM;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"text">;
    value: z.ZodString;
    metadata: TCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"text">;
    value: z.ZodString;
    metadata: TCM;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"text">;
    value: z.ZodString;
    metadata: TCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"text">;
    value: z.ZodString;
    metadata: TCM;
}>[k_1]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"image">;
    detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
        mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    metadata: ICM;
}, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"image">;
    detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
        mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    metadata: ICM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"image">;
    detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
        mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    metadata: ICM;
}>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"image">;
    detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
        mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    metadata: ICM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"image">;
    detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
        mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    metadata: ICM;
}>[k_1_1]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"pdf">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
    }, {
        type: "base64";
        base64: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    file: z.ZodObject<{
        name: z.ZodString;
        id: z.ZodString;
        size: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        id: string;
        size?: number | undefined;
    }, {
        name: string;
        id: string;
        size?: number | undefined;
    }>;
    metadata: PCM;
}, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"pdf">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
    }, {
        type: "base64";
        base64: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    file: z.ZodObject<{
        name: z.ZodString;
        id: z.ZodString;
        size: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        id: string;
        size?: number | undefined;
    }, {
        name: string;
        id: string;
        size?: number | undefined;
    }>;
    metadata: PCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"pdf">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
    }, {
        type: "base64";
        base64: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    file: z.ZodObject<{
        name: z.ZodString;
        id: z.ZodString;
        size: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        id: string;
        size?: number | undefined;
    }, {
        name: string;
        id: string;
        size?: number | undefined;
    }>;
    metadata: PCM;
}>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"pdf">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
    }, {
        type: "base64";
        base64: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    file: z.ZodObject<{
        name: z.ZodString;
        id: z.ZodString;
        size: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        id: string;
        size?: number | undefined;
    }, {
        name: string;
        id: string;
        size?: number | undefined;
    }>;
    metadata: PCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"pdf">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
    }, {
        type: "base64";
        base64: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    file: z.ZodObject<{
        name: z.ZodString;
        id: z.ZodString;
        size: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        id: string;
        size?: number | undefined;
    }, {
        name: string;
        id: string;
        size?: number | undefined;
    }>;
    metadata: PCM;
}>[k_1_2]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"tool-call">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodString;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: TCCM;
}, "strip", z.ZodTypeAny, { [k_4 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"tool-call">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodString;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: TCCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"tool-call">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodString;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: TCCM;
}>, any>[k_4]; }, { [k_1_3 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"tool-call">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodString;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: TCCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"tool-call">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodString;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: TCCM;
}>[k_1_3]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"tool-response">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    data: z.ZodString;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: TRCM;
}, "strip", z.ZodTypeAny, { [k_5 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"tool-response">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    data: z.ZodString;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: TRCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"tool-response">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    data: z.ZodString;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: TRCM;
}>, any>[k_5]; }, { [k_1_4 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"tool-response">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    data: z.ZodString;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: TRCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"tool-response">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    data: z.ZodString;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: TRCM;
}>[k_1_4]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking: string;
        signature: string;
    }, {
        type: "thinking";
        thinking: string;
        signature: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: RCM;
}, "strip", z.ZodTypeAny, { [k_6 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking: string;
        signature: string;
    }, {
        type: "thinking";
        thinking: string;
        signature: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: RCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking: string;
        signature: string;
    }, {
        type: "thinking";
        thinking: string;
        signature: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: RCM;
}>, any>[k_6]; }, { [k_1_5 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking: string;
        signature: string;
    }, {
        type: "thinking";
        thinking: string;
        signature: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: RCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking: string;
        signature: string;
    }, {
        type: "thinking";
        thinking: string;
        signature: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: RCM;
}>[k_1_5]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        value: z.ZodObject<{
            category: z.ZodString;
            probability: z.ZodString;
            blocked: z.ZodBoolean;
            message: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        value: z.ZodObject<{
            code: z.ZodString;
            message: z.ZodString;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            code: string;
            message: string;
            provider?: string | undefined;
        }, {
            code: string;
            message: string;
            provider?: string | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }>]>;
    metadata: ECM;
}, "strip", z.ZodTypeAny, { [k_7 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        value: z.ZodObject<{
            category: z.ZodString;
            probability: z.ZodString;
            blocked: z.ZodBoolean;
            message: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        value: z.ZodObject<{
            code: z.ZodString;
            message: z.ZodString;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            code: string;
            message: string;
            provider?: string | undefined;
        }, {
            code: string;
            message: string;
            provider?: string | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }>]>;
    metadata: ECM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        value: z.ZodObject<{
            category: z.ZodString;
            probability: z.ZodString;
            blocked: z.ZodBoolean;
            message: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        value: z.ZodObject<{
            code: z.ZodString;
            message: z.ZodString;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            code: string;
            message: string;
            provider?: string | undefined;
        }, {
            code: string;
            message: string;
            provider?: string | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }>]>;
    metadata: ECM;
}>, any>[k_7]; }, { [k_1_6 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        value: z.ZodObject<{
            category: z.ZodString;
            probability: z.ZodString;
            blocked: z.ZodBoolean;
            message: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        value: z.ZodObject<{
            code: z.ZodString;
            message: z.ZodString;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            code: string;
            message: string;
            provider?: string | undefined;
        }, {
            code: string;
            message: string;
            provider?: string | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }>]>;
    metadata: ECM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        value: z.ZodObject<{
            category: z.ZodString;
            probability: z.ZodString;
            blocked: z.ZodBoolean;
            message: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        value: z.ZodObject<{
            code: z.ZodString;
            message: z.ZodString;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            code: string;
            message: string;
            provider?: string | undefined;
        }, {
            code: string;
            message: string;
            provider?: string | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }>]>;
    metadata: ECM;
}>[k_1_6]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodString;
        responses: z.ZodArray<z.ZodObject<{
            source: z.ZodString;
            url: z.ZodString;
            title: z.ZodString;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }>, "many">;
        references: z.ZodArray<z.ZodObject<{
            text: z.ZodString;
            responseIndices: z.ZodArray<z.ZodNumber, "many">;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">;
    }, "strip", z.ZodTypeAny, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }>;
    metadata: SRCM;
}, "strip", z.ZodTypeAny, { [k_8 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodString;
        responses: z.ZodArray<z.ZodObject<{
            source: z.ZodString;
            url: z.ZodString;
            title: z.ZodString;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }>, "many">;
        references: z.ZodArray<z.ZodObject<{
            text: z.ZodString;
            responseIndices: z.ZodArray<z.ZodNumber, "many">;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">;
    }, "strip", z.ZodTypeAny, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }>;
    metadata: SRCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodString;
        responses: z.ZodArray<z.ZodObject<{
            source: z.ZodString;
            url: z.ZodString;
            title: z.ZodString;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }>, "many">;
        references: z.ZodArray<z.ZodObject<{
            text: z.ZodString;
            responseIndices: z.ZodArray<z.ZodNumber, "many">;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">;
    }, "strip", z.ZodTypeAny, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }>;
    metadata: SRCM;
}>, any>[k_8]; }, { [k_1_7 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodString;
        responses: z.ZodArray<z.ZodObject<{
            source: z.ZodString;
            url: z.ZodString;
            title: z.ZodString;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }>, "many">;
        references: z.ZodArray<z.ZodObject<{
            text: z.ZodString;
            responseIndices: z.ZodArray<z.ZodNumber, "many">;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">;
    }, "strip", z.ZodTypeAny, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }>;
    metadata: SRCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodString;
        responses: z.ZodArray<z.ZodObject<{
            source: z.ZodString;
            url: z.ZodString;
            title: z.ZodString;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }>, "many">;
        references: z.ZodArray<z.ZodObject<{
            text: z.ZodString;
            responseIndices: z.ZodArray<z.ZodNumber, "many">;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">;
    }, "strip", z.ZodTypeAny, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }>;
    metadata: SRCM;
}>[k_1_7]; }>]>;
type ContentType<TCM extends z.ZodTypeAny = z.ZodUndefined, ICM extends z.ZodTypeAny = z.ZodUndefined, PCM extends z.ZodTypeAny = z.ZodUndefined, TCCM extends z.ZodTypeAny = z.ZodUndefined, TRCM extends z.ZodTypeAny = z.ZodUndefined, RCM extends z.ZodTypeAny = z.ZodUndefined, ECM extends z.ZodTypeAny = z.ZodUndefined, SRCM extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof Content<TCM, ICM, PCM, TCCM, TRCM, RCM, ECM, SRCM>>>;
declare const PartialModalityLiterals: readonly ["partial-text", "partial-tool-call", "partial-reasoning", "partial-error", "partial-search-result"];
declare const PartialModalityEnum: z.ZodEnum<["partial-text", "partial-tool-call", "partial-reasoning", "partial-error", "partial-search-result"]>;
type PartialModalityEnumType = z.infer<typeof PartialModalityEnum>;
declare const PartialContent: <TCM extends z.ZodTypeAny = z.ZodUndefined, TCCM extends z.ZodTypeAny = z.ZodUndefined, TRCM extends z.ZodTypeAny = z.ZodUndefined, RCM extends z.ZodTypeAny = z.ZodUndefined, ECM extends z.ZodTypeAny = z.ZodUndefined, SRCM extends z.ZodTypeAny = z.ZodUndefined>(PartialTextContentMetadata?: TCM, PartialToolCallContentMetadata?: TCCM, PartialToolResponseContentMetadata?: TRCM, PartialReasoningContentMetadata?: RCM, PartialErrorContentMetadata?: ECM, PartialSearchResultContentMetadata?: SRCM) => z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
    modality: z.ZodLiteral<"partial-text">;
    value: z.ZodString;
    metadata: TCM;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-text">;
    value: z.ZodString;
    metadata: TCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-text">;
    value: z.ZodString;
    metadata: TCM;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-text">;
    value: z.ZodString;
    metadata: TCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-text">;
    value: z.ZodString;
    metadata: TCM;
}>[k_1]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"partial-tool-call">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    arguments: z.ZodOptional<z.ZodString>;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: TCCM;
}, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-tool-call">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    arguments: z.ZodOptional<z.ZodString>;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: TCCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-tool-call">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    arguments: z.ZodOptional<z.ZodString>;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: TCCM;
}>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-tool-call">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    arguments: z.ZodOptional<z.ZodString>;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: TCCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-tool-call">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    arguments: z.ZodOptional<z.ZodString>;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: TCCM;
}>[k_1_1]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"partial-reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: RCM;
}, "strip", z.ZodTypeAny, { [k_3 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: RCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: RCM;
}>, any>[k_3]; }, { [k_1_2 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: RCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: RCM;
}>[k_1_2]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"partial-tool-response">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    data: z.ZodOptional<z.ZodString>;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: TRCM;
}, "strip", z.ZodTypeAny, { [k_4 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-tool-response">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    data: z.ZodOptional<z.ZodString>;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: TRCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-tool-response">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    data: z.ZodOptional<z.ZodString>;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: TRCM;
}>, any>[k_4]; }, { [k_1_3 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-tool-response">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    data: z.ZodOptional<z.ZodString>;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: TRCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-tool-response">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    data: z.ZodOptional<z.ZodString>;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: TRCM;
}>[k_1_3]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"partial-error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        category: z.ZodOptional<z.ZodString>;
        probability: z.ZodOptional<z.ZodString>;
        blocked: z.ZodOptional<z.ZodBoolean>;
        message: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        code: z.ZodOptional<z.ZodString>;
        message: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }>]>;
    metadata: ECM;
}, "strip", z.ZodTypeAny, { [k_5 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        category: z.ZodOptional<z.ZodString>;
        probability: z.ZodOptional<z.ZodString>;
        blocked: z.ZodOptional<z.ZodBoolean>;
        message: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        code: z.ZodOptional<z.ZodString>;
        message: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }>]>;
    metadata: ECM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        category: z.ZodOptional<z.ZodString>;
        probability: z.ZodOptional<z.ZodString>;
        blocked: z.ZodOptional<z.ZodBoolean>;
        message: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        code: z.ZodOptional<z.ZodString>;
        message: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }>]>;
    metadata: ECM;
}>, any>[k_5]; }, { [k_1_4 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        category: z.ZodOptional<z.ZodString>;
        probability: z.ZodOptional<z.ZodString>;
        blocked: z.ZodOptional<z.ZodBoolean>;
        message: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        code: z.ZodOptional<z.ZodString>;
        message: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }>]>;
    metadata: ECM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        category: z.ZodOptional<z.ZodString>;
        probability: z.ZodOptional<z.ZodString>;
        blocked: z.ZodOptional<z.ZodBoolean>;
        message: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        code: z.ZodOptional<z.ZodString>;
        message: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }>]>;
    metadata: ECM;
}>[k_1_4]; }>, z.ZodObject<{
    modality: z.ZodLiteral<"partial-search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodOptional<z.ZodString>;
        responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
            source: z.ZodOptional<z.ZodString>;
            url: z.ZodOptional<z.ZodString>;
            title: z.ZodOptional<z.ZodString>;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }>, "many">>;
        references: z.ZodOptional<z.ZodArray<z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }>;
    metadata: SRCM;
}, "strip", z.ZodTypeAny, { [k_6 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodOptional<z.ZodString>;
        responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
            source: z.ZodOptional<z.ZodString>;
            url: z.ZodOptional<z.ZodString>;
            title: z.ZodOptional<z.ZodString>;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }>, "many">>;
        references: z.ZodOptional<z.ZodArray<z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }>;
    metadata: SRCM;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodOptional<z.ZodString>;
        responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
            source: z.ZodOptional<z.ZodString>;
            url: z.ZodOptional<z.ZodString>;
            title: z.ZodOptional<z.ZodString>;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }>, "many">>;
        references: z.ZodOptional<z.ZodArray<z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }>;
    metadata: SRCM;
}>, any>[k_6]; }, { [k_1_5 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodOptional<z.ZodString>;
        responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
            source: z.ZodOptional<z.ZodString>;
            url: z.ZodOptional<z.ZodString>;
            title: z.ZodOptional<z.ZodString>;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }>, "many">>;
        references: z.ZodOptional<z.ZodArray<z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }>;
    metadata: SRCM;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodOptional<z.ZodString>;
        responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
            source: z.ZodOptional<z.ZodString>;
            url: z.ZodOptional<z.ZodString>;
            title: z.ZodOptional<z.ZodString>;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }>, "many">>;
        references: z.ZodOptional<z.ZodArray<z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }>;
    metadata: SRCM;
}>[k_1_5]; }>]>;
type PartialContentType<TCM extends z.ZodTypeAny = z.ZodUndefined, TCCM extends z.ZodTypeAny = z.ZodUndefined, TRCM extends z.ZodTypeAny = z.ZodUndefined, RCM extends z.ZodTypeAny = z.ZodUndefined, ECM extends z.ZodTypeAny = z.ZodUndefined, SRCM extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof PartialContent<TCM, TCCM, TRCM, RCM, ECM, SRCM>>>;

declare const ErrorModalityLiteral: "error";
declare const SafetyErrorTypeLiteral: "safety";
declare const SafetyErrorContentValue: z.ZodObject<{
    type: z.ZodLiteral<"safety">;
    value: z.ZodObject<{
        category: z.ZodString;
        probability: z.ZodString;
        blocked: z.ZodBoolean;
        message: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        message: string;
        category: string;
        probability: string;
        blocked: boolean;
    }, {
        message: string;
        category: string;
        probability: string;
        blocked: boolean;
    }>;
}, "strip", z.ZodTypeAny, {
    type: "safety";
    value: {
        message: string;
        category: string;
        probability: string;
        blocked: boolean;
    };
}, {
    type: "safety";
    value: {
        message: string;
        category: string;
        probability: string;
        blocked: boolean;
    };
}>;
type SafetyErrorContentType = z.infer<typeof SafetyErrorContentValue>;
declare const ResponseErrorTypeLiteral: "response_error";
declare const ResponseErrorContentValue: z.ZodObject<{
    type: z.ZodLiteral<"response_error">;
    value: z.ZodObject<{
        code: z.ZodString;
        message: z.ZodString;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        code: string;
        message: string;
        provider?: string | undefined;
    }, {
        code: string;
        message: string;
        provider?: string | undefined;
    }>;
}, "strip", z.ZodTypeAny, {
    type: "response_error";
    value: {
        code: string;
        message: string;
        provider?: string | undefined;
    };
}, {
    type: "response_error";
    value: {
        code: string;
        message: string;
        provider?: string | undefined;
    };
}>;
type ResponseErrorContentType = z.infer<typeof ResponseErrorContentValue>;
declare const ErrorContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        value: z.ZodObject<{
            category: z.ZodString;
            probability: z.ZodString;
            blocked: z.ZodBoolean;
            message: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        value: z.ZodObject<{
            code: z.ZodString;
            message: z.ZodString;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            code: string;
            message: string;
            provider?: string | undefined;
        }, {
            code: string;
            message: string;
            provider?: string | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }>]>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        value: z.ZodObject<{
            category: z.ZodString;
            probability: z.ZodString;
            blocked: z.ZodBoolean;
            message: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        value: z.ZodObject<{
            code: z.ZodString;
            message: z.ZodString;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            code: string;
            message: string;
            provider?: string | undefined;
        }, {
            code: string;
            message: string;
            provider?: string | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }>]>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        value: z.ZodObject<{
            category: z.ZodString;
            probability: z.ZodString;
            blocked: z.ZodBoolean;
            message: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        value: z.ZodObject<{
            code: z.ZodString;
            message: z.ZodString;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            code: string;
            message: string;
            provider?: string | undefined;
        }, {
            code: string;
            message: string;
            provider?: string | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }>]>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        value: z.ZodObject<{
            category: z.ZodString;
            probability: z.ZodString;
            blocked: z.ZodBoolean;
            message: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        value: z.ZodObject<{
            code: z.ZodString;
            message: z.ZodString;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            code: string;
            message: string;
            provider?: string | undefined;
        }, {
            code: string;
            message: string;
            provider?: string | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }>]>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        value: z.ZodObject<{
            category: z.ZodString;
            probability: z.ZodString;
            blocked: z.ZodBoolean;
            message: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }, {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }, {
        type: "safety";
        value: {
            message: string;
            category: string;
            probability: string;
            blocked: boolean;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        value: z.ZodObject<{
            code: z.ZodString;
            message: z.ZodString;
            provider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            code: string;
            message: string;
            provider?: string | undefined;
        }, {
            code: string;
            message: string;
            provider?: string | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }, {
        type: "response_error";
        value: {
            code: string;
            message: string;
            provider?: string | undefined;
        };
    }>]>;
    metadata: M;
}>[k_1]; }>;
type ErrorContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof ErrorContent<M>>>;
declare const PartialErrorModalityLiteral: "partial-error";
declare const PartialSafetyErrorContentValue: z.ZodObject<{
    type: z.ZodLiteral<"safety">;
    category: z.ZodOptional<z.ZodString>;
    probability: z.ZodOptional<z.ZodString>;
    blocked: z.ZodOptional<z.ZodBoolean>;
    message: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    type: "safety";
    message?: string | undefined;
    category?: string | undefined;
    probability?: string | undefined;
    blocked?: boolean | undefined;
}, {
    type: "safety";
    message?: string | undefined;
    category?: string | undefined;
    probability?: string | undefined;
    blocked?: boolean | undefined;
}>;
type PartialSafetyErrorContentType = z.infer<typeof PartialSafetyErrorContentValue>;
declare const PartialResponseErrorContentValue: z.ZodObject<{
    type: z.ZodLiteral<"response_error">;
    code: z.ZodOptional<z.ZodString>;
    message: z.ZodOptional<z.ZodString>;
    provider: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    type: "response_error";
    code?: string | undefined;
    message?: string | undefined;
    provider?: string | undefined;
}, {
    type: "response_error";
    code?: string | undefined;
    message?: string | undefined;
    provider?: string | undefined;
}>;
type PartialResponseErrorContentType = z.infer<typeof PartialResponseErrorContentValue>;
declare const PartialErrorContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"partial-error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        category: z.ZodOptional<z.ZodString>;
        probability: z.ZodOptional<z.ZodString>;
        blocked: z.ZodOptional<z.ZodBoolean>;
        message: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        code: z.ZodOptional<z.ZodString>;
        message: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }>]>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        category: z.ZodOptional<z.ZodString>;
        probability: z.ZodOptional<z.ZodString>;
        blocked: z.ZodOptional<z.ZodBoolean>;
        message: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        code: z.ZodOptional<z.ZodString>;
        message: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }>]>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        category: z.ZodOptional<z.ZodString>;
        probability: z.ZodOptional<z.ZodString>;
        blocked: z.ZodOptional<z.ZodBoolean>;
        message: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        code: z.ZodOptional<z.ZodString>;
        message: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }>]>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        category: z.ZodOptional<z.ZodString>;
        probability: z.ZodOptional<z.ZodString>;
        blocked: z.ZodOptional<z.ZodBoolean>;
        message: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        code: z.ZodOptional<z.ZodString>;
        message: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }>]>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-error">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"safety">;
        category: z.ZodOptional<z.ZodString>;
        probability: z.ZodOptional<z.ZodString>;
        blocked: z.ZodOptional<z.ZodBoolean>;
        message: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }, {
        type: "safety";
        message?: string | undefined;
        category?: string | undefined;
        probability?: string | undefined;
        blocked?: boolean | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"response_error">;
        code: z.ZodOptional<z.ZodString>;
        message: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }, {
        type: "response_error";
        code?: string | undefined;
        message?: string | undefined;
        provider?: string | undefined;
    }>]>;
    metadata: M;
}>[k_1]; }>;
type PartialErrorContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof PartialErrorContent<M>>>;

declare const ImageModalityLiteral: "image";
declare const Base64ImageContentTypeLiteral: "base64";
declare const Base64ImageContentMediaTypeLiterals: readonly ["png", "jpeg", "webp", "gif"];
declare const Base64ImageContentValue: z.ZodObject<{
    type: z.ZodLiteral<"base64">;
    base64: z.ZodString;
    mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
}, "strip", z.ZodTypeAny, {
    type: "base64";
    base64: string;
    mediaType: "png" | "jpeg" | "webp" | "gif";
}, {
    type: "base64";
    base64: string;
    mediaType: "png" | "jpeg" | "webp" | "gif";
}>;
type Base64ImageContentValueType = z.infer<typeof Base64ImageContentValue>;
declare const UrlImageContentTypeLiteral: "url";
declare const UrlImageContentValue: z.ZodObject<{
    type: z.ZodLiteral<"url">;
    url: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "url";
    url: string;
}, {
    type: "url";
    url: string;
}>;
type UrlImageContentValueType = z.infer<typeof UrlImageContentValue>;
declare const ImageContentValue: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
    type: z.ZodLiteral<"base64">;
    base64: z.ZodString;
    mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
}, "strip", z.ZodTypeAny, {
    type: "base64";
    base64: string;
    mediaType: "png" | "jpeg" | "webp" | "gif";
}, {
    type: "base64";
    base64: string;
    mediaType: "png" | "jpeg" | "webp" | "gif";
}>, z.ZodObject<{
    type: z.ZodLiteral<"url">;
    url: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "url";
    url: string;
}, {
    type: "url";
    url: string;
}>]>;
type ImageContentValueType = z.infer<typeof ImageContentValue>;
declare const ImageContentDetails: readonly ["low", "medium", "high", "auto"];
declare const ImageContentDetailsLiteral: z.ZodEnum<["low", "medium", "high", "auto"]>;
type ImageContentDetailsLiteralType = z.infer<typeof ImageContentDetailsLiteral>;
declare const ImageContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"image">;
    detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
        mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"image">;
    detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
        mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"image">;
    detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
        mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"image">;
    detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
        mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"image">;
    detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
        mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }, {
        type: "base64";
        base64: string;
        mediaType: "png" | "jpeg" | "webp" | "gif";
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    metadata: M;
}>[k_1]; }>;
type ImageContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof ImageContent<M>>>;

declare const PdfModalityLiteral: "pdf";
declare const Base64PdfContentTypeLiteral: "base64";
declare const Base64PdfContentValue: z.ZodObject<{
    type: z.ZodLiteral<"base64">;
    base64: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "base64";
    base64: string;
}, {
    type: "base64";
    base64: string;
}>;
type Base64PdfContentValueType = z.infer<typeof Base64PdfContentValue>;
declare const UrlPdfContentTypeLiteral: "url";
declare const UrlPdfContentValue: z.ZodObject<{
    type: z.ZodLiteral<"url">;
    url: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "url";
    url: string;
}, {
    type: "url";
    url: string;
}>;
type UrlPdfContentValueType = z.infer<typeof UrlPdfContentValue>;
declare const PdfContentValue: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
    type: z.ZodLiteral<"base64">;
    base64: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "base64";
    base64: string;
}, {
    type: "base64";
    base64: string;
}>, z.ZodObject<{
    type: z.ZodLiteral<"url">;
    url: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "url";
    url: string;
}, {
    type: "url";
    url: string;
}>]>;
type PdfContentValueType = z.infer<typeof PdfContentValue>;
declare const PdfContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"pdf">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
    }, {
        type: "base64";
        base64: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    file: z.ZodObject<{
        name: z.ZodString;
        id: z.ZodString;
        size: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        id: string;
        size?: number | undefined;
    }, {
        name: string;
        id: string;
        size?: number | undefined;
    }>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"pdf">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
    }, {
        type: "base64";
        base64: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    file: z.ZodObject<{
        name: z.ZodString;
        id: z.ZodString;
        size: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        id: string;
        size?: number | undefined;
    }, {
        name: string;
        id: string;
        size?: number | undefined;
    }>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"pdf">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
    }, {
        type: "base64";
        base64: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    file: z.ZodObject<{
        name: z.ZodString;
        id: z.ZodString;
        size: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        id: string;
        size?: number | undefined;
    }, {
        name: string;
        id: string;
        size?: number | undefined;
    }>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"pdf">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
    }, {
        type: "base64";
        base64: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    file: z.ZodObject<{
        name: z.ZodString;
        id: z.ZodString;
        size: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        id: string;
        size?: number | undefined;
    }, {
        name: string;
        id: string;
        size?: number | undefined;
    }>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"pdf">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"base64">;
        base64: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "base64";
        base64: string;
    }, {
        type: "base64";
        base64: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"url">;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "url";
        url: string;
    }, {
        type: "url";
        url: string;
    }>]>;
    file: z.ZodObject<{
        name: z.ZodString;
        id: z.ZodString;
        size: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        id: string;
        size?: number | undefined;
    }, {
        name: string;
        id: string;
        size?: number | undefined;
    }>;
    metadata: M;
}>[k_1]; }>;
type PdfContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof PdfContent<M>>>;

declare const ReasoningModalityLiteral: "reasoning";
declare const PartialReasoningModalityLiteral: "partial-reasoning";
declare const ReasoningContentTypeLiteral: "thinking";
declare const RedactedReasoningContentTypeLiteral: "redacted";
declare const ReasoningContentValue: z.ZodObject<{
    type: z.ZodLiteral<"thinking">;
    thinking: z.ZodString;
    signature: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "thinking";
    thinking: string;
    signature: string;
}, {
    type: "thinking";
    thinking: string;
    signature: string;
}>;
type ReasoningContentValueType = z.infer<typeof ReasoningContentValue>;
declare const RedactedReasoningContentValue: z.ZodObject<{
    type: z.ZodLiteral<"redacted">;
    data: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "redacted";
    data: string;
}, {
    type: "redacted";
    data: string;
}>;
type RedactedReasoningContentValueType = z.infer<typeof RedactedReasoningContentValue>;
declare const ReasoningContentValueUnion: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
    type: z.ZodLiteral<"thinking">;
    thinking: z.ZodString;
    signature: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "thinking";
    thinking: string;
    signature: string;
}, {
    type: "thinking";
    thinking: string;
    signature: string;
}>, z.ZodObject<{
    type: z.ZodLiteral<"redacted">;
    data: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "redacted";
    data: string;
}, {
    type: "redacted";
    data: string;
}>]>;
type ReasoningContentValueUnionType = z.infer<typeof ReasoningContentValueUnion>;
declare const ReasoningContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking: string;
        signature: string;
    }, {
        type: "thinking";
        thinking: string;
        signature: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking: string;
        signature: string;
    }, {
        type: "thinking";
        thinking: string;
        signature: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking: string;
        signature: string;
    }, {
        type: "thinking";
        thinking: string;
        signature: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking: string;
        signature: string;
    }, {
        type: "thinking";
        thinking: string;
        signature: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        signature: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking: string;
        signature: string;
    }, {
        type: "thinking";
        thinking: string;
        signature: string;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: M;
}>[k_1]; }>;
type ReasoningContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof ReasoningContent<M>>>;
declare const PartialReasoningContentValue: z.ZodObject<{
    type: z.ZodLiteral<"thinking">;
    thinking: z.ZodOptional<z.ZodString>;
    signature: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    type: "thinking";
    thinking?: string | undefined;
    signature?: string | undefined;
}, {
    type: "thinking";
    thinking?: string | undefined;
    signature?: string | undefined;
}>;
declare const PartialReasoningContentValueUnion: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
    type: z.ZodLiteral<"thinking">;
    thinking: z.ZodOptional<z.ZodString>;
    signature: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    type: "thinking";
    thinking?: string | undefined;
    signature?: string | undefined;
}, {
    type: "thinking";
    thinking?: string | undefined;
    signature?: string | undefined;
}>, z.ZodObject<{
    type: z.ZodLiteral<"redacted">;
    data: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: "redacted";
    data: string;
}, {
    type: "redacted";
    data: string;
}>]>;
declare const PartialReasoningContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"partial-reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-reasoning">;
    value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }, {
        type: "thinking";
        thinking?: string | undefined;
        signature?: string | undefined;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"redacted">;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: "redacted";
        data: string;
    }, {
        type: "redacted";
        data: string;
    }>]>;
    metadata: M;
}>[k_1]; }>;
type PartialReasoningContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof PartialReasoningContent<M>>>;

declare const SearchResultModalityLiteral: "search-result";
declare const SearchResultContentValue: z.ZodObject<{
    type: z.ZodOptional<z.ZodString>;
    query: z.ZodString;
    responses: z.ZodArray<z.ZodObject<{
        source: z.ZodString;
        url: z.ZodString;
        title: z.ZodString;
        snippet: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        url: string;
        source: string;
        title: string;
        snippet?: string | undefined;
    }, {
        url: string;
        source: string;
        title: string;
        snippet?: string | undefined;
    }>, "many">;
    references: z.ZodArray<z.ZodObject<{
        text: z.ZodString;
        responseIndices: z.ZodArray<z.ZodNumber, "many">;
        startIndex: z.ZodOptional<z.ZodNumber>;
        endIndex: z.ZodOptional<z.ZodNumber>;
        confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
    }, "strip", z.ZodTypeAny, {
        text: string;
        responseIndices: number[];
        startIndex?: number | undefined;
        endIndex?: number | undefined;
        confidenceScores?: number[] | undefined;
    }, {
        text: string;
        responseIndices: number[];
        startIndex?: number | undefined;
        endIndex?: number | undefined;
        confidenceScores?: number[] | undefined;
    }>, "many">;
}, "strip", z.ZodTypeAny, {
    query: string;
    responses: {
        url: string;
        source: string;
        title: string;
        snippet?: string | undefined;
    }[];
    references: {
        text: string;
        responseIndices: number[];
        startIndex?: number | undefined;
        endIndex?: number | undefined;
        confidenceScores?: number[] | undefined;
    }[];
    type?: string | undefined;
}, {
    query: string;
    responses: {
        url: string;
        source: string;
        title: string;
        snippet?: string | undefined;
    }[];
    references: {
        text: string;
        responseIndices: number[];
        startIndex?: number | undefined;
        endIndex?: number | undefined;
        confidenceScores?: number[] | undefined;
    }[];
    type?: string | undefined;
}>;
type SearchResultContentValueType = z.infer<typeof SearchResultContentValue>;
declare const SearchResultContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodString;
        responses: z.ZodArray<z.ZodObject<{
            source: z.ZodString;
            url: z.ZodString;
            title: z.ZodString;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }>, "many">;
        references: z.ZodArray<z.ZodObject<{
            text: z.ZodString;
            responseIndices: z.ZodArray<z.ZodNumber, "many">;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">;
    }, "strip", z.ZodTypeAny, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodString;
        responses: z.ZodArray<z.ZodObject<{
            source: z.ZodString;
            url: z.ZodString;
            title: z.ZodString;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }>, "many">;
        references: z.ZodArray<z.ZodObject<{
            text: z.ZodString;
            responseIndices: z.ZodArray<z.ZodNumber, "many">;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">;
    }, "strip", z.ZodTypeAny, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodString;
        responses: z.ZodArray<z.ZodObject<{
            source: z.ZodString;
            url: z.ZodString;
            title: z.ZodString;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }>, "many">;
        references: z.ZodArray<z.ZodObject<{
            text: z.ZodString;
            responseIndices: z.ZodArray<z.ZodNumber, "many">;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">;
    }, "strip", z.ZodTypeAny, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodString;
        responses: z.ZodArray<z.ZodObject<{
            source: z.ZodString;
            url: z.ZodString;
            title: z.ZodString;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }>, "many">;
        references: z.ZodArray<z.ZodObject<{
            text: z.ZodString;
            responseIndices: z.ZodArray<z.ZodNumber, "many">;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">;
    }, "strip", z.ZodTypeAny, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodString;
        responses: z.ZodArray<z.ZodObject<{
            source: z.ZodString;
            url: z.ZodString;
            title: z.ZodString;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }, {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }>, "many">;
        references: z.ZodArray<z.ZodObject<{
            text: z.ZodString;
            responseIndices: z.ZodArray<z.ZodNumber, "many">;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">;
    }, "strip", z.ZodTypeAny, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }, {
        query: string;
        responses: {
            url: string;
            source: string;
            title: string;
            snippet?: string | undefined;
        }[];
        references: {
            text: string;
            responseIndices: number[];
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[];
        type?: string | undefined;
    }>;
    metadata: M;
}>[k_1]; }>;
type SearchResultContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof SearchResultContent<M>>>;
declare const PartialSearchResultModalityLiteral: "partial-search-result";
declare const PartialSearchResultContentValue: z.ZodObject<{
    type: z.ZodOptional<z.ZodString>;
    query: z.ZodOptional<z.ZodString>;
    responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
        source: z.ZodOptional<z.ZodString>;
        url: z.ZodOptional<z.ZodString>;
        title: z.ZodOptional<z.ZodString>;
        snippet: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        url?: string | undefined;
        source?: string | undefined;
        title?: string | undefined;
        snippet?: string | undefined;
    }, {
        url?: string | undefined;
        source?: string | undefined;
        title?: string | undefined;
        snippet?: string | undefined;
    }>, "many">>;
    references: z.ZodOptional<z.ZodArray<z.ZodObject<{
        text: z.ZodOptional<z.ZodString>;
        responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        startIndex: z.ZodOptional<z.ZodNumber>;
        endIndex: z.ZodOptional<z.ZodNumber>;
        confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
    }, "strip", z.ZodTypeAny, {
        text?: string | undefined;
        responseIndices?: number[] | undefined;
        startIndex?: number | undefined;
        endIndex?: number | undefined;
        confidenceScores?: number[] | undefined;
    }, {
        text?: string | undefined;
        responseIndices?: number[] | undefined;
        startIndex?: number | undefined;
        endIndex?: number | undefined;
        confidenceScores?: number[] | undefined;
    }>, "many">>;
}, "strip", z.ZodTypeAny, {
    type?: string | undefined;
    query?: string | undefined;
    responses?: {
        url?: string | undefined;
        source?: string | undefined;
        title?: string | undefined;
        snippet?: string | undefined;
    }[] | undefined;
    references?: {
        text?: string | undefined;
        responseIndices?: number[] | undefined;
        startIndex?: number | undefined;
        endIndex?: number | undefined;
        confidenceScores?: number[] | undefined;
    }[] | undefined;
}, {
    type?: string | undefined;
    query?: string | undefined;
    responses?: {
        url?: string | undefined;
        source?: string | undefined;
        title?: string | undefined;
        snippet?: string | undefined;
    }[] | undefined;
    references?: {
        text?: string | undefined;
        responseIndices?: number[] | undefined;
        startIndex?: number | undefined;
        endIndex?: number | undefined;
        confidenceScores?: number[] | undefined;
    }[] | undefined;
}>;
type PartialSearchResultContentValueType = z.infer<typeof PartialSearchResultContentValue>;
declare const PartialSearchResultContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"partial-search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodOptional<z.ZodString>;
        responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
            source: z.ZodOptional<z.ZodString>;
            url: z.ZodOptional<z.ZodString>;
            title: z.ZodOptional<z.ZodString>;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }>, "many">>;
        references: z.ZodOptional<z.ZodArray<z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodOptional<z.ZodString>;
        responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
            source: z.ZodOptional<z.ZodString>;
            url: z.ZodOptional<z.ZodString>;
            title: z.ZodOptional<z.ZodString>;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }>, "many">>;
        references: z.ZodOptional<z.ZodArray<z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodOptional<z.ZodString>;
        responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
            source: z.ZodOptional<z.ZodString>;
            url: z.ZodOptional<z.ZodString>;
            title: z.ZodOptional<z.ZodString>;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }>, "many">>;
        references: z.ZodOptional<z.ZodArray<z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodOptional<z.ZodString>;
        responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
            source: z.ZodOptional<z.ZodString>;
            url: z.ZodOptional<z.ZodString>;
            title: z.ZodOptional<z.ZodString>;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }>, "many">>;
        references: z.ZodOptional<z.ZodArray<z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-search-result">;
    value: z.ZodObject<{
        type: z.ZodOptional<z.ZodString>;
        query: z.ZodOptional<z.ZodString>;
        responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
            source: z.ZodOptional<z.ZodString>;
            url: z.ZodOptional<z.ZodString>;
            title: z.ZodOptional<z.ZodString>;
            snippet: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }, {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }>, "many">>;
        references: z.ZodOptional<z.ZodArray<z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            responseIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            startIndex: z.ZodOptional<z.ZodNumber>;
            endIndex: z.ZodOptional<z.ZodNumber>;
            confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }, {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }, {
        type?: string | undefined;
        query?: string | undefined;
        responses?: {
            url?: string | undefined;
            source?: string | undefined;
            title?: string | undefined;
            snippet?: string | undefined;
        }[] | undefined;
        references?: {
            text?: string | undefined;
            responseIndices?: number[] | undefined;
            startIndex?: number | undefined;
            endIndex?: number | undefined;
            confidenceScores?: number[] | undefined;
        }[] | undefined;
    }>;
    metadata: M;
}>[k_1]; }>;
type PartialSearchResultContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof PartialSearchResultContent<M>>>;

declare const TextModalityLiteral: "text";
declare const TextContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"text">;
    value: z.ZodString;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"text">;
    value: z.ZodString;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"text">;
    value: z.ZodString;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"text">;
    value: z.ZodString;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"text">;
    value: z.ZodString;
    metadata: M;
}>[k_1]; }>;
type TextContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof TextContent<M>>>;
declare const PartialTextModalityLiteral: "partial-text";
declare const PartialTextContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"partial-text">;
    value: z.ZodString;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-text">;
    value: z.ZodString;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-text">;
    value: z.ZodString;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-text">;
    value: z.ZodString;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-text">;
    value: z.ZodString;
    metadata: M;
}>[k_1]; }>;
type PartialTextContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof PartialTextContent<M>>>;

declare const TokenModalityLiteral: "token";
declare const TokenContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"token">;
    value: z.ZodArray<z.ZodNumber, "many">;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"token">;
    value: z.ZodArray<z.ZodNumber, "many">;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"token">;
    value: z.ZodArray<z.ZodNumber, "many">;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"token">;
    value: z.ZodArray<z.ZodNumber, "many">;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"token">;
    value: z.ZodArray<z.ZodNumber, "many">;
    metadata: M;
}>[k_1]; }>;
type TokenContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof TokenContent<M>>>;

declare const ToolCallModalityLiteral: "tool-call";
declare const ToolCallContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"tool-call">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodString;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"tool-call">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodString;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"tool-call">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodString;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"tool-call">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodString;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"tool-call">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodString;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: M;
}>[k_1]; }>;
type ToolCallContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof ToolCallContent<M>>>;
declare const PartialToolCallModalityLiteral: "partial-tool-call";
declare const PartialToolCallContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"partial-tool-call">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    arguments: z.ZodOptional<z.ZodString>;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-tool-call">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    arguments: z.ZodOptional<z.ZodString>;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-tool-call">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    arguments: z.ZodOptional<z.ZodString>;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-tool-call">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    arguments: z.ZodOptional<z.ZodString>;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-tool-call">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    arguments: z.ZodOptional<z.ZodString>;
    serverName: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    metadata: M;
}>[k_1]; }>;
type PartialToolCallContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof PartialToolCallContent<M>>>;

declare const ToolResponseModalityLiteral: "tool-response";
declare const ToolResponseContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"tool-response">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    data: z.ZodString;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"tool-response">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    data: z.ZodString;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"tool-response">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    data: z.ZodString;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"tool-response">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    data: z.ZodString;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"tool-response">;
    index: z.ZodNumber;
    id: z.ZodString;
    name: z.ZodString;
    data: z.ZodString;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: M;
}>[k_1]; }>;
type ToolResponseContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof ToolResponseContent<M>>>;
declare const PartialToolResponseModalityLiteral: "partial-tool-response";
declare const PartialToolResponseContent: <M extends z.ZodTypeAny = z.ZodUndefined>(Metadata?: M) => z.ZodObject<{
    modality: z.ZodLiteral<"partial-tool-response">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    data: z.ZodOptional<z.ZodString>;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: M;
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-tool-response">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    data: z.ZodOptional<z.ZodString>;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: M;
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
    modality: z.ZodLiteral<"partial-tool-response">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    data: z.ZodOptional<z.ZodString>;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: M;
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-tool-response">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    data: z.ZodOptional<z.ZodString>;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: M;
}>]: z.baseObjectInputType<{
    modality: z.ZodLiteral<"partial-tool-response">;
    index: z.ZodNumber;
    id: z.ZodOptional<z.ZodString>;
    name: z.ZodOptional<z.ZodString>;
    data: z.ZodOptional<z.ZodString>;
    apiResponse: z.ZodOptional<z.ZodObject<{
        statusCode: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        statusCode: number;
    }, {
        statusCode: number;
    }>>;
    metadata: M;
}>[k_1]; }>;
type PartialToolResponseContentType<M extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof PartialToolResponseContent<M>>>;

/**
 * A pair of per‑million‑token rates for a single price category (e.g., base input/output).
 * Represents the input and output cost for 1 million tokens within a specific category (like 'base') of a pricing tier.
 */
declare const ChatModelTokenPairPrice: z.ZodObject<{
    inputPricePerMillion: z.ZodNumber;
    outputPricePerMillion: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    inputPricePerMillion: number;
    outputPricePerMillion: number;
}, {
    inputPricePerMillion: number;
    outputPricePerMillion: number;
}>;
type ChatModelTokenPairPriceType = z.infer<typeof ChatModelTokenPairPrice>;
/**
 * Defines the price categories (e.g., base) applicable within a single pricing tier (`ChatModelTokenRangePrice`).
 * Each category holds a `ChatModelTokenPairPrice`.
 */
declare const ChatModelTokenTypePrice: z.ZodObject<{
    base: z.ZodObject<{
        inputPricePerMillion: z.ZodNumber;
        outputPricePerMillion: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        inputPricePerMillion: number;
        outputPricePerMillion: number;
    }, {
        inputPricePerMillion: number;
        outputPricePerMillion: number;
    }>;
}, "strip", z.ZodTypeAny, {
    base: {
        inputPricePerMillion: number;
        outputPricePerMillion: number;
    };
}, {
    base: {
        inputPricePerMillion: number;
        outputPricePerMillion: number;
    };
}>;
type ChatModelTokenTypePriceType = z.infer<typeof ChatModelTokenTypePrice>;
/**
 * Defines a single tier in a model's pricing schedule (`ChatModelPrice`), based on token count range.
 * - `minTokens`: inclusive lower bound (integer ≥ 0).
 * - `maxTokens`: exclusive upper bound (integer > minTokens), or `null` for ∞.
 * - `prices`: the `ChatModelTokenTypePrice` (categories and their rates) applicable to this tier.
 */
declare const ChatModelTokenRangePrice: z.ZodEffects<z.ZodObject<{
    minTokens: z.ZodNumber;
    maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    prices: z.ZodObject<{
        base: z.ZodObject<{
            inputPricePerMillion: z.ZodNumber;
            outputPricePerMillion: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            inputPricePerMillion: number;
            outputPricePerMillion: number;
        }, {
            inputPricePerMillion: number;
            outputPricePerMillion: number;
        }>;
    }, "strip", z.ZodTypeAny, {
        base: {
            inputPricePerMillion: number;
            outputPricePerMillion: number;
        };
    }, {
        base: {
            inputPricePerMillion: number;
            outputPricePerMillion: number;
        };
    }>;
}, "strip", z.ZodTypeAny, {
    minTokens: number;
    prices: {
        base: {
            inputPricePerMillion: number;
            outputPricePerMillion: number;
        };
    };
    maxTokens?: number | null | undefined;
}, {
    minTokens: number;
    prices: {
        base: {
            inputPricePerMillion: number;
            outputPricePerMillion: number;
        };
    };
    maxTokens?: number | null | undefined;
}>, {
    minTokens: number;
    prices: {
        base: {
            inputPricePerMillion: number;
            outputPricePerMillion: number;
        };
    };
    maxTokens?: number | null | undefined;
}, {
    minTokens: number;
    prices: {
        base: {
            inputPricePerMillion: number;
            outputPricePerMillion: number;
        };
    };
    maxTokens?: number | null | undefined;
}>;
type ChatModelTokenRangePriceType = z.infer<typeof ChatModelTokenRangePrice>;
/**
 * Full pricing schedule for a specific chat model, potentially with multiple `ChatModelTokenRangePrice` tiers.
 * Ensures tiers are contiguous and cover the full range from 0 to infinity.
 * - First tier must start at 0 tokens.
 * - `tokenRanges` must be contiguous: each tier.minTokens === previous.maxTokens.
 * - Last `tokenRange` must have maxTokens = null (infinite).
 */
declare const ChatModelPrice: z.ZodEffects<z.ZodObject<{
    modelName: z.ZodString;
    currency: z.ZodDefault<z.ZodString>;
    tokenRanges: z.ZodArray<z.ZodEffects<z.ZodObject<{
        minTokens: z.ZodNumber;
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        prices: z.ZodObject<{
            base: z.ZodObject<{
                inputPricePerMillion: z.ZodNumber;
                outputPricePerMillion: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            }, {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            }>;
        }, "strip", z.ZodTypeAny, {
            base: {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            };
        }, {
            base: {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            };
        }>;
    }, "strip", z.ZodTypeAny, {
        minTokens: number;
        prices: {
            base: {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            };
        };
        maxTokens?: number | null | undefined;
    }, {
        minTokens: number;
        prices: {
            base: {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            };
        };
        maxTokens?: number | null | undefined;
    }>, {
        minTokens: number;
        prices: {
            base: {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            };
        };
        maxTokens?: number | null | undefined;
    }, {
        minTokens: number;
        prices: {
            base: {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            };
        };
        maxTokens?: number | null | undefined;
    }>, "many">;
}, "strip", z.ZodTypeAny, {
    modelName: string;
    currency: string;
    tokenRanges: {
        minTokens: number;
        prices: {
            base: {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            };
        };
        maxTokens?: number | null | undefined;
    }[];
}, {
    modelName: string;
    tokenRanges: {
        minTokens: number;
        prices: {
            base: {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            };
        };
        maxTokens?: number | null | undefined;
    }[];
    currency?: string | undefined;
}>, {
    modelName: string;
    currency: string;
    tokenRanges: {
        minTokens: number;
        prices: {
            base: {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            };
        };
        maxTokens?: number | null | undefined;
    }[];
}, {
    modelName: string;
    tokenRanges: {
        minTokens: number;
        prices: {
            base: {
                inputPricePerMillion: number;
                outputPricePerMillion: number;
            };
        };
        maxTokens?: number | null | undefined;
    }[];
    currency?: string | undefined;
}>;
type ChatModelPriceType = z.infer<typeof ChatModelPrice>;

/**
 * Flat, input-token-based pricing for a single embedding model.
 *
 * Unlike `ChatModelPrice` (which has input/output rates and token-range tiers),
 * embedding models are billed only on input tokens at a single flat rate, so a
 * tier schedule is unnecessary.
 */
declare const EmbeddingModelPrice: z.ZodObject<{
    modelName: z.ZodString;
    currency: z.ZodDefault<z.ZodString>;
    inputPricePerMillion: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    inputPricePerMillion: number;
    modelName: string;
    currency: string;
}, {
    inputPricePerMillion: number;
    modelName: string;
    currency?: string | undefined;
}>;
type EmbeddingModelPriceType = z.infer<typeof EmbeddingModelPrice>;

declare const FunctionToolLiteral: "function";
declare const FunctionParameterTypes: string[];
declare const FunctionParameterTypesLiteral: z.ZodEnum<["object", "array", "number", "string", "boolean", "null"]>;
type FunctionParameterTypesType = z.infer<typeof FunctionParameterTypesLiteral>;
declare const FunctionParameter: z.ZodObject<{
    anyOf: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
    type: z.ZodOptional<z.ZodEnum<["object", "array", "number", "string", "boolean", "null"]>>;
    default: z.ZodOptional<z.ZodAny>;
    title: z.ZodOptional<z.ZodString>;
    description: z.ZodOptional<z.ZodString>;
    properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    minItems: z.ZodOptional<z.ZodNumber>;
    maxItems: z.ZodOptional<z.ZodNumber>;
    items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
    minimum: z.ZodOptional<z.ZodNumber>;
    maximum: z.ZodOptional<z.ZodNumber>;
    minLength: z.ZodOptional<z.ZodNumber>;
    maxLength: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    minimum?: number | undefined;
    type?: "string" | "number" | "boolean" | "object" | "null" | "array" | undefined;
    maximum?: number | undefined;
    default?: any;
    title?: string | undefined;
    enum?: (string | number | boolean | null)[] | undefined;
    anyOf?: any[] | undefined;
    description?: string | undefined;
    properties?: Record<string, any> | undefined;
    required?: string[] | undefined;
    minItems?: number | undefined;
    maxItems?: number | undefined;
    items?: Record<string, any> | undefined;
    minLength?: number | undefined;
    maxLength?: number | undefined;
}, {
    minimum?: number | undefined;
    type?: "string" | "number" | "boolean" | "object" | "null" | "array" | undefined;
    maximum?: number | undefined;
    default?: any;
    title?: string | undefined;
    enum?: (string | number | boolean | null)[] | undefined;
    anyOf?: any[] | undefined;
    description?: string | undefined;
    properties?: Record<string, any> | undefined;
    required?: string[] | undefined;
    minItems?: number | undefined;
    maxItems?: number | undefined;
    items?: Record<string, any> | undefined;
    minLength?: number | undefined;
    maxLength?: number | undefined;
}>;
type FunctionParameterType = z.infer<typeof FunctionParameter>;
declare const FunctionParameters: z.ZodObject<{
    type: z.ZodEnum<["object"]>;
    title: z.ZodOptional<z.ZodString>;
    $defs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        anyOf: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
        type: z.ZodOptional<z.ZodEnum<["object", "array", "number", "string", "boolean", "null"]>>;
        default: z.ZodOptional<z.ZodAny>;
        title: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        minItems: z.ZodOptional<z.ZodNumber>;
        maxItems: z.ZodOptional<z.ZodNumber>;
        items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
        minimum: z.ZodOptional<z.ZodNumber>;
        maximum: z.ZodOptional<z.ZodNumber>;
        minLength: z.ZodOptional<z.ZodNumber>;
        maxLength: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        minimum?: number | undefined;
        type?: "string" | "number" | "boolean" | "object" | "null" | "array" | undefined;
        maximum?: number | undefined;
        default?: any;
        title?: string | undefined;
        enum?: (string | number | boolean | null)[] | undefined;
        anyOf?: any[] | undefined;
        description?: string | undefined;
        properties?: Record<string, any> | undefined;
        required?: string[] | undefined;
        minItems?: number | undefined;
        maxItems?: number | undefined;
        items?: Record<string, any> | undefined;
        minLength?: number | undefined;
        maxLength?: number | undefined;
    }, {
        minimum?: number | undefined;
        type?: "string" | "number" | "boolean" | "object" | "null" | "array" | undefined;
        maximum?: number | undefined;
        default?: any;
        title?: string | undefined;
        enum?: (string | number | boolean | null)[] | undefined;
        anyOf?: any[] | undefined;
        description?: string | undefined;
        properties?: Record<string, any> | undefined;
        required?: string[] | undefined;
        minItems?: number | undefined;
        maxItems?: number | undefined;
        items?: Record<string, any> | undefined;
        minLength?: number | undefined;
        maxLength?: number | undefined;
    }>>>;
    required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
    type: "object";
    title?: string | undefined;
    properties?: Record<string, {
        minimum?: number | undefined;
        type?: "string" | "number" | "boolean" | "object" | "null" | "array" | undefined;
        maximum?: number | undefined;
        default?: any;
        title?: string | undefined;
        enum?: (string | number | boolean | null)[] | undefined;
        anyOf?: any[] | undefined;
        description?: string | undefined;
        properties?: Record<string, any> | undefined;
        required?: string[] | undefined;
        minItems?: number | undefined;
        maxItems?: number | undefined;
        items?: Record<string, any> | undefined;
        minLength?: number | undefined;
        maxLength?: number | undefined;
    }> | undefined;
    required?: string[] | undefined;
    $defs?: Record<string, any> | undefined;
}, {
    type: "object";
    title?: string | undefined;
    properties?: Record<string, {
        minimum?: number | undefined;
        type?: "string" | "number" | "boolean" | "object" | "null" | "array" | undefined;
        maximum?: number | undefined;
        default?: any;
        title?: string | undefined;
        enum?: (string | number | boolean | null)[] | undefined;
        anyOf?: any[] | undefined;
        description?: string | undefined;
        properties?: Record<string, any> | undefined;
        required?: string[] | undefined;
        minItems?: number | undefined;
        maxItems?: number | undefined;
        items?: Record<string, any> | undefined;
        minLength?: number | undefined;
        maxLength?: number | undefined;
    }> | undefined;
    required?: string[] | undefined;
    $defs?: Record<string, any> | undefined;
}>;
type FunctionParametersType = z.infer<typeof FunctionParameters>;
declare const Function: z.ZodObject<{
    name: z.ZodString;
    description: z.ZodString;
    parameters: z.ZodAny;
    strict: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    name: string;
    description: string;
    strict?: boolean | undefined;
    parameters?: any;
}, {
    name: string;
    description: string;
    strict?: boolean | undefined;
    parameters?: any;
}>;
type FunctionType = z.infer<typeof Function>;
declare const ToolTypes: string[];
declare const ToolTypesLiteral: z.ZodEnum<["function"]>;
type ToolTypesType = z.infer<typeof ToolTypesLiteral>;
declare const FunctionRequestRetry: z.ZodObject<{
    maxAttempts: z.ZodNumber;
    initialDelay: z.ZodNumber;
    exponentialFactor: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    maxAttempts: number;
    initialDelay: number;
    exponentialFactor: number;
}, {
    maxAttempts: number;
    initialDelay: number;
    exponentialFactor: number;
}>;
declare const FunctionRequestHttp: z.ZodObject<{
    type: z.ZodLiteral<"http">;
    method: z.ZodEnum<["get", "post"]>;
    url: z.ZodString;
    headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    proxyUrl: z.ZodOptional<z.ZodString>;
    proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    retry: z.ZodOptional<z.ZodObject<{
        maxAttempts: z.ZodNumber;
        initialDelay: z.ZodNumber;
        exponentialFactor: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        maxAttempts: number;
        initialDelay: number;
        exponentialFactor: number;
    }, {
        maxAttempts: number;
        initialDelay: number;
        exponentialFactor: number;
    }>>;
}, "strip", z.ZodTypeAny, {
    type: "http";
    url: string;
    method: "get" | "post";
    query?: Record<string, string> | undefined;
    headers?: Record<string, string> | undefined;
    body?: Record<string, any> | undefined;
    proxyUrl?: string | undefined;
    proxyHeaders?: Record<string, string> | undefined;
    retry?: {
        maxAttempts: number;
        initialDelay: number;
        exponentialFactor: number;
    } | undefined;
}, {
    type: "http";
    url: string;
    method: "get" | "post";
    query?: Record<string, string> | undefined;
    headers?: Record<string, string> | undefined;
    body?: Record<string, any> | undefined;
    proxyUrl?: string | undefined;
    proxyHeaders?: Record<string, string> | undefined;
    retry?: {
        maxAttempts: number;
        initialDelay: number;
        exponentialFactor: number;
    } | undefined;
}>;
declare const FunctionRequest: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
    type: z.ZodLiteral<"http">;
    method: z.ZodEnum<["get", "post"]>;
    url: z.ZodString;
    headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    proxyUrl: z.ZodOptional<z.ZodString>;
    proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    retry: z.ZodOptional<z.ZodObject<{
        maxAttempts: z.ZodNumber;
        initialDelay: z.ZodNumber;
        exponentialFactor: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        maxAttempts: number;
        initialDelay: number;
        exponentialFactor: number;
    }, {
        maxAttempts: number;
        initialDelay: number;
        exponentialFactor: number;
    }>>;
}, "strip", z.ZodTypeAny, {
    type: "http";
    url: string;
    method: "get" | "post";
    query?: Record<string, string> | undefined;
    headers?: Record<string, string> | undefined;
    body?: Record<string, any> | undefined;
    proxyUrl?: string | undefined;
    proxyHeaders?: Record<string, string> | undefined;
    retry?: {
        maxAttempts: number;
        initialDelay: number;
        exponentialFactor: number;
    } | undefined;
}, {
    type: "http";
    url: string;
    method: "get" | "post";
    query?: Record<string, string> | undefined;
    headers?: Record<string, string> | undefined;
    body?: Record<string, any> | undefined;
    proxyUrl?: string | undefined;
    proxyHeaders?: Record<string, string> | undefined;
    retry?: {
        maxAttempts: number;
        initialDelay: number;
        exponentialFactor: number;
    } | undefined;
}>]>;
declare const FunctionTool: z.ZodObject<{
    type: z.ZodEnum<["function"]>;
    definition: z.ZodObject<{
        schema: z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
            parameters: z.ZodAny;
            strict: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }>;
    }, "strip", z.ZodTypeAny, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }>;
    request: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"http">;
        method: z.ZodEnum<["get", "post"]>;
        url: z.ZodString;
        headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        proxyUrl: z.ZodOptional<z.ZodString>;
        proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        retry: z.ZodOptional<z.ZodObject<{
            maxAttempts: z.ZodNumber;
            initialDelay: z.ZodNumber;
            exponentialFactor: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }>>;
    }, "strip", z.ZodTypeAny, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }>]>>;
}, "strip", z.ZodTypeAny, {
    type: "function";
    definition: {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    };
    request?: {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    } | undefined;
}, {
    type: "function";
    definition: {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    };
    request?: {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    } | undefined;
}>;
type FunctionToolType = z.infer<typeof FunctionTool>;

declare const ToolLiterals: readonly ["function"];
declare const ToolEnum: z.ZodEnum<["function"]>;
type ToolEnumType = z.infer<typeof ToolEnum>;
declare const Tool: <FTM extends z.ZodTypeAny>(FunctionToolMetadata?: FTM) => z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
    type: z.ZodEnum<["function"]>;
    definition: z.ZodObject<{
        schema: z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
            parameters: z.ZodAny;
            strict: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }>;
    }, "strip", z.ZodTypeAny, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }>;
    request: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"http">;
        method: z.ZodEnum<["get", "post"]>;
        url: z.ZodString;
        headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        proxyUrl: z.ZodOptional<z.ZodString>;
        proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        retry: z.ZodOptional<z.ZodObject<{
            maxAttempts: z.ZodNumber;
            initialDelay: z.ZodNumber;
            exponentialFactor: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }>>;
    }, "strip", z.ZodTypeAny, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }>]>>;
}, {
    metadata: FTM;
}>, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<{
    type: z.ZodEnum<["function"]>;
    definition: z.ZodObject<{
        schema: z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
            parameters: z.ZodAny;
            strict: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }>;
    }, "strip", z.ZodTypeAny, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }>;
    request: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"http">;
        method: z.ZodEnum<["get", "post"]>;
        url: z.ZodString;
        headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        proxyUrl: z.ZodOptional<z.ZodString>;
        proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        retry: z.ZodOptional<z.ZodObject<{
            maxAttempts: z.ZodNumber;
            initialDelay: z.ZodNumber;
            exponentialFactor: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }>>;
    }, "strip", z.ZodTypeAny, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }>]>>;
}, {
    metadata: FTM;
}>>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<{
    type: z.ZodEnum<["function"]>;
    definition: z.ZodObject<{
        schema: z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
            parameters: z.ZodAny;
            strict: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }>;
    }, "strip", z.ZodTypeAny, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }>;
    request: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"http">;
        method: z.ZodEnum<["get", "post"]>;
        url: z.ZodString;
        headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        proxyUrl: z.ZodOptional<z.ZodString>;
        proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        retry: z.ZodOptional<z.ZodObject<{
            maxAttempts: z.ZodNumber;
            initialDelay: z.ZodNumber;
            exponentialFactor: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }>>;
    }, "strip", z.ZodTypeAny, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }>]>>;
}, {
    metadata: FTM;
}>>, any>[k]; } : never, z.baseObjectInputType<z.objectUtil.extendShape<{
    type: z.ZodEnum<["function"]>;
    definition: z.ZodObject<{
        schema: z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
            parameters: z.ZodAny;
            strict: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }>;
    }, "strip", z.ZodTypeAny, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }>;
    request: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"http">;
        method: z.ZodEnum<["get", "post"]>;
        url: z.ZodString;
        headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        proxyUrl: z.ZodOptional<z.ZodString>;
        proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        retry: z.ZodOptional<z.ZodObject<{
            maxAttempts: z.ZodNumber;
            initialDelay: z.ZodNumber;
            exponentialFactor: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }>>;
    }, "strip", z.ZodTypeAny, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }>]>>;
}, {
    metadata: FTM;
}>> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<z.objectUtil.extendShape<{
    type: z.ZodEnum<["function"]>;
    definition: z.ZodObject<{
        schema: z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
            parameters: z.ZodAny;
            strict: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }, {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        }>;
    }, "strip", z.ZodTypeAny, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }, {
        schema: {
            name: string;
            description: string;
            strict?: boolean | undefined;
            parameters?: any;
        };
    }>;
    request: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        type: z.ZodLiteral<"http">;
        method: z.ZodEnum<["get", "post"]>;
        url: z.ZodString;
        headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        proxyUrl: z.ZodOptional<z.ZodString>;
        proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        retry: z.ZodOptional<z.ZodObject<{
            maxAttempts: z.ZodNumber;
            initialDelay: z.ZodNumber;
            exponentialFactor: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }, {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        }>>;
    }, "strip", z.ZodTypeAny, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }, {
        type: "http";
        url: string;
        method: "get" | "post";
        query?: Record<string, string> | undefined;
        headers?: Record<string, string> | undefined;
        body?: Record<string, any> | undefined;
        proxyUrl?: string | undefined;
        proxyHeaders?: Record<string, string> | undefined;
        retry?: {
            maxAttempts: number;
            initialDelay: number;
            exponentialFactor: number;
        } | undefined;
    }>]>>;
}, {
    metadata: FTM;
}>>[k_1]; } : never>]>;
type ToolType<FTM extends z.ZodTypeAny = z.ZodUndefined> = z.infer<ReturnType<typeof Tool<FTM>>>;

declare const createTextContent: (content: string) => ContentType;
declare const createToolCallContent: (index: number, id: string, name: string, args: string, serverName?: string, thoughtSignature?: string) => ContentType;
declare const createToolResponseContent: (index: number, id: string, name: string, data: string, apiResponse?: {
    statusCode: number;
}, metadata?: any) => ContentType;
declare const createTextMessage: (role: RoleEnumType, content: string) => MessageType;
declare const createUrlImageMessage: (role: RoleEnumType, url: string, detail: ImageContentDetailsLiteralType) => MessageType;
declare const createBase64ImageMessage: (role: RoleEnumType, base64: string, detail: ImageContentDetailsLiteralType) => MessageType;
declare const createToolCallMessage: (role: RoleEnumType, index: number, id: string, name: string, args: string, thoughtSignature?: string) => MessageType;
declare const createToolResponseMessage: (role: RoleEnumType, index: number, id: string, name: string, data: string) => MessageType;
declare const createPartialTextMessage: (role: RoleEnumType, content: string) => PartialMessageType;
declare const createPartialToolCallMessage: (role: RoleEnumType, index: number, id?: string, name?: string, args?: string, serverName?: string, thoughtSignature?: string) => PartialMessageType;
declare const createPartialToolResponseMessage: (role: RoleEnumType, index: number, id: string, name: string, data: string) => PartialMessageType;
declare const createReasoningContent: (thinking: string, signature: string) => ContentType;
declare const createReasoningMessage: (role: RoleEnumType, thinking: string, signature: string) => MessageType;
declare const createRedactedReasoningContent: (data: string) => ContentType;
declare const createRedactedReasoningMessage: (role: RoleEnumType, data: string) => MessageType;
declare const createPartialReasoningMessage: (role: RoleEnumType, thinking?: string, signature?: string) => PartialMessageType;
declare const createPartialRedactedReasoningMessage: (role: RoleEnumType, data: string) => PartialMessageType;
declare const createSafetyErrorContent: (category: string, probability: string, blocked: boolean, message: string) => ContentType;
declare const createPartialSafetyErrorContent: (category?: string, probability?: string, blocked?: boolean, message?: string) => PartialContentType;
declare const createPartialSafetyErrorMessage: (role: RoleEnumType, category?: string, probability?: string, blocked?: boolean, message?: string) => PartialMessageType;
declare const createResponseErrorContent: (code: string, message: string, provider?: string) => ContentType;
declare const createPartialResponseErrorContent: (code?: string, message?: string, provider?: string) => PartialContentType;
declare const createPartialResponseErrorMessage: (role: RoleEnumType, code?: string, message?: string, provider?: string) => PartialMessageType;
declare const createSearchResultContent: (type: string, query: string, responses: SearchResultContentValueType["responses"], references: SearchResultContentValueType["references"]) => ContentType;
declare const createPartialSearchResultContent: (type: string, query?: string, responses?: SearchResultContentValueType["responses"], references?: SearchResultContentValueType["references"]) => PartialContentType;
declare const createPartialSearchResultMessage: (role: RoleEnumType, type: string, query?: string, responses?: SearchResultContentValueType["responses"], references?: SearchResultContentValueType["references"]) => PartialMessageType;

declare const mergePartialMessages: (response: PartialChatResponseType[]) => ChatResponseType;

export { AssistantRoleLiteral, Base64Embedding, Base64EmbeddingLiteral, type Base64EmbeddingType, Base64ImageContentMediaTypeLiterals, Base64ImageContentTypeLiteral, Base64ImageContentValue, type Base64ImageContentValueType, Base64PdfContentTypeLiteral, Base64PdfContentValue, type Base64PdfContentValueType, ChatBaseLogProb, type ChatBaseLogProbType, ChatLogProb, type ChatLogProbType, ChatLogProbs, type ChatLogProbsType, ChatModelPrice, type ChatModelPriceType, ChatModelTokenPairPrice, type ChatModelTokenPairPriceType, ChatModelTokenRangePrice, type ChatModelTokenRangePriceType, ChatModelTokenTypePrice, type ChatModelTokenTypePriceType, ChatResponse, type ChatResponseType, ChatUsage, type ChatUsageType, Config, type ConfigType, Content, type ContentType, EmbeddingModalityEnum, type EmbeddingModalityEnumType, EmbeddingModalityLiterals, EmbeddingModelPrice, type EmbeddingModelPriceType, EmbeddingRequests, type EmbeddingRequestsType, EmbeddingResponse, type EmbeddingResponseType, EmbeddingTextModalityLiteral, EmbeddingTokenModalityLiteral, EmbeddingsUsage, type EmbeddingsUsageType, ErrorContent, type ErrorContentType, ErrorModalityLiteral, FloatEmbedding, FloatEmbeddingLiteral, type FloatEmbeddingType, Function, FunctionParameter, type FunctionParameterType, FunctionParameterTypes, FunctionParameterTypesLiteral, type FunctionParameterTypesType, FunctionParameters, type FunctionParametersType, FunctionRequest, FunctionRequestHttp, FunctionRequestRetry, FunctionTool, FunctionToolLiteral, type FunctionToolType, type FunctionType, GatewayBaseError, ImageContent, ImageContentDetails, ImageContentDetailsLiteral, type ImageContentDetailsLiteralType, type ImageContentType, type ImageContentValueType, ImageModalityLiteral, McpServer, McpServerToolConfiguration, type McpServerToolConfigurationType, type McpServerType, Message, type MessageType, ModalityEnum, type ModalityEnumType, ModalityLiterals, PartialChatResponse, type PartialChatResponseType, PartialChatUsage, type PartialChatUsageType, PartialContent, type PartialContentType, PartialErrorContent, type PartialErrorContentType, PartialErrorModalityLiteral, PartialMessage, type PartialMessageType, PartialModalityEnum, type PartialModalityEnumType, PartialModalityLiterals, PartialReasoningContent, type PartialReasoningContentType, PartialReasoningContentValue, PartialReasoningContentValueUnion, PartialReasoningModalityLiteral, type PartialResponseErrorContentType, PartialResponseErrorContentValue, PartialRoleEnum, type PartialRoleEnumType, PartialRoleLiterals, type PartialSafetyErrorContentType, PartialSearchResultContent, type PartialSearchResultContentType, PartialSearchResultContentValue, type PartialSearchResultContentValueType, PartialSearchResultModalityLiteral, PartialTextContent, type PartialTextContentType, PartialTextModalityLiteral, PartialToolCallContent, type PartialToolCallContentType, PartialToolCallModalityLiteral, PartialToolResponseContent, type PartialToolResponseContentType, PartialToolResponseModalityLiteral, PdfContent, type PdfContentType, type PdfContentValueType, PdfModalityLiteral, ReasoningContent, type ReasoningContentType, ReasoningContentTypeLiteral, ReasoningContentValue, type ReasoningContentValueType, ReasoningContentValueUnion, type ReasoningContentValueUnionType, ReasoningModalityLiteral, RedactedReasoningContentTypeLiteral, RedactedReasoningContentValue, type RedactedReasoningContentValueType, type ResponseErrorContentType, ResponseErrorContentValue, ResponseErrorTypeLiteral, ResponseSchema, ResponseSchemaProperty, type ResponseSchemaPropertyType, ResponseSchemaStructure, type ResponseSchemaStructureType, type ResponseSchemaType, ResponseSchemaTypes, ResponseSchemaTypesLiteral, type ResponseSchemaTypesType, RoleEnum, type RoleEnumType, RoleLiterals, type SafetyErrorContentType, SafetyErrorContentValue, SafetyErrorTypeLiteral, SearchResultContent, type SearchResultContentType, SearchResultContentValue, type SearchResultContentValueType, SearchResultModalityLiteral, SystemRoleLiteral, TextContent, type TextContentType, TextEmbeddingRequests, type TextEmbeddingRequestsType, TextModalityLiteral, TokenContent, type TokenContentType, TokenEmbeddingRequests, type TokenEmbeddingRequestsType, TokenModalityLiteral, Tool, ToolCallContent, type ToolCallContentType, ToolCallModalityLiteral, ToolEnum, type ToolEnumType, ToolLiterals, ToolResponseContent, type ToolResponseContentType, ToolResponseModalityLiteral, ToolRoleLiteral, type ToolType, ToolTypes, ToolTypesLiteral, type ToolTypesType, UrlImageContentTypeLiteral, UrlImageContentValue, type UrlImageContentValueType, UrlPdfContentTypeLiteral, UrlPdfContentValue, type UrlPdfContentValueType, UserRoleLiteral, createBase64ImageMessage, createPartialReasoningMessage, createPartialRedactedReasoningMessage, createPartialResponseErrorContent, createPartialResponseErrorMessage, createPartialSafetyErrorContent, createPartialSafetyErrorMessage, createPartialSearchResultContent, createPartialSearchResultMessage, createPartialTextMessage, createPartialToolCallMessage, createPartialToolResponseMessage, createReasoningContent, createReasoningMessage, createRedactedReasoningContent, createRedactedReasoningMessage, createResponseErrorContent, createSafetyErrorContent, createSearchResultContent, createTextContent, createTextMessage, createToolCallContent, createToolCallMessage, createToolResponseContent, createToolResponseMessage, createUrlImageMessage, mergePartialMessages };
