import type { Context } from "@earendil-works/pi-ai";
import { z } from "zod";
export declare const toolCallSchema: z.ZodObject<{
    type: z.ZodLiteral<"toolCall">;
    id: z.ZodString;
    name: z.ZodString;
    arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
    incomplete: z.ZodOptional<z.ZodLiteral<true>>;
    errorMessage: z.ZodOptional<z.ZodString>;
    thoughtSignature: z.ZodOptional<z.ZodString>;
    namespace: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/** A deliberate output allowlist: no diagnostics, account metadata, raw response or SDK failure text. */
export declare const assistantSchema: z.ZodObject<{
    role: z.ZodLiteral<"assistant">;
    content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
        type: z.ZodLiteral<"text">;
        text: z.ZodString;
        audience: z.ZodOptional<z.ZodLiteral<"model">>;
        textSignature: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>, z.ZodObject<{
        type: z.ZodLiteral<"thinking">;
        thinking: z.ZodString;
        thinkingSignature: z.ZodOptional<z.ZodString>;
        startedAt: z.ZodOptional<z.ZodNumber>;
        endedAt: z.ZodOptional<z.ZodNumber>;
        redacted: z.ZodOptional<z.ZodBoolean>;
    }, z.core.$strip>, z.ZodObject<{
        type: z.ZodLiteral<"toolCall">;
        id: z.ZodString;
        name: z.ZodString;
        arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
        incomplete: z.ZodOptional<z.ZodLiteral<true>>;
        errorMessage: z.ZodOptional<z.ZodString>;
        thoughtSignature: z.ZodOptional<z.ZodString>;
        namespace: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>], "type">>;
    api: z.ZodString;
    provider: z.ZodString;
    model: z.ZodString;
    usage: z.ZodObject<{
        input: z.ZodNumber;
        output: z.ZodNumber;
        cacheRead: z.ZodNumber;
        cacheWrite: z.ZodNumber;
        totalTokens: z.ZodNumber;
        contextUsage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
            input: z.ZodNumber;
            output: z.ZodNumber;
        }, z.core.$strip>>>;
        cacheWrite1h: z.ZodOptional<z.ZodNumber>;
        reasoning: z.ZodOptional<z.ZodNumber>;
        costUnknown: z.ZodOptional<z.ZodLiteral<true>>;
        cost: z.ZodObject<{
            input: z.ZodNumber;
            output: z.ZodNumber;
            cacheRead: z.ZodNumber;
            cacheWrite: z.ZodNumber;
            total: z.ZodNumber;
        }, z.core.$strip>;
    }, z.core.$strip>;
    stopReason: z.ZodEnum<{
        aborted: "aborted";
        deferred: "deferred";
        error: "error";
        length: "length";
        pending: "pending";
        stop: "stop";
        toolUse: "toolUse";
    }>;
    timestamp: z.ZodNumber;
    errorMessage: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const contextSchema: z.ZodPipe<z.ZodObject<{
    systemPrompt: z.ZodOptional<z.ZodString>;
    messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
        role: z.ZodLiteral<"system">;
        content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
            type: z.ZodLiteral<"text">;
            text: z.ZodString;
            audience: z.ZodOptional<z.ZodLiteral<"model">>;
            textSignature: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>]>;
        timestamp: z.ZodNumber;
        sections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
        toolsAdded: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            description: z.ZodString;
            parameters: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, z.ZodTransform<import("@earendil-works/pi-ai").TSchema, Record<string, z.JSONType>>>;
            freeform: z.ZodOptional<z.ZodObject<{
                type: z.ZodLiteral<"grammar">;
                syntax: z.ZodLiteral<"lark">;
                definition: z.ZodString;
            }, z.core.$strict>>;
            constrainedSampling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
                type: z.ZodLiteral<"json_schema">;
                strict: z.ZodEnum<{
                    prefer: "prefer";
                    require: "require";
                }>;
            }, z.core.$strict>, z.ZodObject<{
                type: z.ZodLiteral<"grammar">;
                variants: z.ZodObject<{
                    openai_lark: z.ZodOptional<z.ZodString>;
                    openai_regex: z.ZodOptional<z.ZodString>;
                }, z.core.$strict>;
            }, z.core.$strict>]>>;
        }, z.core.$strict>>>;
        toolsRemoved: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
        }, z.core.$strip>>>;
    }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
        role: z.ZodLiteral<"user">;
        content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
            type: z.ZodLiteral<"text">;
            text: z.ZodString;
            audience: z.ZodOptional<z.ZodLiteral<"model">>;
            textSignature: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>, z.ZodObject<{
            type: z.ZodLiteral<"image">;
            data: z.ZodString;
            mimeType: z.ZodString;
        }, z.core.$strip>]>>]>;
        timestamp: z.ZodNumber;
    }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
        role: z.ZodLiteral<"configurationUpdate">;
        content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
            type: z.ZodLiteral<"text">;
            text: z.ZodString;
            audience: z.ZodOptional<z.ZodLiteral<"model">>;
            textSignature: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>, z.ZodObject<{
            type: z.ZodLiteral<"image">;
            data: z.ZodString;
            mimeType: z.ZodString;
        }, z.core.$strip>]>>;
        effort: z.ZodString;
        timestamp: z.ZodNumber;
    }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
        role: z.ZodLiteral<"assistant">;
        api: z.ZodString;
        provider: z.ZodString;
        model: z.ZodString;
        usage: z.ZodObject<{
            input: z.ZodNumber;
            output: z.ZodNumber;
            cacheRead: z.ZodNumber;
            cacheWrite: z.ZodNumber;
            totalTokens: z.ZodNumber;
            contextUsage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                input: z.ZodNumber;
                output: z.ZodNumber;
            }, z.core.$strip>>>;
            cacheWrite1h: z.ZodOptional<z.ZodNumber>;
            reasoning: z.ZodOptional<z.ZodNumber>;
            costUnknown: z.ZodOptional<z.ZodLiteral<true>>;
            cost: z.ZodObject<{
                input: z.ZodNumber;
                output: z.ZodNumber;
                cacheRead: z.ZodNumber;
                cacheWrite: z.ZodNumber;
                total: z.ZodNumber;
            }, z.core.$strip>;
        }, z.core.$strip>;
        stopReason: z.ZodEnum<{
            aborted: "aborted";
            deferred: "deferred";
            error: "error";
            length: "length";
            pending: "pending";
            stop: "stop";
            toolUse: "toolUse";
        }>;
        timestamp: z.ZodNumber;
        errorMessage: z.ZodOptional<z.ZodString>;
        content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
            type: z.ZodLiteral<"text">;
            text: z.ZodString;
            audience: z.ZodOptional<z.ZodLiteral<"model">>;
            textSignature: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>, z.ZodObject<{
            type: z.ZodLiteral<"thinking">;
            thinking: z.ZodString;
            thinkingSignature: z.ZodOptional<z.ZodString>;
            startedAt: z.ZodOptional<z.ZodNumber>;
            endedAt: z.ZodOptional<z.ZodNumber>;
            redacted: z.ZodOptional<z.ZodBoolean>;
        }, z.core.$strip>, z.ZodObject<{
            type: z.ZodLiteral<"toolCall">;
            id: z.ZodString;
            name: z.ZodString;
            arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
            incomplete: z.ZodOptional<z.ZodLiteral<true>>;
            errorMessage: z.ZodOptional<z.ZodString>;
            thoughtSignature: z.ZodOptional<z.ZodString>;
            namespace: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>, z.ZodObject<{
            type: z.ZodLiteral<"providerNative">;
            subtype: z.ZodString;
            raw: z.ZodJSONSchema;
        }, z.core.$strip>]>>;
    }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
        role: z.ZodLiteral<"toolResult">;
        toolCallId: z.ZodString;
        toolName: z.ZodString;
        content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
            type: z.ZodLiteral<"text">;
            text: z.ZodString;
            audience: z.ZodOptional<z.ZodLiteral<"model">>;
            textSignature: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>, z.ZodObject<{
            type: z.ZodLiteral<"image">;
            data: z.ZodString;
            mimeType: z.ZodString;
        }, z.core.$strip>]>>;
        isError: z.ZodBoolean;
        timestamp: z.ZodNumber;
        details: z.ZodOptional<z.ZodJSONSchema>;
        usage: z.ZodOptional<z.ZodObject<{
            input: z.ZodNumber;
            output: z.ZodNumber;
            cacheRead: z.ZodNumber;
            cacheWrite: z.ZodNumber;
            totalTokens: z.ZodNumber;
            contextUsage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                input: z.ZodNumber;
                output: z.ZodNumber;
            }, z.core.$strip>>>;
            cacheWrite1h: z.ZodOptional<z.ZodNumber>;
            reasoning: z.ZodOptional<z.ZodNumber>;
            costUnknown: z.ZodOptional<z.ZodLiteral<true>>;
            cost: z.ZodObject<{
                input: z.ZodNumber;
                output: z.ZodNumber;
                cacheRead: z.ZodNumber;
                cacheWrite: z.ZodNumber;
                total: z.ZodNumber;
            }, z.core.$strip>;
        }, z.core.$strip>>;
        addedToolNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
    }, z.core.$catchall<z.ZodJSONSchema>>], "role">>;
    tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        description: z.ZodString;
        parameters: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodJSONSchema>, z.ZodTransform<import("@earendil-works/pi-ai").TSchema, Record<string, z.JSONType>>>;
        freeform: z.ZodOptional<z.ZodObject<{
            type: z.ZodLiteral<"grammar">;
            syntax: z.ZodLiteral<"lark">;
            definition: z.ZodString;
        }, z.core.$strict>>;
        constrainedSampling: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
            type: z.ZodLiteral<"json_schema">;
            strict: z.ZodEnum<{
                prefer: "prefer";
                require: "require";
            }>;
        }, z.core.$strict>, z.ZodObject<{
            type: z.ZodLiteral<"grammar">;
            variants: z.ZodObject<{
                openai_lark: z.ZodOptional<z.ZodString>;
                openai_regex: z.ZodOptional<z.ZodString>;
            }, z.core.$strict>;
        }, z.core.$strict>]>>;
    }, z.core.$strict>>>;
    activeToolNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>, z.ZodTransform<Context, {
    systemPrompt?: string | undefined;
    messages: ({
        [x: string]: z.JSONType;
        role: "system";
        content: string | {
            type: "text";
            text: string;
            audience?: "model" | undefined;
            textSignature?: string | undefined;
        }[];
        timestamp: number;
        sections?: Record<string, string | null> | undefined;
        toolsAdded?: {
            name: string;
            description: string;
            parameters: import("@earendil-works/pi-ai").TSchema;
            freeform?: {
                type: "grammar";
                syntax: "lark";
                definition: string;
            } | undefined;
            constrainedSampling?: false | {
                type: "json_schema";
                strict: "prefer" | "require";
            } | {
                type: "grammar";
                variants: {
                    openai_lark?: string | undefined;
                    openai_regex?: string | undefined;
                };
            } | undefined;
        }[] | undefined;
        toolsRemoved?: {
            name: string;
        }[] | undefined;
    } | {
        [x: string]: z.JSONType;
        role: "user";
        content: string | ({
            type: "text";
            text: string;
            audience?: "model" | undefined;
            textSignature?: string | undefined;
        } | {
            type: "image";
            data: string;
            mimeType: string;
        })[];
        timestamp: number;
    } | {
        [x: string]: z.JSONType;
        role: "configurationUpdate";
        content: ({
            type: "text";
            text: string;
            audience?: "model" | undefined;
            textSignature?: string | undefined;
        } | {
            type: "image";
            data: string;
            mimeType: string;
        })[];
        effort: string;
        timestamp: number;
    } | {
        [x: string]: z.JSONType;
        role: "toolResult";
        toolCallId: string;
        toolName: string;
        content: ({
            type: "text";
            text: string;
            audience?: "model" | undefined;
            textSignature?: string | undefined;
        } | {
            type: "image";
            data: string;
            mimeType: string;
        })[];
        isError: boolean;
        timestamp: number;
        details?: z.JSONType | undefined;
        usage?: {
            input: number;
            output: number;
            cacheRead: number;
            cacheWrite: number;
            totalTokens: number;
            contextUsage?: {
                input: number;
                output: number;
            } | null | undefined;
            cacheWrite1h?: number | undefined;
            reasoning?: number | undefined;
            costUnknown?: true | undefined;
            cost: {
                input: number;
                output: number;
                cacheRead: number;
                cacheWrite: number;
                total: number;
            };
        } | undefined;
        addedToolNames?: string[] | undefined;
    } | {
        [x: string]: z.JSONType;
        role: "assistant";
        api: string;
        provider: string;
        model: string;
        usage: {
            input: number;
            output: number;
            cacheRead: number;
            cacheWrite: number;
            totalTokens: number;
            contextUsage?: {
                input: number;
                output: number;
            } | null | undefined;
            cacheWrite1h?: number | undefined;
            reasoning?: number | undefined;
            costUnknown?: true | undefined;
            cost: {
                input: number;
                output: number;
                cacheRead: number;
                cacheWrite: number;
                total: number;
            };
        };
        stopReason: "aborted" | "deferred" | "error" | "length" | "pending" | "stop" | "toolUse";
        timestamp: number;
        errorMessage?: string | undefined;
        content: ({
            type: "text";
            text: string;
            audience?: "model" | undefined;
            textSignature?: string | undefined;
        } | {
            type: "thinking";
            thinking: string;
            thinkingSignature?: string | undefined;
            startedAt?: number | undefined;
            endedAt?: number | undefined;
            redacted?: boolean | undefined;
        } | {
            type: "toolCall";
            id: string;
            name: string;
            arguments: Record<string, z.JSONType>;
            incomplete?: true | undefined;
            errorMessage?: string | undefined;
            thoughtSignature?: string | undefined;
            namespace?: string | undefined;
        } | {
            type: "providerNative";
            subtype: string;
            raw: z.JSONType;
        })[];
    })[];
    tools?: {
        name: string;
        description: string;
        parameters: import("@earendil-works/pi-ai").TSchema;
        freeform?: {
            type: "grammar";
            syntax: "lark";
            definition: string;
        } | undefined;
        constrainedSampling?: false | {
            type: "json_schema";
            strict: "prefer" | "require";
        } | {
            type: "grammar";
            variants: {
                openai_lark?: string | undefined;
                openai_regex?: string | undefined;
            };
        } | undefined;
    }[] | undefined;
    activeToolNames?: string[] | undefined;
}>>;
//# sourceMappingURL=content-schema.d.ts.map