import EventEmitter$1, { EventEmitter } from 'events';
import { Socket } from 'net';
import { z } from 'zod';
import { ZodType, z as z$1 } from 'zod/v4';
export { z as parametersSchema } from 'zod/v4';
export { POE_DEFAULT_BASE_URL, PoeDefaultModelInfo, getPoeDefaultModelInfo, poeDefaultModelId } from 'ai-sdk-provider-poe/code';

/**
 * RooCodeEventName
 */
declare enum RooCodeEventName {
    TaskCreated = "taskCreated",
    TaskStarted = "taskStarted",
    TaskCompleted = "taskCompleted",
    TaskAborted = "taskAborted",
    TaskFocused = "taskFocused",
    TaskUnfocused = "taskUnfocused",
    TaskActive = "taskActive",
    TaskInteractive = "taskInteractive",
    TaskResumable = "taskResumable",
    TaskIdle = "taskIdle",
    TaskPaused = "taskPaused",
    TaskUnpaused = "taskUnpaused",
    TaskSpawned = "taskSpawned",
    TaskDelegated = "taskDelegated",
    TaskDelegationCompleted = "taskDelegationCompleted",
    TaskDelegationResumed = "taskDelegationResumed",
    Message = "message",
    TaskModeSwitched = "taskModeSwitched",
    TaskAskResponded = "taskAskResponded",
    TaskUserMessage = "taskUserMessage",
    QueuedMessagesUpdated = "queuedMessagesUpdated",
    TaskTokenUsageUpdated = "taskTokenUsageUpdated",
    TaskToolFailed = "taskToolFailed",
    ModeChanged = "modeChanged",
    ProviderProfileChanged = "providerProfileChanged",
    CommandsResponse = "commandsResponse",
    ModesResponse = "modesResponse",
    ModelsResponse = "modelsResponse",
    EvalPass = "evalPass",
    EvalFail = "evalFail"
}
/**
 * RooCodeEvents
 */
declare const rooCodeEventsSchema: z.ZodObject<{
    taskCreated: z.ZodTuple<[z.ZodString], null>;
    taskStarted: z.ZodTuple<[z.ZodString], null>;
    taskCompleted: z.ZodTuple<[z.ZodString, z.ZodObject<{
        totalTokensIn: z.ZodNumber;
        totalTokensOut: z.ZodNumber;
        totalCacheWrites: z.ZodOptional<z.ZodNumber>;
        totalCacheReads: z.ZodOptional<z.ZodNumber>;
        totalCost: z.ZodNumber;
        contextTokens: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }>, z.ZodRecord<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, z.ZodObject<{
        attempts: z.ZodNumber;
        failures: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        attempts: number;
        failures: number;
    }, {
        attempts: number;
        failures: number;
    }>>, z.ZodObject<{
        isSubtask: z.ZodBoolean;
    }, "strip", z.ZodTypeAny, {
        isSubtask: boolean;
    }, {
        isSubtask: boolean;
    }>], null>;
    taskAborted: z.ZodTuple<[z.ZodString], null>;
    taskFocused: z.ZodTuple<[z.ZodString], null>;
    taskUnfocused: z.ZodTuple<[z.ZodString], null>;
    taskActive: z.ZodTuple<[z.ZodString], null>;
    taskInteractive: z.ZodTuple<[z.ZodString], null>;
    taskResumable: z.ZodTuple<[z.ZodString], null>;
    taskIdle: z.ZodTuple<[z.ZodString], null>;
    taskPaused: z.ZodTuple<[z.ZodString], null>;
    taskUnpaused: z.ZodTuple<[z.ZodString], null>;
    taskSpawned: z.ZodTuple<[z.ZodString, z.ZodString], null>;
    taskDelegated: z.ZodTuple<[z.ZodString, z.ZodString], null>;
    taskDelegationCompleted: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
    taskDelegationResumed: z.ZodTuple<[z.ZodString, z.ZodString], null>;
    message: z.ZodTuple<[z.ZodObject<{
        taskId: z.ZodString;
        action: z.ZodUnion<[z.ZodLiteral<"created">, z.ZodLiteral<"updated">]>;
        message: z.ZodObject<{
            ts: z.ZodNumber;
            type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
            ask: z.ZodOptional<z.ZodEnum<["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"]>>;
            say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"]>>;
            text: z.ZodOptional<z.ZodString>;
            subtaskId: z.ZodOptional<z.ZodString>;
            images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            partial: z.ZodOptional<z.ZodBoolean>;
            reasoning: z.ZodOptional<z.ZodString>;
            conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
            checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            progressStatus: z.ZodOptional<z.ZodObject<{
                icon: z.ZodOptional<z.ZodString>;
                text: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                text?: string | undefined;
                icon?: string | undefined;
            }, {
                text?: string | undefined;
                icon?: string | undefined;
            }>>;
            contextCondense: z.ZodOptional<z.ZodObject<{
                cost: z.ZodNumber;
                prevContextTokens: z.ZodNumber;
                newContextTokens: z.ZodNumber;
                summary: z.ZodString;
                condenseId: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            }, {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            }>>;
            contextTruncation: z.ZodOptional<z.ZodObject<{
                truncationId: z.ZodString;
                messagesRemoved: z.ZodNumber;
                prevContextTokens: z.ZodNumber;
                newContextTokens: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            }, {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            }>>;
            isProtected: z.ZodOptional<z.ZodBoolean>;
            apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
            isAnswered: z.ZodOptional<z.ZodBoolean>;
            userResponse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            metadata: z.ZodOptional<z.ZodObject<{
                isRateLimit: z.ZodOptional<z.ZodBoolean>;
                isRateLimitRetry: z.ZodOptional<z.ZodBoolean>;
                gpt5: z.ZodOptional<z.ZodObject<{
                    previous_response_id: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    previous_response_id?: string | undefined;
                }, {
                    previous_response_id?: string | undefined;
                }>>;
            }, "strip", z.ZodTypeAny, {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            }, {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            }>>;
        }, "strip", z.ZodTypeAny, {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        }, {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        taskId: string;
        action: "created" | "updated";
    }, {
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        taskId: string;
        action: "created" | "updated";
    }>], null>;
    taskModeSwitched: z.ZodTuple<[z.ZodString, z.ZodString], null>;
    taskAskResponded: z.ZodTuple<[z.ZodString], null>;
    taskUserMessage: z.ZodTuple<[z.ZodString], null>;
    queuedMessagesUpdated: z.ZodTuple<[z.ZodString, z.ZodArray<z.ZodObject<{
        timestamp: z.ZodNumber;
        id: z.ZodString;
        text: z.ZodString;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    }, "strip", z.ZodTypeAny, {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }, {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }>, "many">], null>;
    taskToolFailed: z.ZodTuple<[z.ZodString, z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, z.ZodString], null>;
    taskTokenUsageUpdated: z.ZodTuple<[z.ZodString, z.ZodObject<{
        totalTokensIn: z.ZodNumber;
        totalTokensOut: z.ZodNumber;
        totalCacheWrites: z.ZodOptional<z.ZodNumber>;
        totalCacheReads: z.ZodOptional<z.ZodNumber>;
        totalCost: z.ZodNumber;
        contextTokens: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }>, z.ZodRecord<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, z.ZodObject<{
        attempts: z.ZodNumber;
        failures: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        attempts: number;
        failures: number;
    }, {
        attempts: number;
        failures: number;
    }>>], null>;
    modeChanged: z.ZodTuple<[z.ZodString], null>;
    providerProfileChanged: z.ZodTuple<[z.ZodObject<{
        name: z.ZodString;
        provider: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        name: string;
        provider: string;
    }, {
        name: string;
        provider: string;
    }>], null>;
    commandsResponse: z.ZodTuple<[z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        source: z.ZodEnum<["global", "project", "built-in"]>;
        filePath: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        argumentHint: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        source: "global" | "project" | "built-in";
        description?: string | undefined;
        filePath?: string | undefined;
        argumentHint?: string | undefined;
    }, {
        name: string;
        source: "global" | "project" | "built-in";
        description?: string | undefined;
        filePath?: string | undefined;
        argumentHint?: string | undefined;
    }>, "many">], null>;
    modesResponse: z.ZodTuple<[z.ZodArray<z.ZodObject<{
        slug: z.ZodString;
        name: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        name: string;
        slug: string;
    }, {
        name: string;
        slug: string;
    }>, "many">], null>;
    modelsResponse: z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>], null>;
}, "strip", z.ZodTypeAny, {
    taskCreated: [string];
    taskStarted: [string];
    taskCompleted: [string, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
        attempts: number;
        failures: number;
    }>>, {
        isSubtask: boolean;
    }];
    taskAborted: [string];
    taskFocused: [string];
    taskUnfocused: [string];
    taskActive: [string];
    taskInteractive: [string];
    taskResumable: [string];
    taskIdle: [string];
    taskPaused: [string];
    taskUnpaused: [string];
    taskSpawned: [string, string];
    taskDelegated: [string, string];
    taskDelegationCompleted: [string, string, string];
    taskDelegationResumed: [string, string];
    message: [{
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        taskId: string;
        action: "created" | "updated";
    }];
    taskModeSwitched: [string, string];
    taskAskResponded: [string];
    taskUserMessage: [string];
    queuedMessagesUpdated: [string, {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }[]];
    taskTokenUsageUpdated: [string, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
        attempts: number;
        failures: number;
    }>>];
    taskToolFailed: [string, "apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", string];
    modeChanged: [string];
    providerProfileChanged: [{
        name: string;
        provider: string;
    }];
    commandsResponse: [{
        name: string;
        source: "global" | "project" | "built-in";
        description?: string | undefined;
        filePath?: string | undefined;
        argumentHint?: string | undefined;
    }[]];
    modesResponse: [{
        name: string;
        slug: string;
    }[]];
    modelsResponse: [Record<string, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>];
}, {
    taskCreated: [string];
    taskStarted: [string];
    taskCompleted: [string, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
        attempts: number;
        failures: number;
    }>>, {
        isSubtask: boolean;
    }];
    taskAborted: [string];
    taskFocused: [string];
    taskUnfocused: [string];
    taskActive: [string];
    taskInteractive: [string];
    taskResumable: [string];
    taskIdle: [string];
    taskPaused: [string];
    taskUnpaused: [string];
    taskSpawned: [string, string];
    taskDelegated: [string, string];
    taskDelegationCompleted: [string, string, string];
    taskDelegationResumed: [string, string];
    message: [{
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        taskId: string;
        action: "created" | "updated";
    }];
    taskModeSwitched: [string, string];
    taskAskResponded: [string];
    taskUserMessage: [string];
    queuedMessagesUpdated: [string, {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }[]];
    taskTokenUsageUpdated: [string, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
        attempts: number;
        failures: number;
    }>>];
    taskToolFailed: [string, "apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", string];
    modeChanged: [string];
    providerProfileChanged: [{
        name: string;
        provider: string;
    }];
    commandsResponse: [{
        name: string;
        source: "global" | "project" | "built-in";
        description?: string | undefined;
        filePath?: string | undefined;
        argumentHint?: string | undefined;
    }[]];
    modesResponse: [{
        name: string;
        slug: string;
    }[]];
    modelsResponse: [Record<string, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>];
}>;
type RooCodeEvents = z.infer<typeof rooCodeEventsSchema>;
/**
 * TaskEvent
 */
declare const taskEventSchema: z.ZodDiscriminatedUnion<"eventName", [z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskCreated>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskCreated;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskCreated;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskStarted>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskStarted;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskStarted;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskCompleted>;
    payload: z.ZodTuple<[z.ZodString, z.ZodObject<{
        totalTokensIn: z.ZodNumber;
        totalTokensOut: z.ZodNumber;
        totalCacheWrites: z.ZodOptional<z.ZodNumber>;
        totalCacheReads: z.ZodOptional<z.ZodNumber>;
        totalCost: z.ZodNumber;
        contextTokens: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }>, z.ZodRecord<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, z.ZodObject<{
        attempts: z.ZodNumber;
        failures: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        attempts: number;
        failures: number;
    }, {
        attempts: number;
        failures: number;
    }>>, z.ZodObject<{
        isSubtask: z.ZodBoolean;
    }, "strip", z.ZodTypeAny, {
        isSubtask: boolean;
    }, {
        isSubtask: boolean;
    }>], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskCompleted;
    payload: [string, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
        attempts: number;
        failures: number;
    }>>, {
        isSubtask: boolean;
    }];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskCompleted;
    payload: [string, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
        attempts: number;
        failures: number;
    }>>, {
        isSubtask: boolean;
    }];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskAborted>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskAborted;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskAborted;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskFocused>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskFocused;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskFocused;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskUnfocused>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskUnfocused;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskUnfocused;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskActive>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskActive;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskActive;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskInteractive>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskInteractive;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskInteractive;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskResumable>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskResumable;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskResumable;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskIdle>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskIdle;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskIdle;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskPaused>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskPaused;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskPaused;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskUnpaused>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskUnpaused;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskUnpaused;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskSpawned>;
    payload: z.ZodTuple<[z.ZodString, z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskSpawned;
    payload: [string, string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskSpawned;
    payload: [string, string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskDelegated>;
    payload: z.ZodTuple<[z.ZodString, z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskDelegated;
    payload: [string, string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskDelegated;
    payload: [string, string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskDelegationCompleted>;
    payload: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskDelegationCompleted;
    payload: [string, string, string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskDelegationCompleted;
    payload: [string, string, string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskDelegationResumed>;
    payload: z.ZodTuple<[z.ZodString, z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskDelegationResumed;
    payload: [string, string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskDelegationResumed;
    payload: [string, string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.Message>;
    payload: z.ZodTuple<[z.ZodObject<{
        taskId: z.ZodString;
        action: z.ZodUnion<[z.ZodLiteral<"created">, z.ZodLiteral<"updated">]>;
        message: z.ZodObject<{
            ts: z.ZodNumber;
            type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
            ask: z.ZodOptional<z.ZodEnum<["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"]>>;
            say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"]>>;
            text: z.ZodOptional<z.ZodString>;
            subtaskId: z.ZodOptional<z.ZodString>;
            images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            partial: z.ZodOptional<z.ZodBoolean>;
            reasoning: z.ZodOptional<z.ZodString>;
            conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
            checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            progressStatus: z.ZodOptional<z.ZodObject<{
                icon: z.ZodOptional<z.ZodString>;
                text: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                text?: string | undefined;
                icon?: string | undefined;
            }, {
                text?: string | undefined;
                icon?: string | undefined;
            }>>;
            contextCondense: z.ZodOptional<z.ZodObject<{
                cost: z.ZodNumber;
                prevContextTokens: z.ZodNumber;
                newContextTokens: z.ZodNumber;
                summary: z.ZodString;
                condenseId: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            }, {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            }>>;
            contextTruncation: z.ZodOptional<z.ZodObject<{
                truncationId: z.ZodString;
                messagesRemoved: z.ZodNumber;
                prevContextTokens: z.ZodNumber;
                newContextTokens: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            }, {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            }>>;
            isProtected: z.ZodOptional<z.ZodBoolean>;
            apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
            isAnswered: z.ZodOptional<z.ZodBoolean>;
            userResponse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            metadata: z.ZodOptional<z.ZodObject<{
                isRateLimit: z.ZodOptional<z.ZodBoolean>;
                isRateLimitRetry: z.ZodOptional<z.ZodBoolean>;
                gpt5: z.ZodOptional<z.ZodObject<{
                    previous_response_id: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    previous_response_id?: string | undefined;
                }, {
                    previous_response_id?: string | undefined;
                }>>;
            }, "strip", z.ZodTypeAny, {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            }, {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            }>>;
        }, "strip", z.ZodTypeAny, {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        }, {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        taskId: string;
        action: "created" | "updated";
    }, {
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        taskId: string;
        action: "created" | "updated";
    }>], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.Message;
    payload: [{
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        taskId: string;
        action: "created" | "updated";
    }];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.Message;
    payload: [{
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        taskId: string;
        action: "created" | "updated";
    }];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskModeSwitched>;
    payload: z.ZodTuple<[z.ZodString, z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskModeSwitched;
    payload: [string, string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskModeSwitched;
    payload: [string, string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskAskResponded>;
    payload: z.ZodTuple<[z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskAskResponded;
    payload: [string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskAskResponded;
    payload: [string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.QueuedMessagesUpdated>;
    payload: z.ZodTuple<[z.ZodString, z.ZodArray<z.ZodObject<{
        timestamp: z.ZodNumber;
        id: z.ZodString;
        text: z.ZodString;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    }, "strip", z.ZodTypeAny, {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }, {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }>, "many">], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.QueuedMessagesUpdated;
    payload: [string, {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }[]];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.QueuedMessagesUpdated;
    payload: [string, {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }[]];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskToolFailed>;
    payload: z.ZodTuple<[z.ZodString, z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, z.ZodString], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskToolFailed;
    payload: [string, "apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", string];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskToolFailed;
    payload: [string, "apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", string];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.TaskTokenUsageUpdated>;
    payload: z.ZodTuple<[z.ZodString, z.ZodObject<{
        totalTokensIn: z.ZodNumber;
        totalTokensOut: z.ZodNumber;
        totalCacheWrites: z.ZodOptional<z.ZodNumber>;
        totalCacheReads: z.ZodOptional<z.ZodNumber>;
        totalCost: z.ZodNumber;
        contextTokens: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }>, z.ZodRecord<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, z.ZodObject<{
        attempts: z.ZodNumber;
        failures: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        attempts: number;
        failures: number;
    }, {
        attempts: number;
        failures: number;
    }>>], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.TaskTokenUsageUpdated;
    payload: [string, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
        attempts: number;
        failures: number;
    }>>];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.TaskTokenUsageUpdated;
    payload: [string, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
        attempts: number;
        failures: number;
    }>>];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.CommandsResponse>;
    payload: z.ZodTuple<[z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        source: z.ZodEnum<["global", "project", "built-in"]>;
        filePath: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        argumentHint: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        source: "global" | "project" | "built-in";
        description?: string | undefined;
        filePath?: string | undefined;
        argumentHint?: string | undefined;
    }, {
        name: string;
        source: "global" | "project" | "built-in";
        description?: string | undefined;
        filePath?: string | undefined;
        argumentHint?: string | undefined;
    }>, "many">], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.CommandsResponse;
    payload: [{
        name: string;
        source: "global" | "project" | "built-in";
        description?: string | undefined;
        filePath?: string | undefined;
        argumentHint?: string | undefined;
    }[]];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.CommandsResponse;
    payload: [{
        name: string;
        source: "global" | "project" | "built-in";
        description?: string | undefined;
        filePath?: string | undefined;
        argumentHint?: string | undefined;
    }[]];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.ModesResponse>;
    payload: z.ZodTuple<[z.ZodArray<z.ZodObject<{
        slug: z.ZodString;
        name: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        name: string;
        slug: string;
    }, {
        name: string;
        slug: string;
    }>, "many">], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.ModesResponse;
    payload: [{
        name: string;
        slug: string;
    }[]];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.ModesResponse;
    payload: [{
        name: string;
        slug: string;
    }[]];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.ModelsResponse>;
    payload: z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>], null>;
    taskId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    eventName: RooCodeEventName.ModelsResponse;
    payload: [Record<string, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>];
    taskId?: number | undefined;
}, {
    eventName: RooCodeEventName.ModelsResponse;
    payload: [Record<string, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>];
    taskId?: number | undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.EvalPass>;
    payload: z.ZodUndefined;
    taskId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    taskId: number;
    eventName: RooCodeEventName.EvalPass;
    payload?: undefined;
}, {
    taskId: number;
    eventName: RooCodeEventName.EvalPass;
    payload?: undefined;
}>, z.ZodObject<{
    eventName: z.ZodLiteral<RooCodeEventName.EvalFail>;
    payload: z.ZodUndefined;
    taskId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    taskId: number;
    eventName: RooCodeEventName.EvalFail;
    payload?: undefined;
}, {
    taskId: number;
    eventName: RooCodeEventName.EvalFail;
    payload?: undefined;
}>]>;
type TaskEvent = z.infer<typeof taskEventSchema>;

/**
 * 自动清理策略
 */
declare enum CleanupStrategy {
    /** 基于时间：清理N天前的记录 */
    BASED_ON_TIME = "based_on_time",
    /** 基于数量：保留最近N条 */
    BASED_ON_COUNT = "based_on_count"
}
/**
 * 自动清理配置
 */
declare const autoCleanupSettingsSchema: z.ZodObject<{
    /** 是否启用自动清理 */
    enabled: z.ZodOptional<z.ZodBoolean>;
    /** 清理策略 */
    strategy: z.ZodOptional<z.ZodNativeEnum<typeof CleanupStrategy>>;
    /** 保留天数（默认7天） */
    retentionDays: z.ZodOptional<z.ZodNumber>;
    /** 最大历史记录数（默认50条） */
    maxHistoryCount: z.ZodOptional<z.ZodNumber>;
    /** 是否排除当前活跃任务 */
    excludeActive: z.ZodOptional<z.ZodBoolean>;
    /** 清理频率：启动时清理 */
    cleanupOnStartup: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    enabled?: boolean | undefined;
    strategy?: CleanupStrategy | undefined;
    retentionDays?: number | undefined;
    maxHistoryCount?: number | undefined;
    excludeActive?: boolean | undefined;
    cleanupOnStartup?: boolean | undefined;
}, {
    enabled?: boolean | undefined;
    strategy?: CleanupStrategy | undefined;
    retentionDays?: number | undefined;
    maxHistoryCount?: number | undefined;
    excludeActive?: boolean | undefined;
    cleanupOnStartup?: boolean | undefined;
}>;
type AutoCleanupSettings = z.infer<typeof autoCleanupSettingsSchema>;
/**
 * 清理结果
 */
interface CleanupResult {
    /** 清理时间 */
    timestamp: number;
    /** 使用的策略 */
    strategy: CleanupStrategy;
    /** 删除的任务数 */
    tasksRemoved: number;
    /** 释放的空间（字节） */
    spaceFreed: number;
    /** 保留的任务数 */
    tasksKept: number;
    /** 删除的任务ID列表 */
    removedTaskIds: string[];
}
/**
 * 默认自动清理配置
 */
declare const DEFAULT_AUTO_CLEANUP_SETTINGS: AutoCleanupSettings;

/**
 * TS
 */
type Keys<T> = keyof T;
type Values<T> = T[keyof T];
type Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
type AssertEqual<T extends true> = T;

/**
 * constants
 */
declare const DEFAULT_CONSECUTIVE_MISTAKE_LIMIT = 5;
/**
 * DynamicProvider
 *
 * Dynamic provider requires external API calls in order to get the model list.
 */
declare const dynamicProviders: readonly ["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe"];
type DynamicProvider = (typeof dynamicProviders)[number];
declare const isDynamicProvider: (key: string) => key is DynamicProvider;
/**
 * LocalProvider
 *
 * Local providers require localhost API calls in order to get the model list.
 */
declare const localProviders: readonly ["ollama", "lmstudio"];
type LocalProvider = (typeof localProviders)[number];
declare const isLocalProvider: (key: string) => key is LocalProvider;
/**
 * InternalProvider
 *
 * Internal providers require internal VSCode API calls in order to get the
 * model list.
 */
declare const internalProviders: readonly ["vscode-lm"];
type InternalProvider = (typeof internalProviders)[number];
declare const isInternalProvider: (key: string) => key is InternalProvider;
/**
 * CustomProvider
 *
 * Custom providers are completely configurable within Roo Code settings.
 */
declare const customProviders: readonly ["openai"];
type CustomProvider = (typeof customProviders)[number];
declare const isCustomProvider: (key: string) => key is CustomProvider;
/**
 * FauxProvider
 *
 * Faux providers do not make external inference calls and therefore do not have
 * model lists.
 */
declare const fauxProviders: readonly ["fake-ai", "human-relay"];
type FauxProvider = (typeof fauxProviders)[number];
declare const isFauxProvider: (key: string) => key is FauxProvider;
/**
 * ProviderName
 */
declare const providerNames: readonly ["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"];
declare const providerNamesSchema: z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>;
type ProviderName = z.infer<typeof providerNamesSchema>;
declare const isProviderName: (key: unknown) => key is ProviderName;
/**
 * RetiredProviderName
 */
declare const retiredProviderNames: readonly ["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"];
declare const retiredProviderNamesSchema: z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>;
type RetiredProviderName = z.infer<typeof retiredProviderNamesSchema>;
declare const isRetiredProvider: (value: string) => value is RetiredProviderName;
declare const providerNamesWithRetiredSchema: z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>;
type ProviderNameWithRetired = z.infer<typeof providerNamesWithRetiredSchema>;
/**
 * ProviderSettingsEntry
 */
declare const providerSettingsEntrySchema: z.ZodObject<{
    id: z.ZodString;
    name: z.ZodString;
    apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
    modelId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    id: string;
    name: string;
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
    modelId?: string | undefined;
}, {
    id: string;
    name: string;
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
    modelId?: string | undefined;
}>;
type ProviderSettingsEntry = z.infer<typeof providerSettingsEntrySchema>;
declare const zaiApiLineSchema: z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>;
type ZaiApiLine = z.infer<typeof zaiApiLineSchema>;
declare const providerSettingsSchemaDiscriminated: z.ZodDiscriminatedUnion<"apiProvider", [z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    costrictAccessToken: z.ZodOptional<z.ZodString>;
    costrictRefreshToken: z.ZodOptional<z.ZodString>;
    costrictState: z.ZodOptional<z.ZodString>;
    costrictBaseUrl: z.ZodOptional<z.ZodString>;
    costrictModelId: z.ZodOptional<z.ZodString>;
    costrictApiKeyUpdatedAt: z.ZodOptional<z.ZodString>;
    costrictApiKeyExpiredAt: z.ZodOptional<z.ZodString>;
    useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
    costrictAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>>;
} & {
    apiProvider: z.ZodLiteral<"costrict">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "costrict";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    costrictAccessToken?: string | undefined;
    costrictRefreshToken?: string | undefined;
    costrictState?: string | undefined;
    costrictBaseUrl?: string | undefined;
    costrictModelId?: string | undefined;
    costrictApiKeyUpdatedAt?: string | undefined;
    costrictApiKeyExpiredAt?: string | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    costrictAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
}, {
    apiProvider: "costrict";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    costrictAccessToken?: string | undefined;
    costrictRefreshToken?: string | undefined;
    costrictState?: string | undefined;
    costrictBaseUrl?: string | undefined;
    costrictModelId?: string | undefined;
    costrictApiKeyUpdatedAt?: string | undefined;
    costrictApiKeyExpiredAt?: string | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    costrictAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    apiKey: z.ZodOptional<z.ZodString>;
    anthropicBaseUrl: z.ZodOptional<z.ZodString>;
    anthropicUseAuthToken: z.ZodOptional<z.ZodBoolean>;
    anthropicBeta1MContext: z.ZodOptional<z.ZodBoolean>;
} & {
    apiProvider: z.ZodLiteral<"anthropic">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "anthropic";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    apiKey?: string | undefined;
    anthropicBaseUrl?: string | undefined;
    anthropicUseAuthToken?: boolean | undefined;
    anthropicBeta1MContext?: boolean | undefined;
}, {
    apiProvider: "anthropic";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    apiKey?: string | undefined;
    anthropicBaseUrl?: string | undefined;
    anthropicUseAuthToken?: boolean | undefined;
    anthropicBeta1MContext?: boolean | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"claude-code">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "claude-code";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
}, {
    apiProvider: "claude-code";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    openRouterApiKey: z.ZodOptional<z.ZodString>;
    openRouterModelId: z.ZodOptional<z.ZodString>;
    openRouterBaseUrl: z.ZodOptional<z.ZodString>;
    openRouterSpecificProvider: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"openrouter">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "openrouter";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    openRouterApiKey?: string | undefined;
    openRouterModelId?: string | undefined;
    openRouterBaseUrl?: string | undefined;
    openRouterSpecificProvider?: string | undefined;
}, {
    apiProvider: "openrouter";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    openRouterApiKey?: string | undefined;
    openRouterModelId?: string | undefined;
    openRouterBaseUrl?: string | undefined;
    openRouterSpecificProvider?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    awsAccessKey: z.ZodOptional<z.ZodString>;
    awsSecretKey: z.ZodOptional<z.ZodString>;
    awsSessionToken: z.ZodOptional<z.ZodString>;
    awsRegion: z.ZodOptional<z.ZodString>;
    awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
    awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
    awsUsePromptCache: z.ZodOptional<z.ZodBoolean>;
    awsProfile: z.ZodOptional<z.ZodString>;
    awsUseProfile: z.ZodOptional<z.ZodBoolean>;
    awsApiKey: z.ZodOptional<z.ZodString>;
    awsUseApiKey: z.ZodOptional<z.ZodBoolean>;
    awsCustomArn: z.ZodOptional<z.ZodString>;
    awsModelContextWindow: z.ZodOptional<z.ZodNumber>;
    awsBedrockEndpointEnabled: z.ZodOptional<z.ZodBoolean>;
    awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
    awsBedrock1MContext: z.ZodOptional<z.ZodBoolean>;
    awsBedrockServiceTier: z.ZodOptional<z.ZodEnum<["STANDARD", "FLEX", "PRIORITY"]>>;
} & {
    apiProvider: z.ZodLiteral<"bedrock">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "bedrock";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    awsAccessKey?: string | undefined;
    awsSecretKey?: string | undefined;
    awsSessionToken?: string | undefined;
    awsRegion?: string | undefined;
    awsUseCrossRegionInference?: boolean | undefined;
    awsUseGlobalInference?: boolean | undefined;
    awsUsePromptCache?: boolean | undefined;
    awsProfile?: string | undefined;
    awsUseProfile?: boolean | undefined;
    awsApiKey?: string | undefined;
    awsUseApiKey?: boolean | undefined;
    awsCustomArn?: string | undefined;
    awsModelContextWindow?: number | undefined;
    awsBedrockEndpointEnabled?: boolean | undefined;
    awsBedrockEndpoint?: string | undefined;
    awsBedrock1MContext?: boolean | undefined;
    awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
}, {
    apiProvider: "bedrock";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    awsAccessKey?: string | undefined;
    awsSecretKey?: string | undefined;
    awsSessionToken?: string | undefined;
    awsRegion?: string | undefined;
    awsUseCrossRegionInference?: boolean | undefined;
    awsUseGlobalInference?: boolean | undefined;
    awsUsePromptCache?: boolean | undefined;
    awsProfile?: string | undefined;
    awsUseProfile?: boolean | undefined;
    awsApiKey?: string | undefined;
    awsUseApiKey?: boolean | undefined;
    awsCustomArn?: string | undefined;
    awsModelContextWindow?: number | undefined;
    awsBedrockEndpointEnabled?: boolean | undefined;
    awsBedrockEndpoint?: string | undefined;
    awsBedrock1MContext?: boolean | undefined;
    awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    vertexKeyFile: z.ZodOptional<z.ZodString>;
    vertexJsonCredentials: z.ZodOptional<z.ZodString>;
    vertexProjectId: z.ZodOptional<z.ZodString>;
    vertexRegion: z.ZodOptional<z.ZodString>;
    vertex1MContext: z.ZodOptional<z.ZodBoolean>;
} & {
    apiProvider: z.ZodLiteral<"vertex">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "vertex";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    vertexKeyFile?: string | undefined;
    vertexJsonCredentials?: string | undefined;
    vertexProjectId?: string | undefined;
    vertexRegion?: string | undefined;
    vertex1MContext?: boolean | undefined;
}, {
    apiProvider: "vertex";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    vertexKeyFile?: string | undefined;
    vertexJsonCredentials?: string | undefined;
    vertexProjectId?: string | undefined;
    vertexRegion?: string | undefined;
    vertex1MContext?: boolean | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    openAiBaseUrl: z.ZodOptional<z.ZodString>;
    openAiApiKey: z.ZodOptional<z.ZodString>;
    openAiR1FormatEnabled: z.ZodOptional<z.ZodBoolean>;
    openAiModelId: z.ZodOptional<z.ZodString>;
    openAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>>;
    openAiUseAzure: z.ZodOptional<z.ZodBoolean>;
    azureApiVersion: z.ZodOptional<z.ZodString>;
    openAiStreamingEnabled: z.ZodOptional<z.ZodBoolean>;
    openAiHostHeader: z.ZodOptional<z.ZodString>;
    openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
} & {
    apiProvider: z.ZodLiteral<"openai">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "openai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    openAiBaseUrl?: string | undefined;
    openAiApiKey?: string | undefined;
    openAiR1FormatEnabled?: boolean | undefined;
    openAiModelId?: string | undefined;
    openAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    openAiUseAzure?: boolean | undefined;
    azureApiVersion?: string | undefined;
    openAiStreamingEnabled?: boolean | undefined;
    openAiHostHeader?: string | undefined;
    openAiHeaders?: Record<string, string> | undefined;
}, {
    apiProvider: "openai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    openAiBaseUrl?: string | undefined;
    openAiApiKey?: string | undefined;
    openAiR1FormatEnabled?: boolean | undefined;
    openAiModelId?: string | undefined;
    openAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    openAiUseAzure?: boolean | undefined;
    azureApiVersion?: string | undefined;
    openAiStreamingEnabled?: boolean | undefined;
    openAiHostHeader?: string | undefined;
    openAiHeaders?: Record<string, string> | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    ollamaModelId: z.ZodOptional<z.ZodString>;
    ollamaBaseUrl: z.ZodOptional<z.ZodString>;
    ollamaApiKey: z.ZodOptional<z.ZodString>;
    ollamaNumCtx: z.ZodOptional<z.ZodNumber>;
} & {
    apiProvider: z.ZodLiteral<"ollama">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "ollama";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    ollamaModelId?: string | undefined;
    ollamaBaseUrl?: string | undefined;
    ollamaApiKey?: string | undefined;
    ollamaNumCtx?: number | undefined;
}, {
    apiProvider: "ollama";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    ollamaModelId?: string | undefined;
    ollamaBaseUrl?: string | undefined;
    ollamaApiKey?: string | undefined;
    ollamaNumCtx?: number | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    vsCodeLmModelSelector: z.ZodOptional<z.ZodObject<{
        vendor: z.ZodOptional<z.ZodString>;
        family: z.ZodOptional<z.ZodString>;
        version: z.ZodOptional<z.ZodString>;
        id: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    }, {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    }>>;
} & {
    apiProvider: z.ZodLiteral<"vscode-lm">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "vscode-lm";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    vsCodeLmModelSelector?: {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    } | undefined;
}, {
    apiProvider: "vscode-lm";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    vsCodeLmModelSelector?: {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    } | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    lmStudioModelId: z.ZodOptional<z.ZodString>;
    lmStudioBaseUrl: z.ZodOptional<z.ZodString>;
    lmStudioDraftModelId: z.ZodOptional<z.ZodString>;
    lmStudioSpeculativeDecodingEnabled: z.ZodOptional<z.ZodBoolean>;
} & {
    apiProvider: z.ZodLiteral<"lmstudio">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "lmstudio";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    lmStudioModelId?: string | undefined;
    lmStudioBaseUrl?: string | undefined;
    lmStudioDraftModelId?: string | undefined;
    lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
}, {
    apiProvider: "lmstudio";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    lmStudioModelId?: string | undefined;
    lmStudioBaseUrl?: string | undefined;
    lmStudioDraftModelId?: string | undefined;
    lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    geminiApiKey: z.ZodOptional<z.ZodString>;
    googleGeminiBaseUrl: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"gemini">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "gemini";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    geminiApiKey?: string | undefined;
    googleGeminiBaseUrl?: string | undefined;
}, {
    apiProvider: "gemini";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    geminiApiKey?: string | undefined;
    googleGeminiBaseUrl?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    geminiCliOAuthPath: z.ZodOptional<z.ZodString>;
    geminiCliProjectId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"gemini-cli">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "gemini-cli";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    geminiCliOAuthPath?: string | undefined;
    geminiCliProjectId?: string | undefined;
}, {
    apiProvider: "gemini-cli";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    geminiCliOAuthPath?: string | undefined;
    geminiCliProjectId?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"openai-codex">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "openai-codex";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
}, {
    apiProvider: "openai-codex";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    openAiNativeApiKey: z.ZodOptional<z.ZodString>;
    openAiNativeBaseUrl: z.ZodOptional<z.ZodString>;
    openAiNativeServiceTier: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
} & {
    apiProvider: z.ZodLiteral<"openai-native">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "openai-native";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    openAiNativeApiKey?: string | undefined;
    openAiNativeBaseUrl?: string | undefined;
    openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
}, {
    apiProvider: "openai-native";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    openAiNativeApiKey?: string | undefined;
    openAiNativeBaseUrl?: string | undefined;
    openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    mistralApiKey: z.ZodOptional<z.ZodString>;
    mistralCodestralUrl: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"mistral">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "mistral";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    mistralApiKey?: string | undefined;
    mistralCodestralUrl?: string | undefined;
}, {
    apiProvider: "mistral";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    mistralApiKey?: string | undefined;
    mistralCodestralUrl?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    deepSeekBaseUrl: z.ZodOptional<z.ZodString>;
    deepSeekApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"deepseek">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "deepseek";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    deepSeekBaseUrl?: string | undefined;
    deepSeekApiKey?: string | undefined;
}, {
    apiProvider: "deepseek";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    deepSeekBaseUrl?: string | undefined;
    deepSeekApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    poeApiKey: z.ZodOptional<z.ZodString>;
    poeBaseUrl: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"poe">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "poe";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    poeApiKey?: string | undefined;
    poeBaseUrl?: string | undefined;
}, {
    apiProvider: "poe";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    poeApiKey?: string | undefined;
    poeBaseUrl?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    moonshotBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.moonshot.ai/v1">, z.ZodLiteral<"https://api.moonshot.cn/v1">]>>;
    moonshotApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"moonshot">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "moonshot";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
    moonshotApiKey?: string | undefined;
}, {
    apiProvider: "moonshot";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
    moonshotApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    minimaxBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.minimax.io/v1">, z.ZodLiteral<"https://api.minimaxi.com/v1">]>>;
    minimaxApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"minimax">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "minimax";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
    minimaxApiKey?: string | undefined;
}, {
    apiProvider: "minimax";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
    minimaxApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    mimoBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-cn.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-sgp.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-ams.xiaomimimo.com/v1">]>>;
    mimoApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"mimo">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "mimo";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
    mimoApiKey?: string | undefined;
}, {
    apiProvider: "mimo";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
    mimoApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    requestyBaseUrl: z.ZodOptional<z.ZodString>;
    requestyApiKey: z.ZodOptional<z.ZodString>;
    requestyModelId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"requesty">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "requesty";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    requestyBaseUrl?: string | undefined;
    requestyApiKey?: string | undefined;
    requestyModelId?: string | undefined;
}, {
    apiProvider: "requesty";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    requestyBaseUrl?: string | undefined;
    requestyApiKey?: string | undefined;
    requestyModelId?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiProvider: z.ZodLiteral<"human-relay">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "human-relay";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
}, {
    apiProvider: "human-relay";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    unboundApiKey: z.ZodOptional<z.ZodString>;
    unboundModelId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"unbound">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "unbound";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    unboundApiKey?: string | undefined;
    unboundModelId?: string | undefined;
}, {
    apiProvider: "unbound";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    unboundApiKey?: string | undefined;
    unboundModelId?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    fakeAi: z.ZodOptional<z.ZodUnknown>;
} & {
    apiProvider: z.ZodLiteral<"fake-ai">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "fake-ai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    fakeAi?: unknown;
}, {
    apiProvider: "fake-ai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    fakeAi?: unknown;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    xaiApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"xai">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "xai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    xaiApiKey?: string | undefined;
}, {
    apiProvider: "xai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    xaiApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    basetenApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"baseten">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "baseten";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    basetenApiKey?: string | undefined;
}, {
    apiProvider: "baseten";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    basetenApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    litellmBaseUrl: z.ZodOptional<z.ZodString>;
    litellmApiKey: z.ZodOptional<z.ZodString>;
    litellmModelId: z.ZodOptional<z.ZodString>;
    litellmUsePromptCache: z.ZodOptional<z.ZodBoolean>;
} & {
    apiProvider: z.ZodLiteral<"litellm">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "litellm";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    litellmBaseUrl?: string | undefined;
    litellmApiKey?: string | undefined;
    litellmModelId?: string | undefined;
    litellmUsePromptCache?: boolean | undefined;
}, {
    apiProvider: "litellm";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    litellmBaseUrl?: string | undefined;
    litellmApiKey?: string | undefined;
    litellmModelId?: string | undefined;
    litellmUsePromptCache?: boolean | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    sambaNovaApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"sambanova">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "sambanova";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    sambaNovaApiKey?: string | undefined;
}, {
    apiProvider: "sambanova";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    sambaNovaApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    zaiApiKey: z.ZodOptional<z.ZodString>;
    zaiApiLine: z.ZodOptional<z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>>;
} & {
    apiProvider: z.ZodLiteral<"zai">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "zai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    zaiApiKey?: string | undefined;
    zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
}, {
    apiProvider: "zai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    zaiApiKey?: string | undefined;
    zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    fireworksApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"fireworks">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "fireworks";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    fireworksApiKey?: string | undefined;
}, {
    apiProvider: "fireworks";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    fireworksApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    qwenCodeOauthPath: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"qwen-code">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "qwen-code";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    qwenCodeOauthPath?: string | undefined;
}, {
    apiProvider: "qwen-code";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    qwenCodeOauthPath?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    rooApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"roo">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "roo";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    rooApiKey?: string | undefined;
}, {
    apiProvider: "roo";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    rooApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
    vercelAiGatewayModelId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"vercel-ai-gateway">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "vercel-ai-gateway";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    vercelAiGatewayApiKey?: string | undefined;
    vercelAiGatewayModelId?: string | undefined;
}, {
    apiProvider: "vercel-ai-gateway";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    vercelAiGatewayApiKey?: string | undefined;
    vercelAiGatewayModelId?: string | undefined;
}>, z.ZodObject<{
    apiProvider: z.ZodUndefined;
}, "strip", z.ZodTypeAny, {
    apiProvider?: undefined;
}, {
    apiProvider?: undefined;
}>]>;
declare const providerSettingsSchema: z.ZodObject<{
    codeIndexOpenAiKey: z.ZodOptional<z.ZodString>;
    codeIndexQdrantApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
    codebaseIndexGeminiApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexMistralApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexVercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenRouterApiKey: z.ZodOptional<z.ZodString>;
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
    vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
    vercelAiGatewayModelId: z.ZodOptional<z.ZodString>;
    apiModelId: z.ZodOptional<z.ZodString>;
    rooApiKey: z.ZodOptional<z.ZodString>;
    qwenCodeOauthPath: z.ZodOptional<z.ZodString>;
    fireworksApiKey: z.ZodOptional<z.ZodString>;
    zaiApiKey: z.ZodOptional<z.ZodString>;
    zaiApiLine: z.ZodOptional<z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>>;
    sambaNovaApiKey: z.ZodOptional<z.ZodString>;
    litellmBaseUrl: z.ZodOptional<z.ZodString>;
    litellmApiKey: z.ZodOptional<z.ZodString>;
    litellmModelId: z.ZodOptional<z.ZodString>;
    litellmUsePromptCache: z.ZodOptional<z.ZodBoolean>;
    basetenApiKey: z.ZodOptional<z.ZodString>;
    xaiApiKey: z.ZodOptional<z.ZodString>;
    fakeAi: z.ZodOptional<z.ZodUnknown>;
    unboundApiKey: z.ZodOptional<z.ZodString>;
    unboundModelId: z.ZodOptional<z.ZodString>;
    requestyBaseUrl: z.ZodOptional<z.ZodString>;
    requestyApiKey: z.ZodOptional<z.ZodString>;
    requestyModelId: z.ZodOptional<z.ZodString>;
    mimoBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-cn.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-sgp.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-ams.xiaomimimo.com/v1">]>>;
    mimoApiKey: z.ZodOptional<z.ZodString>;
    minimaxBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.minimax.io/v1">, z.ZodLiteral<"https://api.minimaxi.com/v1">]>>;
    minimaxApiKey: z.ZodOptional<z.ZodString>;
    moonshotBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.moonshot.ai/v1">, z.ZodLiteral<"https://api.moonshot.cn/v1">]>>;
    moonshotApiKey: z.ZodOptional<z.ZodString>;
    poeApiKey: z.ZodOptional<z.ZodString>;
    poeBaseUrl: z.ZodOptional<z.ZodString>;
    deepSeekBaseUrl: z.ZodOptional<z.ZodString>;
    deepSeekApiKey: z.ZodOptional<z.ZodString>;
    mistralApiKey: z.ZodOptional<z.ZodString>;
    mistralCodestralUrl: z.ZodOptional<z.ZodString>;
    openAiNativeApiKey: z.ZodOptional<z.ZodString>;
    openAiNativeBaseUrl: z.ZodOptional<z.ZodString>;
    openAiNativeServiceTier: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
    geminiCliOAuthPath: z.ZodOptional<z.ZodString>;
    geminiCliProjectId: z.ZodOptional<z.ZodString>;
    geminiApiKey: z.ZodOptional<z.ZodString>;
    googleGeminiBaseUrl: z.ZodOptional<z.ZodString>;
    lmStudioModelId: z.ZodOptional<z.ZodString>;
    lmStudioBaseUrl: z.ZodOptional<z.ZodString>;
    lmStudioDraftModelId: z.ZodOptional<z.ZodString>;
    lmStudioSpeculativeDecodingEnabled: z.ZodOptional<z.ZodBoolean>;
    vsCodeLmModelSelector: z.ZodOptional<z.ZodObject<{
        vendor: z.ZodOptional<z.ZodString>;
        family: z.ZodOptional<z.ZodString>;
        version: z.ZodOptional<z.ZodString>;
        id: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    }, {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    }>>;
    ollamaModelId: z.ZodOptional<z.ZodString>;
    ollamaBaseUrl: z.ZodOptional<z.ZodString>;
    ollamaApiKey: z.ZodOptional<z.ZodString>;
    ollamaNumCtx: z.ZodOptional<z.ZodNumber>;
    openAiBaseUrl: z.ZodOptional<z.ZodString>;
    openAiApiKey: z.ZodOptional<z.ZodString>;
    openAiR1FormatEnabled: z.ZodOptional<z.ZodBoolean>;
    openAiModelId: z.ZodOptional<z.ZodString>;
    openAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>>;
    openAiUseAzure: z.ZodOptional<z.ZodBoolean>;
    azureApiVersion: z.ZodOptional<z.ZodString>;
    openAiStreamingEnabled: z.ZodOptional<z.ZodBoolean>;
    openAiHostHeader: z.ZodOptional<z.ZodString>;
    openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    vertexKeyFile: z.ZodOptional<z.ZodString>;
    vertexJsonCredentials: z.ZodOptional<z.ZodString>;
    vertexProjectId: z.ZodOptional<z.ZodString>;
    vertexRegion: z.ZodOptional<z.ZodString>;
    vertex1MContext: z.ZodOptional<z.ZodBoolean>;
    awsAccessKey: z.ZodOptional<z.ZodString>;
    awsSecretKey: z.ZodOptional<z.ZodString>;
    awsSessionToken: z.ZodOptional<z.ZodString>;
    awsRegion: z.ZodOptional<z.ZodString>;
    awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
    awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
    awsUsePromptCache: z.ZodOptional<z.ZodBoolean>;
    awsProfile: z.ZodOptional<z.ZodString>;
    awsUseProfile: z.ZodOptional<z.ZodBoolean>;
    awsApiKey: z.ZodOptional<z.ZodString>;
    awsUseApiKey: z.ZodOptional<z.ZodBoolean>;
    awsCustomArn: z.ZodOptional<z.ZodString>;
    awsModelContextWindow: z.ZodOptional<z.ZodNumber>;
    awsBedrockEndpointEnabled: z.ZodOptional<z.ZodBoolean>;
    awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
    awsBedrock1MContext: z.ZodOptional<z.ZodBoolean>;
    awsBedrockServiceTier: z.ZodOptional<z.ZodEnum<["STANDARD", "FLEX", "PRIORITY"]>>;
    openRouterApiKey: z.ZodOptional<z.ZodString>;
    openRouterModelId: z.ZodOptional<z.ZodString>;
    openRouterBaseUrl: z.ZodOptional<z.ZodString>;
    openRouterSpecificProvider: z.ZodOptional<z.ZodString>;
    apiKey: z.ZodOptional<z.ZodString>;
    anthropicBaseUrl: z.ZodOptional<z.ZodString>;
    anthropicUseAuthToken: z.ZodOptional<z.ZodBoolean>;
    anthropicBeta1MContext: z.ZodOptional<z.ZodBoolean>;
    costrictAccessToken: z.ZodOptional<z.ZodString>;
    costrictRefreshToken: z.ZodOptional<z.ZodString>;
    costrictState: z.ZodOptional<z.ZodString>;
    costrictBaseUrl: z.ZodOptional<z.ZodString>;
    costrictModelId: z.ZodOptional<z.ZodString>;
    costrictApiKeyUpdatedAt: z.ZodOptional<z.ZodString>;
    costrictApiKeyExpiredAt: z.ZodOptional<z.ZodString>;
    useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
    costrictAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>>;
    apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
}, "strip", z.ZodTypeAny, {
    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
    codeIndexOpenAiKey?: string | undefined;
    codeIndexQdrantApiKey?: string | undefined;
    codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
    codebaseIndexGeminiApiKey?: string | undefined;
    codebaseIndexMistralApiKey?: string | undefined;
    codebaseIndexVercelAiGatewayApiKey?: string | undefined;
    codebaseIndexOpenRouterApiKey?: string | undefined;
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    costrictAccessToken?: string | undefined;
    costrictRefreshToken?: string | undefined;
    costrictState?: string | undefined;
    costrictBaseUrl?: string | undefined;
    costrictModelId?: string | undefined;
    costrictApiKeyUpdatedAt?: string | undefined;
    costrictApiKeyExpiredAt?: string | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    costrictAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    apiKey?: string | undefined;
    anthropicBaseUrl?: string | undefined;
    anthropicUseAuthToken?: boolean | undefined;
    anthropicBeta1MContext?: boolean | undefined;
    openRouterApiKey?: string | undefined;
    openRouterModelId?: string | undefined;
    openRouterBaseUrl?: string | undefined;
    openRouterSpecificProvider?: string | undefined;
    awsAccessKey?: string | undefined;
    awsSecretKey?: string | undefined;
    awsSessionToken?: string | undefined;
    awsRegion?: string | undefined;
    awsUseCrossRegionInference?: boolean | undefined;
    awsUseGlobalInference?: boolean | undefined;
    awsUsePromptCache?: boolean | undefined;
    awsProfile?: string | undefined;
    awsUseProfile?: boolean | undefined;
    awsApiKey?: string | undefined;
    awsUseApiKey?: boolean | undefined;
    awsCustomArn?: string | undefined;
    awsModelContextWindow?: number | undefined;
    awsBedrockEndpointEnabled?: boolean | undefined;
    awsBedrockEndpoint?: string | undefined;
    awsBedrock1MContext?: boolean | undefined;
    awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
    vertexKeyFile?: string | undefined;
    vertexJsonCredentials?: string | undefined;
    vertexProjectId?: string | undefined;
    vertexRegion?: string | undefined;
    vertex1MContext?: boolean | undefined;
    openAiBaseUrl?: string | undefined;
    openAiApiKey?: string | undefined;
    openAiR1FormatEnabled?: boolean | undefined;
    openAiModelId?: string | undefined;
    openAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    openAiUseAzure?: boolean | undefined;
    azureApiVersion?: string | undefined;
    openAiStreamingEnabled?: boolean | undefined;
    openAiHostHeader?: string | undefined;
    openAiHeaders?: Record<string, string> | undefined;
    ollamaModelId?: string | undefined;
    ollamaBaseUrl?: string | undefined;
    ollamaApiKey?: string | undefined;
    ollamaNumCtx?: number | undefined;
    vsCodeLmModelSelector?: {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    } | undefined;
    lmStudioModelId?: string | undefined;
    lmStudioBaseUrl?: string | undefined;
    lmStudioDraftModelId?: string | undefined;
    lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
    geminiApiKey?: string | undefined;
    googleGeminiBaseUrl?: string | undefined;
    geminiCliOAuthPath?: string | undefined;
    geminiCliProjectId?: string | undefined;
    openAiNativeApiKey?: string | undefined;
    openAiNativeBaseUrl?: string | undefined;
    openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
    mistralApiKey?: string | undefined;
    mistralCodestralUrl?: string | undefined;
    deepSeekBaseUrl?: string | undefined;
    deepSeekApiKey?: string | undefined;
    poeApiKey?: string | undefined;
    poeBaseUrl?: string | undefined;
    moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
    moonshotApiKey?: string | undefined;
    minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
    minimaxApiKey?: string | undefined;
    mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
    mimoApiKey?: string | undefined;
    requestyBaseUrl?: string | undefined;
    requestyApiKey?: string | undefined;
    requestyModelId?: string | undefined;
    unboundApiKey?: string | undefined;
    unboundModelId?: string | undefined;
    fakeAi?: unknown;
    xaiApiKey?: string | undefined;
    basetenApiKey?: string | undefined;
    litellmBaseUrl?: string | undefined;
    litellmApiKey?: string | undefined;
    litellmModelId?: string | undefined;
    litellmUsePromptCache?: boolean | undefined;
    sambaNovaApiKey?: string | undefined;
    zaiApiKey?: string | undefined;
    zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
    fireworksApiKey?: string | undefined;
    qwenCodeOauthPath?: string | undefined;
    rooApiKey?: string | undefined;
    vercelAiGatewayApiKey?: string | undefined;
    vercelAiGatewayModelId?: string | undefined;
}, {
    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
    codeIndexOpenAiKey?: string | undefined;
    codeIndexQdrantApiKey?: string | undefined;
    codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
    codebaseIndexGeminiApiKey?: string | undefined;
    codebaseIndexMistralApiKey?: string | undefined;
    codebaseIndexVercelAiGatewayApiKey?: string | undefined;
    codebaseIndexOpenRouterApiKey?: string | undefined;
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    costrictAccessToken?: string | undefined;
    costrictRefreshToken?: string | undefined;
    costrictState?: string | undefined;
    costrictBaseUrl?: string | undefined;
    costrictModelId?: string | undefined;
    costrictApiKeyUpdatedAt?: string | undefined;
    costrictApiKeyExpiredAt?: string | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    costrictAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    apiKey?: string | undefined;
    anthropicBaseUrl?: string | undefined;
    anthropicUseAuthToken?: boolean | undefined;
    anthropicBeta1MContext?: boolean | undefined;
    openRouterApiKey?: string | undefined;
    openRouterModelId?: string | undefined;
    openRouterBaseUrl?: string | undefined;
    openRouterSpecificProvider?: string | undefined;
    awsAccessKey?: string | undefined;
    awsSecretKey?: string | undefined;
    awsSessionToken?: string | undefined;
    awsRegion?: string | undefined;
    awsUseCrossRegionInference?: boolean | undefined;
    awsUseGlobalInference?: boolean | undefined;
    awsUsePromptCache?: boolean | undefined;
    awsProfile?: string | undefined;
    awsUseProfile?: boolean | undefined;
    awsApiKey?: string | undefined;
    awsUseApiKey?: boolean | undefined;
    awsCustomArn?: string | undefined;
    awsModelContextWindow?: number | undefined;
    awsBedrockEndpointEnabled?: boolean | undefined;
    awsBedrockEndpoint?: string | undefined;
    awsBedrock1MContext?: boolean | undefined;
    awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
    vertexKeyFile?: string | undefined;
    vertexJsonCredentials?: string | undefined;
    vertexProjectId?: string | undefined;
    vertexRegion?: string | undefined;
    vertex1MContext?: boolean | undefined;
    openAiBaseUrl?: string | undefined;
    openAiApiKey?: string | undefined;
    openAiR1FormatEnabled?: boolean | undefined;
    openAiModelId?: string | undefined;
    openAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    openAiUseAzure?: boolean | undefined;
    azureApiVersion?: string | undefined;
    openAiStreamingEnabled?: boolean | undefined;
    openAiHostHeader?: string | undefined;
    openAiHeaders?: Record<string, string> | undefined;
    ollamaModelId?: string | undefined;
    ollamaBaseUrl?: string | undefined;
    ollamaApiKey?: string | undefined;
    ollamaNumCtx?: number | undefined;
    vsCodeLmModelSelector?: {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    } | undefined;
    lmStudioModelId?: string | undefined;
    lmStudioBaseUrl?: string | undefined;
    lmStudioDraftModelId?: string | undefined;
    lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
    geminiApiKey?: string | undefined;
    googleGeminiBaseUrl?: string | undefined;
    geminiCliOAuthPath?: string | undefined;
    geminiCliProjectId?: string | undefined;
    openAiNativeApiKey?: string | undefined;
    openAiNativeBaseUrl?: string | undefined;
    openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
    mistralApiKey?: string | undefined;
    mistralCodestralUrl?: string | undefined;
    deepSeekBaseUrl?: string | undefined;
    deepSeekApiKey?: string | undefined;
    poeApiKey?: string | undefined;
    poeBaseUrl?: string | undefined;
    moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
    moonshotApiKey?: string | undefined;
    minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
    minimaxApiKey?: string | undefined;
    mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
    mimoApiKey?: string | undefined;
    requestyBaseUrl?: string | undefined;
    requestyApiKey?: string | undefined;
    requestyModelId?: string | undefined;
    unboundApiKey?: string | undefined;
    unboundModelId?: string | undefined;
    fakeAi?: unknown;
    xaiApiKey?: string | undefined;
    basetenApiKey?: string | undefined;
    litellmBaseUrl?: string | undefined;
    litellmApiKey?: string | undefined;
    litellmModelId?: string | undefined;
    litellmUsePromptCache?: boolean | undefined;
    sambaNovaApiKey?: string | undefined;
    zaiApiKey?: string | undefined;
    zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
    fireworksApiKey?: string | undefined;
    qwenCodeOauthPath?: string | undefined;
    rooApiKey?: string | undefined;
    vercelAiGatewayApiKey?: string | undefined;
    vercelAiGatewayModelId?: string | undefined;
}>;
type ProviderSettings = z.infer<typeof providerSettingsSchema>;
interface QuotaInfo {
    total_quota?: number;
    used_quota?: number;
    is_star?: string;
}
interface InviteCodeInfo {
    invite_code?: string;
}
declare const providerSettingsWithIdSchema: z.ZodObject<{
    codeIndexOpenAiKey: z.ZodOptional<z.ZodString>;
    codeIndexQdrantApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
    codebaseIndexGeminiApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexMistralApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexVercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenRouterApiKey: z.ZodOptional<z.ZodString>;
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
    vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
    vercelAiGatewayModelId: z.ZodOptional<z.ZodString>;
    apiModelId: z.ZodOptional<z.ZodString>;
    rooApiKey: z.ZodOptional<z.ZodString>;
    qwenCodeOauthPath: z.ZodOptional<z.ZodString>;
    fireworksApiKey: z.ZodOptional<z.ZodString>;
    zaiApiKey: z.ZodOptional<z.ZodString>;
    zaiApiLine: z.ZodOptional<z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>>;
    sambaNovaApiKey: z.ZodOptional<z.ZodString>;
    litellmBaseUrl: z.ZodOptional<z.ZodString>;
    litellmApiKey: z.ZodOptional<z.ZodString>;
    litellmModelId: z.ZodOptional<z.ZodString>;
    litellmUsePromptCache: z.ZodOptional<z.ZodBoolean>;
    basetenApiKey: z.ZodOptional<z.ZodString>;
    xaiApiKey: z.ZodOptional<z.ZodString>;
    fakeAi: z.ZodOptional<z.ZodUnknown>;
    unboundApiKey: z.ZodOptional<z.ZodString>;
    unboundModelId: z.ZodOptional<z.ZodString>;
    requestyBaseUrl: z.ZodOptional<z.ZodString>;
    requestyApiKey: z.ZodOptional<z.ZodString>;
    requestyModelId: z.ZodOptional<z.ZodString>;
    mimoBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-cn.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-sgp.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-ams.xiaomimimo.com/v1">]>>;
    mimoApiKey: z.ZodOptional<z.ZodString>;
    minimaxBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.minimax.io/v1">, z.ZodLiteral<"https://api.minimaxi.com/v1">]>>;
    minimaxApiKey: z.ZodOptional<z.ZodString>;
    moonshotBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.moonshot.ai/v1">, z.ZodLiteral<"https://api.moonshot.cn/v1">]>>;
    moonshotApiKey: z.ZodOptional<z.ZodString>;
    poeApiKey: z.ZodOptional<z.ZodString>;
    poeBaseUrl: z.ZodOptional<z.ZodString>;
    deepSeekBaseUrl: z.ZodOptional<z.ZodString>;
    deepSeekApiKey: z.ZodOptional<z.ZodString>;
    mistralApiKey: z.ZodOptional<z.ZodString>;
    mistralCodestralUrl: z.ZodOptional<z.ZodString>;
    openAiNativeApiKey: z.ZodOptional<z.ZodString>;
    openAiNativeBaseUrl: z.ZodOptional<z.ZodString>;
    openAiNativeServiceTier: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
    geminiCliOAuthPath: z.ZodOptional<z.ZodString>;
    geminiCliProjectId: z.ZodOptional<z.ZodString>;
    geminiApiKey: z.ZodOptional<z.ZodString>;
    googleGeminiBaseUrl: z.ZodOptional<z.ZodString>;
    lmStudioModelId: z.ZodOptional<z.ZodString>;
    lmStudioBaseUrl: z.ZodOptional<z.ZodString>;
    lmStudioDraftModelId: z.ZodOptional<z.ZodString>;
    lmStudioSpeculativeDecodingEnabled: z.ZodOptional<z.ZodBoolean>;
    vsCodeLmModelSelector: z.ZodOptional<z.ZodObject<{
        vendor: z.ZodOptional<z.ZodString>;
        family: z.ZodOptional<z.ZodString>;
        version: z.ZodOptional<z.ZodString>;
        id: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    }, {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    }>>;
    ollamaModelId: z.ZodOptional<z.ZodString>;
    ollamaBaseUrl: z.ZodOptional<z.ZodString>;
    ollamaApiKey: z.ZodOptional<z.ZodString>;
    ollamaNumCtx: z.ZodOptional<z.ZodNumber>;
    openAiBaseUrl: z.ZodOptional<z.ZodString>;
    openAiApiKey: z.ZodOptional<z.ZodString>;
    openAiR1FormatEnabled: z.ZodOptional<z.ZodBoolean>;
    openAiModelId: z.ZodOptional<z.ZodString>;
    openAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>>;
    openAiUseAzure: z.ZodOptional<z.ZodBoolean>;
    azureApiVersion: z.ZodOptional<z.ZodString>;
    openAiStreamingEnabled: z.ZodOptional<z.ZodBoolean>;
    openAiHostHeader: z.ZodOptional<z.ZodString>;
    openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    vertexKeyFile: z.ZodOptional<z.ZodString>;
    vertexJsonCredentials: z.ZodOptional<z.ZodString>;
    vertexProjectId: z.ZodOptional<z.ZodString>;
    vertexRegion: z.ZodOptional<z.ZodString>;
    vertex1MContext: z.ZodOptional<z.ZodBoolean>;
    awsAccessKey: z.ZodOptional<z.ZodString>;
    awsSecretKey: z.ZodOptional<z.ZodString>;
    awsSessionToken: z.ZodOptional<z.ZodString>;
    awsRegion: z.ZodOptional<z.ZodString>;
    awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
    awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
    awsUsePromptCache: z.ZodOptional<z.ZodBoolean>;
    awsProfile: z.ZodOptional<z.ZodString>;
    awsUseProfile: z.ZodOptional<z.ZodBoolean>;
    awsApiKey: z.ZodOptional<z.ZodString>;
    awsUseApiKey: z.ZodOptional<z.ZodBoolean>;
    awsCustomArn: z.ZodOptional<z.ZodString>;
    awsModelContextWindow: z.ZodOptional<z.ZodNumber>;
    awsBedrockEndpointEnabled: z.ZodOptional<z.ZodBoolean>;
    awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
    awsBedrock1MContext: z.ZodOptional<z.ZodBoolean>;
    awsBedrockServiceTier: z.ZodOptional<z.ZodEnum<["STANDARD", "FLEX", "PRIORITY"]>>;
    openRouterApiKey: z.ZodOptional<z.ZodString>;
    openRouterModelId: z.ZodOptional<z.ZodString>;
    openRouterBaseUrl: z.ZodOptional<z.ZodString>;
    openRouterSpecificProvider: z.ZodOptional<z.ZodString>;
    apiKey: z.ZodOptional<z.ZodString>;
    anthropicBaseUrl: z.ZodOptional<z.ZodString>;
    anthropicUseAuthToken: z.ZodOptional<z.ZodBoolean>;
    anthropicBeta1MContext: z.ZodOptional<z.ZodBoolean>;
    costrictAccessToken: z.ZodOptional<z.ZodString>;
    costrictRefreshToken: z.ZodOptional<z.ZodString>;
    costrictState: z.ZodOptional<z.ZodString>;
    costrictBaseUrl: z.ZodOptional<z.ZodString>;
    costrictModelId: z.ZodOptional<z.ZodString>;
    costrictApiKeyUpdatedAt: z.ZodOptional<z.ZodString>;
    costrictApiKeyExpiredAt: z.ZodOptional<z.ZodString>;
    useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
    costrictAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>>;
    apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
} & {
    id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    id?: string | undefined;
    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
    codeIndexOpenAiKey?: string | undefined;
    codeIndexQdrantApiKey?: string | undefined;
    codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
    codebaseIndexGeminiApiKey?: string | undefined;
    codebaseIndexMistralApiKey?: string | undefined;
    codebaseIndexVercelAiGatewayApiKey?: string | undefined;
    codebaseIndexOpenRouterApiKey?: string | undefined;
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    costrictAccessToken?: string | undefined;
    costrictRefreshToken?: string | undefined;
    costrictState?: string | undefined;
    costrictBaseUrl?: string | undefined;
    costrictModelId?: string | undefined;
    costrictApiKeyUpdatedAt?: string | undefined;
    costrictApiKeyExpiredAt?: string | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    costrictAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    apiKey?: string | undefined;
    anthropicBaseUrl?: string | undefined;
    anthropicUseAuthToken?: boolean | undefined;
    anthropicBeta1MContext?: boolean | undefined;
    openRouterApiKey?: string | undefined;
    openRouterModelId?: string | undefined;
    openRouterBaseUrl?: string | undefined;
    openRouterSpecificProvider?: string | undefined;
    awsAccessKey?: string | undefined;
    awsSecretKey?: string | undefined;
    awsSessionToken?: string | undefined;
    awsRegion?: string | undefined;
    awsUseCrossRegionInference?: boolean | undefined;
    awsUseGlobalInference?: boolean | undefined;
    awsUsePromptCache?: boolean | undefined;
    awsProfile?: string | undefined;
    awsUseProfile?: boolean | undefined;
    awsApiKey?: string | undefined;
    awsUseApiKey?: boolean | undefined;
    awsCustomArn?: string | undefined;
    awsModelContextWindow?: number | undefined;
    awsBedrockEndpointEnabled?: boolean | undefined;
    awsBedrockEndpoint?: string | undefined;
    awsBedrock1MContext?: boolean | undefined;
    awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
    vertexKeyFile?: string | undefined;
    vertexJsonCredentials?: string | undefined;
    vertexProjectId?: string | undefined;
    vertexRegion?: string | undefined;
    vertex1MContext?: boolean | undefined;
    openAiBaseUrl?: string | undefined;
    openAiApiKey?: string | undefined;
    openAiR1FormatEnabled?: boolean | undefined;
    openAiModelId?: string | undefined;
    openAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    openAiUseAzure?: boolean | undefined;
    azureApiVersion?: string | undefined;
    openAiStreamingEnabled?: boolean | undefined;
    openAiHostHeader?: string | undefined;
    openAiHeaders?: Record<string, string> | undefined;
    ollamaModelId?: string | undefined;
    ollamaBaseUrl?: string | undefined;
    ollamaApiKey?: string | undefined;
    ollamaNumCtx?: number | undefined;
    vsCodeLmModelSelector?: {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    } | undefined;
    lmStudioModelId?: string | undefined;
    lmStudioBaseUrl?: string | undefined;
    lmStudioDraftModelId?: string | undefined;
    lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
    geminiApiKey?: string | undefined;
    googleGeminiBaseUrl?: string | undefined;
    geminiCliOAuthPath?: string | undefined;
    geminiCliProjectId?: string | undefined;
    openAiNativeApiKey?: string | undefined;
    openAiNativeBaseUrl?: string | undefined;
    openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
    mistralApiKey?: string | undefined;
    mistralCodestralUrl?: string | undefined;
    deepSeekBaseUrl?: string | undefined;
    deepSeekApiKey?: string | undefined;
    poeApiKey?: string | undefined;
    poeBaseUrl?: string | undefined;
    moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
    moonshotApiKey?: string | undefined;
    minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
    minimaxApiKey?: string | undefined;
    mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
    mimoApiKey?: string | undefined;
    requestyBaseUrl?: string | undefined;
    requestyApiKey?: string | undefined;
    requestyModelId?: string | undefined;
    unboundApiKey?: string | undefined;
    unboundModelId?: string | undefined;
    fakeAi?: unknown;
    xaiApiKey?: string | undefined;
    basetenApiKey?: string | undefined;
    litellmBaseUrl?: string | undefined;
    litellmApiKey?: string | undefined;
    litellmModelId?: string | undefined;
    litellmUsePromptCache?: boolean | undefined;
    sambaNovaApiKey?: string | undefined;
    zaiApiKey?: string | undefined;
    zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
    fireworksApiKey?: string | undefined;
    qwenCodeOauthPath?: string | undefined;
    rooApiKey?: string | undefined;
    vercelAiGatewayApiKey?: string | undefined;
    vercelAiGatewayModelId?: string | undefined;
}, {
    id?: string | undefined;
    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
    codeIndexOpenAiKey?: string | undefined;
    codeIndexQdrantApiKey?: string | undefined;
    codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
    codebaseIndexGeminiApiKey?: string | undefined;
    codebaseIndexMistralApiKey?: string | undefined;
    codebaseIndexVercelAiGatewayApiKey?: string | undefined;
    codebaseIndexOpenRouterApiKey?: string | undefined;
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    costrictAccessToken?: string | undefined;
    costrictRefreshToken?: string | undefined;
    costrictState?: string | undefined;
    costrictBaseUrl?: string | undefined;
    costrictModelId?: string | undefined;
    costrictApiKeyUpdatedAt?: string | undefined;
    costrictApiKeyExpiredAt?: string | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    costrictAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    apiKey?: string | undefined;
    anthropicBaseUrl?: string | undefined;
    anthropicUseAuthToken?: boolean | undefined;
    anthropicBeta1MContext?: boolean | undefined;
    openRouterApiKey?: string | undefined;
    openRouterModelId?: string | undefined;
    openRouterBaseUrl?: string | undefined;
    openRouterSpecificProvider?: string | undefined;
    awsAccessKey?: string | undefined;
    awsSecretKey?: string | undefined;
    awsSessionToken?: string | undefined;
    awsRegion?: string | undefined;
    awsUseCrossRegionInference?: boolean | undefined;
    awsUseGlobalInference?: boolean | undefined;
    awsUsePromptCache?: boolean | undefined;
    awsProfile?: string | undefined;
    awsUseProfile?: boolean | undefined;
    awsApiKey?: string | undefined;
    awsUseApiKey?: boolean | undefined;
    awsCustomArn?: string | undefined;
    awsModelContextWindow?: number | undefined;
    awsBedrockEndpointEnabled?: boolean | undefined;
    awsBedrockEndpoint?: string | undefined;
    awsBedrock1MContext?: boolean | undefined;
    awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
    vertexKeyFile?: string | undefined;
    vertexJsonCredentials?: string | undefined;
    vertexProjectId?: string | undefined;
    vertexRegion?: string | undefined;
    vertex1MContext?: boolean | undefined;
    openAiBaseUrl?: string | undefined;
    openAiApiKey?: string | undefined;
    openAiR1FormatEnabled?: boolean | undefined;
    openAiModelId?: string | undefined;
    openAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    openAiUseAzure?: boolean | undefined;
    azureApiVersion?: string | undefined;
    openAiStreamingEnabled?: boolean | undefined;
    openAiHostHeader?: string | undefined;
    openAiHeaders?: Record<string, string> | undefined;
    ollamaModelId?: string | undefined;
    ollamaBaseUrl?: string | undefined;
    ollamaApiKey?: string | undefined;
    ollamaNumCtx?: number | undefined;
    vsCodeLmModelSelector?: {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    } | undefined;
    lmStudioModelId?: string | undefined;
    lmStudioBaseUrl?: string | undefined;
    lmStudioDraftModelId?: string | undefined;
    lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
    geminiApiKey?: string | undefined;
    googleGeminiBaseUrl?: string | undefined;
    geminiCliOAuthPath?: string | undefined;
    geminiCliProjectId?: string | undefined;
    openAiNativeApiKey?: string | undefined;
    openAiNativeBaseUrl?: string | undefined;
    openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
    mistralApiKey?: string | undefined;
    mistralCodestralUrl?: string | undefined;
    deepSeekBaseUrl?: string | undefined;
    deepSeekApiKey?: string | undefined;
    poeApiKey?: string | undefined;
    poeBaseUrl?: string | undefined;
    moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
    moonshotApiKey?: string | undefined;
    minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
    minimaxApiKey?: string | undefined;
    mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
    mimoApiKey?: string | undefined;
    requestyBaseUrl?: string | undefined;
    requestyApiKey?: string | undefined;
    requestyModelId?: string | undefined;
    unboundApiKey?: string | undefined;
    unboundModelId?: string | undefined;
    fakeAi?: unknown;
    xaiApiKey?: string | undefined;
    basetenApiKey?: string | undefined;
    litellmBaseUrl?: string | undefined;
    litellmApiKey?: string | undefined;
    litellmModelId?: string | undefined;
    litellmUsePromptCache?: boolean | undefined;
    sambaNovaApiKey?: string | undefined;
    zaiApiKey?: string | undefined;
    zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
    fireworksApiKey?: string | undefined;
    qwenCodeOauthPath?: string | undefined;
    rooApiKey?: string | undefined;
    vercelAiGatewayApiKey?: string | undefined;
    vercelAiGatewayModelId?: string | undefined;
}>;
declare const discriminatedProviderSettingsWithIdSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<"apiProvider", [z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    costrictAccessToken: z.ZodOptional<z.ZodString>;
    costrictRefreshToken: z.ZodOptional<z.ZodString>;
    costrictState: z.ZodOptional<z.ZodString>;
    costrictBaseUrl: z.ZodOptional<z.ZodString>;
    costrictModelId: z.ZodOptional<z.ZodString>;
    costrictApiKeyUpdatedAt: z.ZodOptional<z.ZodString>;
    costrictApiKeyExpiredAt: z.ZodOptional<z.ZodString>;
    useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
    costrictAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>>;
} & {
    apiProvider: z.ZodLiteral<"costrict">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "costrict";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    costrictAccessToken?: string | undefined;
    costrictRefreshToken?: string | undefined;
    costrictState?: string | undefined;
    costrictBaseUrl?: string | undefined;
    costrictModelId?: string | undefined;
    costrictApiKeyUpdatedAt?: string | undefined;
    costrictApiKeyExpiredAt?: string | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    costrictAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
}, {
    apiProvider: "costrict";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    costrictAccessToken?: string | undefined;
    costrictRefreshToken?: string | undefined;
    costrictState?: string | undefined;
    costrictBaseUrl?: string | undefined;
    costrictModelId?: string | undefined;
    costrictApiKeyUpdatedAt?: string | undefined;
    costrictApiKeyExpiredAt?: string | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    costrictAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    apiKey: z.ZodOptional<z.ZodString>;
    anthropicBaseUrl: z.ZodOptional<z.ZodString>;
    anthropicUseAuthToken: z.ZodOptional<z.ZodBoolean>;
    anthropicBeta1MContext: z.ZodOptional<z.ZodBoolean>;
} & {
    apiProvider: z.ZodLiteral<"anthropic">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "anthropic";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    apiKey?: string | undefined;
    anthropicBaseUrl?: string | undefined;
    anthropicUseAuthToken?: boolean | undefined;
    anthropicBeta1MContext?: boolean | undefined;
}, {
    apiProvider: "anthropic";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    apiKey?: string | undefined;
    anthropicBaseUrl?: string | undefined;
    anthropicUseAuthToken?: boolean | undefined;
    anthropicBeta1MContext?: boolean | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"claude-code">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "claude-code";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
}, {
    apiProvider: "claude-code";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    openRouterApiKey: z.ZodOptional<z.ZodString>;
    openRouterModelId: z.ZodOptional<z.ZodString>;
    openRouterBaseUrl: z.ZodOptional<z.ZodString>;
    openRouterSpecificProvider: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"openrouter">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "openrouter";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    openRouterApiKey?: string | undefined;
    openRouterModelId?: string | undefined;
    openRouterBaseUrl?: string | undefined;
    openRouterSpecificProvider?: string | undefined;
}, {
    apiProvider: "openrouter";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    openRouterApiKey?: string | undefined;
    openRouterModelId?: string | undefined;
    openRouterBaseUrl?: string | undefined;
    openRouterSpecificProvider?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    awsAccessKey: z.ZodOptional<z.ZodString>;
    awsSecretKey: z.ZodOptional<z.ZodString>;
    awsSessionToken: z.ZodOptional<z.ZodString>;
    awsRegion: z.ZodOptional<z.ZodString>;
    awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
    awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
    awsUsePromptCache: z.ZodOptional<z.ZodBoolean>;
    awsProfile: z.ZodOptional<z.ZodString>;
    awsUseProfile: z.ZodOptional<z.ZodBoolean>;
    awsApiKey: z.ZodOptional<z.ZodString>;
    awsUseApiKey: z.ZodOptional<z.ZodBoolean>;
    awsCustomArn: z.ZodOptional<z.ZodString>;
    awsModelContextWindow: z.ZodOptional<z.ZodNumber>;
    awsBedrockEndpointEnabled: z.ZodOptional<z.ZodBoolean>;
    awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
    awsBedrock1MContext: z.ZodOptional<z.ZodBoolean>;
    awsBedrockServiceTier: z.ZodOptional<z.ZodEnum<["STANDARD", "FLEX", "PRIORITY"]>>;
} & {
    apiProvider: z.ZodLiteral<"bedrock">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "bedrock";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    awsAccessKey?: string | undefined;
    awsSecretKey?: string | undefined;
    awsSessionToken?: string | undefined;
    awsRegion?: string | undefined;
    awsUseCrossRegionInference?: boolean | undefined;
    awsUseGlobalInference?: boolean | undefined;
    awsUsePromptCache?: boolean | undefined;
    awsProfile?: string | undefined;
    awsUseProfile?: boolean | undefined;
    awsApiKey?: string | undefined;
    awsUseApiKey?: boolean | undefined;
    awsCustomArn?: string | undefined;
    awsModelContextWindow?: number | undefined;
    awsBedrockEndpointEnabled?: boolean | undefined;
    awsBedrockEndpoint?: string | undefined;
    awsBedrock1MContext?: boolean | undefined;
    awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
}, {
    apiProvider: "bedrock";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    awsAccessKey?: string | undefined;
    awsSecretKey?: string | undefined;
    awsSessionToken?: string | undefined;
    awsRegion?: string | undefined;
    awsUseCrossRegionInference?: boolean | undefined;
    awsUseGlobalInference?: boolean | undefined;
    awsUsePromptCache?: boolean | undefined;
    awsProfile?: string | undefined;
    awsUseProfile?: boolean | undefined;
    awsApiKey?: string | undefined;
    awsUseApiKey?: boolean | undefined;
    awsCustomArn?: string | undefined;
    awsModelContextWindow?: number | undefined;
    awsBedrockEndpointEnabled?: boolean | undefined;
    awsBedrockEndpoint?: string | undefined;
    awsBedrock1MContext?: boolean | undefined;
    awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    vertexKeyFile: z.ZodOptional<z.ZodString>;
    vertexJsonCredentials: z.ZodOptional<z.ZodString>;
    vertexProjectId: z.ZodOptional<z.ZodString>;
    vertexRegion: z.ZodOptional<z.ZodString>;
    vertex1MContext: z.ZodOptional<z.ZodBoolean>;
} & {
    apiProvider: z.ZodLiteral<"vertex">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "vertex";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    vertexKeyFile?: string | undefined;
    vertexJsonCredentials?: string | undefined;
    vertexProjectId?: string | undefined;
    vertexRegion?: string | undefined;
    vertex1MContext?: boolean | undefined;
}, {
    apiProvider: "vertex";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    vertexKeyFile?: string | undefined;
    vertexJsonCredentials?: string | undefined;
    vertexProjectId?: string | undefined;
    vertexRegion?: string | undefined;
    vertex1MContext?: boolean | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    openAiBaseUrl: z.ZodOptional<z.ZodString>;
    openAiApiKey: z.ZodOptional<z.ZodString>;
    openAiR1FormatEnabled: z.ZodOptional<z.ZodBoolean>;
    openAiModelId: z.ZodOptional<z.ZodString>;
    openAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>>;
    openAiUseAzure: z.ZodOptional<z.ZodBoolean>;
    azureApiVersion: z.ZodOptional<z.ZodString>;
    openAiStreamingEnabled: z.ZodOptional<z.ZodBoolean>;
    openAiHostHeader: z.ZodOptional<z.ZodString>;
    openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
} & {
    apiProvider: z.ZodLiteral<"openai">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "openai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    openAiBaseUrl?: string | undefined;
    openAiApiKey?: string | undefined;
    openAiR1FormatEnabled?: boolean | undefined;
    openAiModelId?: string | undefined;
    openAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    openAiUseAzure?: boolean | undefined;
    azureApiVersion?: string | undefined;
    openAiStreamingEnabled?: boolean | undefined;
    openAiHostHeader?: string | undefined;
    openAiHeaders?: Record<string, string> | undefined;
}, {
    apiProvider: "openai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    openAiBaseUrl?: string | undefined;
    openAiApiKey?: string | undefined;
    openAiR1FormatEnabled?: boolean | undefined;
    openAiModelId?: string | undefined;
    openAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    openAiUseAzure?: boolean | undefined;
    azureApiVersion?: string | undefined;
    openAiStreamingEnabled?: boolean | undefined;
    openAiHostHeader?: string | undefined;
    openAiHeaders?: Record<string, string> | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    ollamaModelId: z.ZodOptional<z.ZodString>;
    ollamaBaseUrl: z.ZodOptional<z.ZodString>;
    ollamaApiKey: z.ZodOptional<z.ZodString>;
    ollamaNumCtx: z.ZodOptional<z.ZodNumber>;
} & {
    apiProvider: z.ZodLiteral<"ollama">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "ollama";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    ollamaModelId?: string | undefined;
    ollamaBaseUrl?: string | undefined;
    ollamaApiKey?: string | undefined;
    ollamaNumCtx?: number | undefined;
}, {
    apiProvider: "ollama";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    ollamaModelId?: string | undefined;
    ollamaBaseUrl?: string | undefined;
    ollamaApiKey?: string | undefined;
    ollamaNumCtx?: number | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    vsCodeLmModelSelector: z.ZodOptional<z.ZodObject<{
        vendor: z.ZodOptional<z.ZodString>;
        family: z.ZodOptional<z.ZodString>;
        version: z.ZodOptional<z.ZodString>;
        id: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    }, {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    }>>;
} & {
    apiProvider: z.ZodLiteral<"vscode-lm">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "vscode-lm";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    vsCodeLmModelSelector?: {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    } | undefined;
}, {
    apiProvider: "vscode-lm";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    vsCodeLmModelSelector?: {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    } | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    lmStudioModelId: z.ZodOptional<z.ZodString>;
    lmStudioBaseUrl: z.ZodOptional<z.ZodString>;
    lmStudioDraftModelId: z.ZodOptional<z.ZodString>;
    lmStudioSpeculativeDecodingEnabled: z.ZodOptional<z.ZodBoolean>;
} & {
    apiProvider: z.ZodLiteral<"lmstudio">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "lmstudio";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    lmStudioModelId?: string | undefined;
    lmStudioBaseUrl?: string | undefined;
    lmStudioDraftModelId?: string | undefined;
    lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
}, {
    apiProvider: "lmstudio";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    lmStudioModelId?: string | undefined;
    lmStudioBaseUrl?: string | undefined;
    lmStudioDraftModelId?: string | undefined;
    lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    geminiApiKey: z.ZodOptional<z.ZodString>;
    googleGeminiBaseUrl: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"gemini">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "gemini";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    geminiApiKey?: string | undefined;
    googleGeminiBaseUrl?: string | undefined;
}, {
    apiProvider: "gemini";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    geminiApiKey?: string | undefined;
    googleGeminiBaseUrl?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    geminiCliOAuthPath: z.ZodOptional<z.ZodString>;
    geminiCliProjectId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"gemini-cli">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "gemini-cli";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    geminiCliOAuthPath?: string | undefined;
    geminiCliProjectId?: string | undefined;
}, {
    apiProvider: "gemini-cli";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    geminiCliOAuthPath?: string | undefined;
    geminiCliProjectId?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"openai-codex">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "openai-codex";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
}, {
    apiProvider: "openai-codex";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    openAiNativeApiKey: z.ZodOptional<z.ZodString>;
    openAiNativeBaseUrl: z.ZodOptional<z.ZodString>;
    openAiNativeServiceTier: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
} & {
    apiProvider: z.ZodLiteral<"openai-native">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "openai-native";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    openAiNativeApiKey?: string | undefined;
    openAiNativeBaseUrl?: string | undefined;
    openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
}, {
    apiProvider: "openai-native";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    openAiNativeApiKey?: string | undefined;
    openAiNativeBaseUrl?: string | undefined;
    openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    mistralApiKey: z.ZodOptional<z.ZodString>;
    mistralCodestralUrl: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"mistral">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "mistral";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    mistralApiKey?: string | undefined;
    mistralCodestralUrl?: string | undefined;
}, {
    apiProvider: "mistral";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    mistralApiKey?: string | undefined;
    mistralCodestralUrl?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    deepSeekBaseUrl: z.ZodOptional<z.ZodString>;
    deepSeekApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"deepseek">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "deepseek";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    deepSeekBaseUrl?: string | undefined;
    deepSeekApiKey?: string | undefined;
}, {
    apiProvider: "deepseek";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    deepSeekBaseUrl?: string | undefined;
    deepSeekApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    poeApiKey: z.ZodOptional<z.ZodString>;
    poeBaseUrl: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"poe">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "poe";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    poeApiKey?: string | undefined;
    poeBaseUrl?: string | undefined;
}, {
    apiProvider: "poe";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    poeApiKey?: string | undefined;
    poeBaseUrl?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    moonshotBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.moonshot.ai/v1">, z.ZodLiteral<"https://api.moonshot.cn/v1">]>>;
    moonshotApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"moonshot">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "moonshot";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
    moonshotApiKey?: string | undefined;
}, {
    apiProvider: "moonshot";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
    moonshotApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    minimaxBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.minimax.io/v1">, z.ZodLiteral<"https://api.minimaxi.com/v1">]>>;
    minimaxApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"minimax">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "minimax";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
    minimaxApiKey?: string | undefined;
}, {
    apiProvider: "minimax";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
    minimaxApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    mimoBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-cn.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-sgp.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-ams.xiaomimimo.com/v1">]>>;
    mimoApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"mimo">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "mimo";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
    mimoApiKey?: string | undefined;
}, {
    apiProvider: "mimo";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
    mimoApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    requestyBaseUrl: z.ZodOptional<z.ZodString>;
    requestyApiKey: z.ZodOptional<z.ZodString>;
    requestyModelId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"requesty">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "requesty";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    requestyBaseUrl?: string | undefined;
    requestyApiKey?: string | undefined;
    requestyModelId?: string | undefined;
}, {
    apiProvider: "requesty";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    requestyBaseUrl?: string | undefined;
    requestyApiKey?: string | undefined;
    requestyModelId?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiProvider: z.ZodLiteral<"human-relay">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "human-relay";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
}, {
    apiProvider: "human-relay";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    unboundApiKey: z.ZodOptional<z.ZodString>;
    unboundModelId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"unbound">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "unbound";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    unboundApiKey?: string | undefined;
    unboundModelId?: string | undefined;
}, {
    apiProvider: "unbound";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    unboundApiKey?: string | undefined;
    unboundModelId?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    fakeAi: z.ZodOptional<z.ZodUnknown>;
} & {
    apiProvider: z.ZodLiteral<"fake-ai">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "fake-ai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    fakeAi?: unknown;
}, {
    apiProvider: "fake-ai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    fakeAi?: unknown;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    xaiApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"xai">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "xai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    xaiApiKey?: string | undefined;
}, {
    apiProvider: "xai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    xaiApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    basetenApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"baseten">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "baseten";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    basetenApiKey?: string | undefined;
}, {
    apiProvider: "baseten";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    basetenApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    litellmBaseUrl: z.ZodOptional<z.ZodString>;
    litellmApiKey: z.ZodOptional<z.ZodString>;
    litellmModelId: z.ZodOptional<z.ZodString>;
    litellmUsePromptCache: z.ZodOptional<z.ZodBoolean>;
} & {
    apiProvider: z.ZodLiteral<"litellm">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "litellm";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    litellmBaseUrl?: string | undefined;
    litellmApiKey?: string | undefined;
    litellmModelId?: string | undefined;
    litellmUsePromptCache?: boolean | undefined;
}, {
    apiProvider: "litellm";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    litellmBaseUrl?: string | undefined;
    litellmApiKey?: string | undefined;
    litellmModelId?: string | undefined;
    litellmUsePromptCache?: boolean | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    sambaNovaApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"sambanova">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "sambanova";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    sambaNovaApiKey?: string | undefined;
}, {
    apiProvider: "sambanova";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    sambaNovaApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    zaiApiKey: z.ZodOptional<z.ZodString>;
    zaiApiLine: z.ZodOptional<z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>>;
} & {
    apiProvider: z.ZodLiteral<"zai">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "zai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    zaiApiKey?: string | undefined;
    zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
}, {
    apiProvider: "zai";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    zaiApiKey?: string | undefined;
    zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    fireworksApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"fireworks">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "fireworks";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    fireworksApiKey?: string | undefined;
}, {
    apiProvider: "fireworks";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    fireworksApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    qwenCodeOauthPath: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"qwen-code">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "qwen-code";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    qwenCodeOauthPath?: string | undefined;
}, {
    apiProvider: "qwen-code";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    qwenCodeOauthPath?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    apiModelId: z.ZodOptional<z.ZodString>;
} & {
    rooApiKey: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"roo">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "roo";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    rooApiKey?: string | undefined;
}, {
    apiProvider: "roo";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    rooApiKey?: string | undefined;
}>, z.ZodObject<{
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
} & {
    vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
    vercelAiGatewayModelId: z.ZodOptional<z.ZodString>;
} & {
    apiProvider: z.ZodLiteral<"vercel-ai-gateway">;
}, "strip", z.ZodTypeAny, {
    apiProvider: "vercel-ai-gateway";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    vercelAiGatewayApiKey?: string | undefined;
    vercelAiGatewayModelId?: string | undefined;
}, {
    apiProvider: "vercel-ai-gateway";
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    vercelAiGatewayApiKey?: string | undefined;
    vercelAiGatewayModelId?: string | undefined;
}>, z.ZodObject<{
    apiProvider: z.ZodUndefined;
}, "strip", z.ZodTypeAny, {
    apiProvider?: undefined;
}, {
    apiProvider?: undefined;
}>]>, z.ZodObject<{
    id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    id?: string | undefined;
}, {
    id?: string | undefined;
}>>;
type ProviderSettingsWithId = z.infer<typeof providerSettingsWithIdSchema>;
declare const PROVIDER_SETTINGS_KEYS: ["codebaseIndexOpenAiCompatibleBaseUrl", "codebaseIndexOpenAiCompatibleModelDimension", "codeIndexOpenAiKey", "codeIndexQdrantApiKey", "codebaseIndexOpenAiCompatibleApiKey", "codebaseIndexGeminiApiKey", "codebaseIndexMistralApiKey", "codebaseIndexVercelAiGatewayApiKey", "codebaseIndexOpenRouterApiKey", "reasoningEffort", "apiProvider", "includeMaxTokens", "todoListEnabled", "modelTemperature", "rateLimitSeconds", "consecutiveMistakeLimit", "enableReasoningEffort", "modelMaxTokens", "modelMaxThinkingTokens", "verbosity", "apiModelId", "costrictAccessToken", "costrictRefreshToken", "costrictState", "costrictBaseUrl", "costrictModelId", "costrictApiKeyUpdatedAt", "costrictApiKeyExpiredAt", "useCostrictCustomConfig", "costrictAiCustomModelInfo", "apiKey", "anthropicBaseUrl", "anthropicUseAuthToken", "anthropicBeta1MContext", "openRouterApiKey", "openRouterModelId", "openRouterBaseUrl", "openRouterSpecificProvider", "awsAccessKey", "awsSecretKey", "awsSessionToken", "awsRegion", "awsUseCrossRegionInference", "awsUseGlobalInference", "awsUsePromptCache", "awsProfile", "awsUseProfile", "awsApiKey", "awsUseApiKey", "awsCustomArn", "awsModelContextWindow", "awsBedrockEndpointEnabled", "awsBedrockEndpoint", "awsBedrock1MContext", "awsBedrockServiceTier", "vertexKeyFile", "vertexJsonCredentials", "vertexProjectId", "vertexRegion", "vertex1MContext", "openAiBaseUrl", "openAiApiKey", "openAiR1FormatEnabled", "openAiModelId", "openAiCustomModelInfo", "openAiUseAzure", "azureApiVersion", "openAiStreamingEnabled", "openAiHostHeader", "openAiHeaders", "ollamaModelId", "ollamaBaseUrl", "ollamaApiKey", "ollamaNumCtx", "vsCodeLmModelSelector", "lmStudioModelId", "lmStudioBaseUrl", "lmStudioDraftModelId", "lmStudioSpeculativeDecodingEnabled", "geminiApiKey", "googleGeminiBaseUrl", "geminiCliOAuthPath", "geminiCliProjectId", "openAiNativeApiKey", "openAiNativeBaseUrl", "openAiNativeServiceTier", "mistralApiKey", "mistralCodestralUrl", "deepSeekBaseUrl", "deepSeekApiKey", "poeApiKey", "poeBaseUrl", "moonshotBaseUrl", "moonshotApiKey", "minimaxBaseUrl", "minimaxApiKey", "mimoBaseUrl", "mimoApiKey", "requestyBaseUrl", "requestyApiKey", "requestyModelId", "unboundApiKey", "unboundModelId", "fakeAi", "xaiApiKey", "basetenApiKey", "litellmBaseUrl", "litellmApiKey", "litellmModelId", "litellmUsePromptCache", "sambaNovaApiKey", "zaiApiKey", "zaiApiLine", "fireworksApiKey", "qwenCodeOauthPath", "rooApiKey", "vercelAiGatewayApiKey", "vercelAiGatewayModelId"];
/**
 * ModelIdKey
 */
declare const modelIdKeys: readonly ["costrictModelId", "apiModelId", "openRouterModelId", "openAiModelId", "ollamaModelId", "lmStudioModelId", "lmStudioDraftModelId", "requestyModelId", "unboundModelId", "litellmModelId", "vercelAiGatewayModelId"];
type ModelIdKey = (typeof modelIdKeys)[number];
declare const getModelId: (settings: ProviderSettings) => string | undefined;
/**
 * TypicalProvider
 */
type TypicalProvider = Exclude<ProviderName, InternalProvider | CustomProvider | FauxProvider>;
declare const isTypicalProvider: (key: unknown) => key is TypicalProvider;
declare const modelIdKeysByProvider: Record<TypicalProvider, ModelIdKey>;
/**
 * ANTHROPIC_STYLE_PROVIDERS
 */
declare const ANTHROPIC_STYLE_PROVIDERS: ProviderName[];
declare const getApiProtocol: (provider: ProviderName | undefined, modelId?: string) => "anthropic" | "openai";
interface CostrictUserInfo {
    name?: string;
    email?: string;
    picture?: string;
    organizationId?: string;
    organizationName?: string;
    organizationRole?: string;
    organizationImageUrl?: string;
    id?: string;
    phone?: string | number;
}
/**
 * MODELS_BY_PROVIDER
 */
declare const MODELS_BY_PROVIDER: Record<Exclude<ProviderName, "fake-ai" | "human-relay" | "gemini-cli" | "openai">, {
    id: ProviderName;
    label: string;
    models: string[];
}>;

/**
 * Default delay in milliseconds after writes to allow diagnostics to detect potential problems.
 * This delay is particularly important for Go and other languages where tools like goimports
 * need time to automatically clean up unused imports.
 */
declare const DEFAULT_WRITE_DELAY_MS = 1000;
declare const MAX_WORKSPACE_FILES = 150;
/**
 * Terminal output preview size options for persisted command output.
 *
 * Controls how much command output is kept in memory as a "preview" before
 * the LLM decides to retrieve more via `read_command_output`. Larger previews
 * mean more immediate context but consume more of the context window.
 *
 * - `small`: 5KB preview - Best for long-running commands with verbose output
 * - `medium`: 10KB preview - Balanced default for most use cases
 * - `large`: 20KB preview - Best when commands produce critical info early
 *
 * @see OutputInterceptor - Uses this setting to determine when to spill to disk
 * @see PersistedCommandOutput - Contains the resulting preview and artifact reference
 */
declare const DEFAULT_FILE_READ_CHARACTER_LIMIT = 40000;
type TerminalOutputPreviewSize = "small" | "medium" | "large";
/**
 * Byte limits for each terminal output preview size.
 *
 * Maps preview size names to their corresponding byte thresholds.
 * When command output exceeds these thresholds, the excess is persisted
 * to disk and made available via the `read_command_output` tool.
 */
declare const TERMINAL_PREVIEW_BYTES: Record<TerminalOutputPreviewSize, number>;
/**
 * Default terminal output preview size.
 * The "medium" (10KB) setting provides a good balance between immediate
 * visibility and context window conservation for most use cases.
 */
declare const DEFAULT_TERMINAL_OUTPUT_PREVIEW_SIZE: TerminalOutputPreviewSize;
/**
 * Minimum checkpoint timeout in seconds.
 */
declare const MIN_CHECKPOINT_TIMEOUT_SECONDS = 10;
/**
 * Maximum checkpoint timeout in seconds.
 */
declare const MAX_CHECKPOINT_TIMEOUT_SECONDS = 60;
/**
 * Default checkpoint timeout in seconds.
 */
declare const DEFAULT_CHECKPOINT_TIMEOUT_SECONDS = 15;
/**
 * GlobalSettings
 */
declare const globalSettingsSchema: z.ZodObject<{
    currentApiConfigName: z.ZodOptional<z.ZodString>;
    listApiConfigMeta: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        name: z.ZodString;
        apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
        modelId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        id: string;
        name: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        modelId?: string | undefined;
    }, {
        id: string;
        name: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        modelId?: string | undefined;
    }>, "many">>;
    pinnedApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
    debug: z.ZodOptional<z.ZodBoolean>;
    autoCleanup: z.ZodOptional<z.ZodObject<{
        enabled: z.ZodOptional<z.ZodBoolean>;
        strategy: z.ZodOptional<z.ZodNativeEnum<typeof CleanupStrategy>>;
        retentionDays: z.ZodOptional<z.ZodNumber>;
        maxHistoryCount: z.ZodOptional<z.ZodNumber>;
        excludeActive: z.ZodOptional<z.ZodBoolean>;
        cleanupOnStartup: z.ZodOptional<z.ZodBoolean>;
    }, "strip", z.ZodTypeAny, {
        enabled?: boolean | undefined;
        strategy?: CleanupStrategy | undefined;
        retentionDays?: number | undefined;
        maxHistoryCount?: number | undefined;
        excludeActive?: boolean | undefined;
        cleanupOnStartup?: boolean | undefined;
    }, {
        enabled?: boolean | undefined;
        strategy?: CleanupStrategy | undefined;
        retentionDays?: number | undefined;
        maxHistoryCount?: number | undefined;
        excludeActive?: boolean | undefined;
        cleanupOnStartup?: boolean | undefined;
    }>>;
    lastShownAnnouncementId: z.ZodOptional<z.ZodString>;
    customInstructions: z.ZodOptional<z.ZodString>;
    taskHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        rootTaskId: z.ZodOptional<z.ZodString>;
        parentTaskId: z.ZodOptional<z.ZodString>;
        number: z.ZodNumber;
        ts: z.ZodNumber;
        task: z.ZodString;
        tokensIn: z.ZodNumber;
        tokensOut: z.ZodNumber;
        cacheWrites: z.ZodOptional<z.ZodNumber>;
        cacheReads: z.ZodOptional<z.ZodNumber>;
        totalCost: z.ZodNumber;
        size: z.ZodOptional<z.ZodNumber>;
        workspace: z.ZodOptional<z.ZodString>;
        mode: z.ZodOptional<z.ZodString>;
        apiConfigName: z.ZodOptional<z.ZodString>;
        status: z.ZodOptional<z.ZodEnum<["active", "completed", "delegated"]>>;
        delegatedToId: z.ZodOptional<z.ZodString>;
        childIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        awaitingChildId: z.ZodOptional<z.ZodString>;
        completedByChildId: z.ZodOptional<z.ZodString>;
        completionResultSummary: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        number: number;
        ts: number;
        totalCost: number;
        id: string;
        task: string;
        tokensIn: number;
        tokensOut: number;
        status?: "active" | "completed" | "delegated" | undefined;
        rootTaskId?: string | undefined;
        parentTaskId?: string | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        size?: number | undefined;
        workspace?: string | undefined;
        mode?: string | undefined;
        apiConfigName?: string | undefined;
        delegatedToId?: string | undefined;
        childIds?: string[] | undefined;
        awaitingChildId?: string | undefined;
        completedByChildId?: string | undefined;
        completionResultSummary?: string | undefined;
    }, {
        number: number;
        ts: number;
        totalCost: number;
        id: string;
        task: string;
        tokensIn: number;
        tokensOut: number;
        status?: "active" | "completed" | "delegated" | undefined;
        rootTaskId?: string | undefined;
        parentTaskId?: string | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        size?: number | undefined;
        workspace?: string | undefined;
        mode?: string | undefined;
        apiConfigName?: string | undefined;
        delegatedToId?: string | undefined;
        childIds?: string[] | undefined;
        awaitingChildId?: string | undefined;
        completedByChildId?: string | undefined;
        completionResultSummary?: string | undefined;
    }>, "many">>;
    dismissedUpsells: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    clickedOnceNotices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
    imageGenerationProvider: z.ZodOptional<z.ZodEnum<["openrouter", "roo"]>>;
    openRouterImageApiKey: z.ZodOptional<z.ZodString>;
    openRouterImageGenerationSelectedModel: z.ZodOptional<z.ZodString>;
    customCondensingPrompt: z.ZodOptional<z.ZodString>;
    useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
    costrictCodeMode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"vibe">, z.ZodLiteral<"strict">, z.ZodLiteral<"raw">, z.ZodLiteral<"plan">]>>;
    autoApprovalEnabled: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowReadOnly: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowReadOnlyOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowWrite: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowWriteOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowWriteProtected: z.ZodOptional<z.ZodBoolean>;
    writeDelayMs: z.ZodOptional<z.ZodNumber>;
    requestDelaySeconds: z.ZodOptional<z.ZodNumber>;
    alwaysAllowMcp: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowModeSwitch: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowSubtasks: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowExecute: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowFollowupQuestions: z.ZodOptional<z.ZodBoolean>;
    followupAutoApproveTimeoutMs: z.ZodOptional<z.ZodNumber>;
    allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
    commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
    allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    allowedMaxCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
    autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
    /**
     * Whether to include current time in the environment details
     * @default true
     */
    includeCurrentTime: z.ZodOptional<z.ZodBoolean>;
    /**
     * Whether to include current cost in the environment details
     * @default true
     */
    includeCurrentCost: z.ZodOptional<z.ZodBoolean>;
    /**
     * Maximum number of git status file entries to include in the environment details.
     * Set to 0 to disable git status. The header (branch, commits) is always included when > 0.
     * @default 0
     */
    maxGitStatusFiles: z.ZodOptional<z.ZodNumber>;
    /**
     * Whether to include diagnostic messages (errors, warnings) in tool outputs
     * @default true
     */
    includeDiagnosticMessages: z.ZodOptional<z.ZodBoolean>;
    /**
     * Maximum number of diagnostic messages to include in tool outputs
     * @default 50
     */
    maxDiagnosticMessages: z.ZodOptional<z.ZodNumber>;
    customStoragePath: z.ZodOptional<z.ZodString>;
    enableCheckpoints: z.ZodOptional<z.ZodBoolean>;
    checkpointTimeout: z.ZodOptional<z.ZodNumber>;
    ttsEnabled: z.ZodOptional<z.ZodBoolean>;
    ttsSpeed: z.ZodOptional<z.ZodNumber>;
    soundEnabled: z.ZodOptional<z.ZodBoolean>;
    soundVolume: z.ZodOptional<z.ZodNumber>;
    maxOpenTabsContext: z.ZodOptional<z.ZodNumber>;
    maxWorkspaceFiles: z.ZodOptional<z.ZodNumber>;
    showRooIgnoredFiles: z.ZodOptional<z.ZodBoolean>;
    enableSubfolderRules: z.ZodOptional<z.ZodBoolean>;
    maxImageFileSize: z.ZodOptional<z.ZodNumber>;
    maxTotalImageSize: z.ZodOptional<z.ZodNumber>;
    terminalOutputPreviewSize: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
    terminalShellIntegrationTimeout: z.ZodOptional<z.ZodNumber>;
    terminalShellIntegrationDisabled: z.ZodOptional<z.ZodBoolean>;
    terminalCommandDelay: z.ZodOptional<z.ZodNumber>;
    terminalPowershellCounter: z.ZodOptional<z.ZodBoolean>;
    terminalZshClearEolMark: z.ZodOptional<z.ZodBoolean>;
    terminalZshOhMy: z.ZodOptional<z.ZodBoolean>;
    terminalZshP10k: z.ZodOptional<z.ZodBoolean>;
    terminalZdotdir: z.ZodOptional<z.ZodBoolean>;
    execaShellPath: z.ZodOptional<z.ZodString>;
    diagnosticsEnabled: z.ZodOptional<z.ZodBoolean>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    experiments: z.ZodOptional<z.ZodObject<{
        chatSearch: z.ZodOptional<z.ZodBoolean>;
        useKPTtree: z.ZodOptional<z.ZodBoolean>;
        commitReview: z.ZodOptional<z.ZodBoolean>;
        useLitePrompts: z.ZodOptional<z.ZodBoolean>;
        preventFocusDisruption: z.ZodOptional<z.ZodBoolean>;
        imageGeneration: z.ZodOptional<z.ZodBoolean>;
        runSlashCommand: z.ZodOptional<z.ZodBoolean>;
        customTools: z.ZodOptional<z.ZodBoolean>;
        smartMistakeDetection: z.ZodOptional<z.ZodBoolean>;
    }, "strip", z.ZodTypeAny, {
        preventFocusDisruption?: boolean | undefined;
        imageGeneration?: boolean | undefined;
        runSlashCommand?: boolean | undefined;
        customTools?: boolean | undefined;
        chatSearch?: boolean | undefined;
        commitReview?: boolean | undefined;
        useKPTtree?: boolean | undefined;
        useLitePrompts?: boolean | undefined;
        smartMistakeDetection?: boolean | undefined;
    }, {
        preventFocusDisruption?: boolean | undefined;
        imageGeneration?: boolean | undefined;
        runSlashCommand?: boolean | undefined;
        customTools?: boolean | undefined;
        chatSearch?: boolean | undefined;
        commitReview?: boolean | undefined;
        useKPTtree?: boolean | undefined;
        useLitePrompts?: boolean | undefined;
        smartMistakeDetection?: boolean | undefined;
    }>>;
    experimentSettings: z.ZodOptional<z.ZodObject<{
        smartMistakeDetectionConfig: z.ZodOptional<z.ZodObject<{
            autoSwitchModel: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            autoSwitchModel?: boolean | undefined;
        }, {
            autoSwitchModel?: boolean | undefined;
        }>>;
    }, "strip", z.ZodTypeAny, {
        smartMistakeDetectionConfig?: {
            autoSwitchModel?: boolean | undefined;
        } | undefined;
    }, {
        smartMistakeDetectionConfig?: {
            autoSwitchModel?: boolean | undefined;
        } | undefined;
    }>>;
    codebaseIndexModels: z.ZodOptional<z.ZodObject<{
        openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        ollama: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        "openai-compatible": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        gemini: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        mistral: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        "vercel-ai-gateway": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        openrouter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        bedrock: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
    }, "strip", z.ZodTypeAny, {
        openai?: Record<string, {
            dimension: number;
        }> | undefined;
        ollama?: Record<string, {
            dimension: number;
        }> | undefined;
        "openai-compatible"?: Record<string, {
            dimension: number;
        }> | undefined;
        gemini?: Record<string, {
            dimension: number;
        }> | undefined;
        mistral?: Record<string, {
            dimension: number;
        }> | undefined;
        "vercel-ai-gateway"?: Record<string, {
            dimension: number;
        }> | undefined;
        bedrock?: Record<string, {
            dimension: number;
        }> | undefined;
        openrouter?: Record<string, {
            dimension: number;
        }> | undefined;
    }, {
        openai?: Record<string, {
            dimension: number;
        }> | undefined;
        ollama?: Record<string, {
            dimension: number;
        }> | undefined;
        "openai-compatible"?: Record<string, {
            dimension: number;
        }> | undefined;
        gemini?: Record<string, {
            dimension: number;
        }> | undefined;
        mistral?: Record<string, {
            dimension: number;
        }> | undefined;
        "vercel-ai-gateway"?: Record<string, {
            dimension: number;
        }> | undefined;
        bedrock?: Record<string, {
            dimension: number;
        }> | undefined;
        openrouter?: Record<string, {
            dimension: number;
        }> | undefined;
    }>>;
    codebaseIndexConfig: z.ZodOptional<z.ZodObject<{
        codebaseIndexEnabled: z.ZodOptional<z.ZodBoolean>;
        codebaseIndexQdrantUrl: z.ZodOptional<z.ZodString>;
        codebaseIndexEmbedderProvider: z.ZodOptional<z.ZodEnum<["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway", "bedrock", "openrouter"]>>;
        codebaseIndexEmbedderBaseUrl: z.ZodOptional<z.ZodString>;
        codebaseIndexEmbedderModelId: z.ZodOptional<z.ZodString>;
        codebaseIndexEmbedderModelDimension: z.ZodOptional<z.ZodNumber>;
        codebaseIndexSearchMinScore: z.ZodOptional<z.ZodNumber>;
        codebaseIndexSearchMaxResults: z.ZodOptional<z.ZodNumber>;
        codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
        codebaseIndexBedrockRegion: z.ZodOptional<z.ZodString>;
        codebaseIndexBedrockProfile: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenRouterSpecificProvider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        codebaseIndexEnabled?: boolean | undefined;
        codebaseIndexQdrantUrl?: string | undefined;
        codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
        codebaseIndexEmbedderBaseUrl?: string | undefined;
        codebaseIndexEmbedderModelId?: string | undefined;
        codebaseIndexEmbedderModelDimension?: number | undefined;
        codebaseIndexSearchMinScore?: number | undefined;
        codebaseIndexSearchMaxResults?: number | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codebaseIndexBedrockRegion?: string | undefined;
        codebaseIndexBedrockProfile?: string | undefined;
        codebaseIndexOpenRouterSpecificProvider?: string | undefined;
    }, {
        codebaseIndexEnabled?: boolean | undefined;
        codebaseIndexQdrantUrl?: string | undefined;
        codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
        codebaseIndexEmbedderBaseUrl?: string | undefined;
        codebaseIndexEmbedderModelId?: string | undefined;
        codebaseIndexEmbedderModelDimension?: number | undefined;
        codebaseIndexSearchMinScore?: number | undefined;
        codebaseIndexSearchMaxResults?: number | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codebaseIndexBedrockRegion?: string | undefined;
        codebaseIndexBedrockProfile?: string | undefined;
        codebaseIndexOpenRouterSpecificProvider?: string | undefined;
    }>>;
    language: z.ZodOptional<z.ZodEnum<["ca", "de", "en", "es", "fr", "hi", "id", "it", "ja", "ko", "nl", "pl", "pt-BR", "ru", "tr", "vi", "zh-CN", "zh-TW"]>>;
    telemetrySetting: z.ZodOptional<z.ZodEnum<["unset", "enabled", "disabled"]>>;
    mcpEnabled: z.ZodOptional<z.ZodBoolean>;
    mode: z.ZodOptional<z.ZodString>;
    prevMode: z.ZodOptional<z.ZodString>;
    modeApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    customModes: z.ZodOptional<z.ZodArray<z.ZodObject<{
        slug: z.ZodString;
        name: z.ZodString;
        roleDefinition: z.ZodString;
        whenToUse: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        customInstructions: z.ZodOptional<z.ZodString>;
        groups: z.ZodType<("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[], z.ZodTypeDef, ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[]>;
        overrideSystemPrompt: z.ZodOptional<z.ZodBoolean>;
        source: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
        costrictCodeModeGroup: z.ZodOptional<z.ZodDefault<z.ZodString>>;
        apiProvider: z.ZodOptional<z.ZodString>;
        subagents: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
        pure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
        disableSwitchMode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
        taskMode: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }, {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }>, "many">>;
    customModePrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
        roleDefinition: z.ZodOptional<z.ZodString>;
        whenToUse: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        customInstructions: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        description?: string | undefined;
        roleDefinition?: string | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
    }, {
        description?: string | undefined;
        roleDefinition?: string | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
    }>>>>;
    customSupportPrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
    enhancementApiConfigId: z.ZodOptional<z.ZodString>;
    includeTaskHistoryInEnhance: z.ZodOptional<z.ZodBoolean>;
    historyPreviewCollapsed: z.ZodOptional<z.ZodBoolean>;
    reasoningBlockCollapsed: z.ZodOptional<z.ZodBoolean>;
    showSpeedInfo: z.ZodOptional<z.ZodBoolean>;
    automaticallyFocus: z.ZodOptional<z.ZodBoolean>;
    collapseMarkdownWithoutScroll: z.ZodOptional<z.ZodBoolean>;
    /**
     * Controls the keyboard behavior for sending messages in the chat input.
     * - "send": Enter sends message, Shift+Enter creates newline (default)
     * - "newline": Enter creates newline, Shift+Enter/Ctrl+Enter sends message
     * @default "send"
     */
    enterBehavior: z.ZodOptional<z.ZodEnum<["send", "newline"]>>;
    profileThresholds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
    hasOpenedModeSelector: z.ZodOptional<z.ZodBoolean>;
    hasClosedCodeReviewWelcomeTips: z.ZodOptional<z.ZodBoolean>;
    lastModeExportPath: z.ZodOptional<z.ZodString>;
    lastModeImportPath: z.ZodOptional<z.ZodString>;
    lastSettingsExportPath: z.ZodOptional<z.ZodString>;
    lastTaskExportPath: z.ZodOptional<z.ZodString>;
    lastImageSavePath: z.ZodOptional<z.ZodString>;
    errorCode: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
    /**
     * Path to worktree to auto-open after switching workspaces.
     * Used by the worktree feature to open the Roo Code sidebar in a new window.
     */
    worktreeAutoOpenPath: z.ZodOptional<z.ZodString>;
    /**
     * Whether to show the worktree selector in the home screen.
     * @default true
     */
    showWorktreesInHomeScreen: z.ZodOptional<z.ZodBoolean>;
    /**
     * List of native tool names to globally disable.
     * Tools in this list will be excluded from prompt generation and rejected at execution time.
     */
    disabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, "many">>;
}, "strip", z.ZodTypeAny, {
    language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
    rateLimitSeconds?: number | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    mode?: string | undefined;
    errorCode?: Record<string, Record<string, string>> | undefined;
    customInstructions?: string | undefined;
    customModes?: {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }[] | undefined;
    debug?: boolean | undefined;
    currentApiConfigName?: string | undefined;
    listApiConfigMeta?: {
        id: string;
        name: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        modelId?: string | undefined;
    }[] | undefined;
    pinnedApiConfigs?: Record<string, boolean> | undefined;
    autoCleanup?: {
        enabled?: boolean | undefined;
        strategy?: CleanupStrategy | undefined;
        retentionDays?: number | undefined;
        maxHistoryCount?: number | undefined;
        excludeActive?: boolean | undefined;
        cleanupOnStartup?: boolean | undefined;
    } | undefined;
    lastShownAnnouncementId?: string | undefined;
    taskHistory?: {
        number: number;
        ts: number;
        totalCost: number;
        id: string;
        task: string;
        tokensIn: number;
        tokensOut: number;
        status?: "active" | "completed" | "delegated" | undefined;
        rootTaskId?: string | undefined;
        parentTaskId?: string | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        size?: number | undefined;
        workspace?: string | undefined;
        mode?: string | undefined;
        apiConfigName?: string | undefined;
        delegatedToId?: string | undefined;
        childIds?: string[] | undefined;
        awaitingChildId?: string | undefined;
        completedByChildId?: string | undefined;
        completionResultSummary?: string | undefined;
    }[] | undefined;
    dismissedUpsells?: string[] | undefined;
    clickedOnceNotices?: number[] | undefined;
    imageGenerationProvider?: "openrouter" | "roo" | undefined;
    openRouterImageApiKey?: string | undefined;
    openRouterImageGenerationSelectedModel?: string | undefined;
    customCondensingPrompt?: string | undefined;
    costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
    autoApprovalEnabled?: boolean | undefined;
    alwaysAllowReadOnly?: boolean | undefined;
    alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
    alwaysAllowWrite?: boolean | undefined;
    alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
    alwaysAllowWriteProtected?: boolean | undefined;
    writeDelayMs?: number | undefined;
    requestDelaySeconds?: number | undefined;
    alwaysAllowMcp?: boolean | undefined;
    alwaysAllowModeSwitch?: boolean | undefined;
    alwaysAllowSubtasks?: boolean | undefined;
    alwaysAllowExecute?: boolean | undefined;
    alwaysAllowFollowupQuestions?: boolean | undefined;
    followupAutoApproveTimeoutMs?: number | undefined;
    allowedCommands?: string[] | undefined;
    deniedCommands?: string[] | undefined;
    commandExecutionTimeout?: number | undefined;
    commandTimeoutAllowlist?: string[] | undefined;
    preventCompletionWithOpenTodos?: boolean | undefined;
    allowedMaxRequests?: number | null | undefined;
    allowedMaxCost?: number | null | undefined;
    autoCondenseContext?: boolean | undefined;
    autoCondenseContextPercent?: number | undefined;
    includeCurrentTime?: boolean | undefined;
    includeCurrentCost?: boolean | undefined;
    maxGitStatusFiles?: number | undefined;
    includeDiagnosticMessages?: boolean | undefined;
    maxDiagnosticMessages?: number | undefined;
    customStoragePath?: string | undefined;
    enableCheckpoints?: boolean | undefined;
    checkpointTimeout?: number | undefined;
    ttsEnabled?: boolean | undefined;
    ttsSpeed?: number | undefined;
    soundEnabled?: boolean | undefined;
    soundVolume?: number | undefined;
    maxOpenTabsContext?: number | undefined;
    maxWorkspaceFiles?: number | undefined;
    showRooIgnoredFiles?: boolean | undefined;
    enableSubfolderRules?: boolean | undefined;
    maxImageFileSize?: number | undefined;
    maxTotalImageSize?: number | undefined;
    terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
    terminalShellIntegrationTimeout?: number | undefined;
    terminalShellIntegrationDisabled?: boolean | undefined;
    terminalCommandDelay?: number | undefined;
    terminalPowershellCounter?: boolean | undefined;
    terminalZshClearEolMark?: boolean | undefined;
    terminalZshOhMy?: boolean | undefined;
    terminalZshP10k?: boolean | undefined;
    terminalZdotdir?: boolean | undefined;
    execaShellPath?: string | undefined;
    diagnosticsEnabled?: boolean | undefined;
    experiments?: {
        preventFocusDisruption?: boolean | undefined;
        imageGeneration?: boolean | undefined;
        runSlashCommand?: boolean | undefined;
        customTools?: boolean | undefined;
        chatSearch?: boolean | undefined;
        commitReview?: boolean | undefined;
        useKPTtree?: boolean | undefined;
        useLitePrompts?: boolean | undefined;
        smartMistakeDetection?: boolean | undefined;
    } | undefined;
    experimentSettings?: {
        smartMistakeDetectionConfig?: {
            autoSwitchModel?: boolean | undefined;
        } | undefined;
    } | undefined;
    codebaseIndexModels?: {
        openai?: Record<string, {
            dimension: number;
        }> | undefined;
        ollama?: Record<string, {
            dimension: number;
        }> | undefined;
        "openai-compatible"?: Record<string, {
            dimension: number;
        }> | undefined;
        gemini?: Record<string, {
            dimension: number;
        }> | undefined;
        mistral?: Record<string, {
            dimension: number;
        }> | undefined;
        "vercel-ai-gateway"?: Record<string, {
            dimension: number;
        }> | undefined;
        bedrock?: Record<string, {
            dimension: number;
        }> | undefined;
        openrouter?: Record<string, {
            dimension: number;
        }> | undefined;
    } | undefined;
    codebaseIndexConfig?: {
        codebaseIndexEnabled?: boolean | undefined;
        codebaseIndexQdrantUrl?: string | undefined;
        codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
        codebaseIndexEmbedderBaseUrl?: string | undefined;
        codebaseIndexEmbedderModelId?: string | undefined;
        codebaseIndexEmbedderModelDimension?: number | undefined;
        codebaseIndexSearchMinScore?: number | undefined;
        codebaseIndexSearchMaxResults?: number | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codebaseIndexBedrockRegion?: string | undefined;
        codebaseIndexBedrockProfile?: string | undefined;
        codebaseIndexOpenRouterSpecificProvider?: string | undefined;
    } | undefined;
    telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
    mcpEnabled?: boolean | undefined;
    prevMode?: string | undefined;
    modeApiConfigs?: Record<string, string> | undefined;
    customModePrompts?: Record<string, {
        description?: string | undefined;
        roleDefinition?: string | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
    } | undefined> | undefined;
    customSupportPrompts?: Record<string, string | undefined> | undefined;
    enhancementApiConfigId?: string | undefined;
    includeTaskHistoryInEnhance?: boolean | undefined;
    historyPreviewCollapsed?: boolean | undefined;
    reasoningBlockCollapsed?: boolean | undefined;
    showSpeedInfo?: boolean | undefined;
    automaticallyFocus?: boolean | undefined;
    collapseMarkdownWithoutScroll?: boolean | undefined;
    enterBehavior?: "send" | "newline" | undefined;
    profileThresholds?: Record<string, number> | undefined;
    hasOpenedModeSelector?: boolean | undefined;
    hasClosedCodeReviewWelcomeTips?: boolean | undefined;
    lastModeExportPath?: string | undefined;
    lastModeImportPath?: string | undefined;
    lastSettingsExportPath?: string | undefined;
    lastTaskExportPath?: string | undefined;
    lastImageSavePath?: string | undefined;
    worktreeAutoOpenPath?: string | undefined;
    showWorktreesInHomeScreen?: boolean | undefined;
    disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
}, {
    language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
    rateLimitSeconds?: number | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    mode?: string | undefined;
    errorCode?: Record<string, Record<string, string>> | undefined;
    customInstructions?: string | undefined;
    customModes?: {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }[] | undefined;
    debug?: boolean | undefined;
    currentApiConfigName?: string | undefined;
    listApiConfigMeta?: {
        id: string;
        name: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        modelId?: string | undefined;
    }[] | undefined;
    pinnedApiConfigs?: Record<string, boolean> | undefined;
    autoCleanup?: {
        enabled?: boolean | undefined;
        strategy?: CleanupStrategy | undefined;
        retentionDays?: number | undefined;
        maxHistoryCount?: number | undefined;
        excludeActive?: boolean | undefined;
        cleanupOnStartup?: boolean | undefined;
    } | undefined;
    lastShownAnnouncementId?: string | undefined;
    taskHistory?: {
        number: number;
        ts: number;
        totalCost: number;
        id: string;
        task: string;
        tokensIn: number;
        tokensOut: number;
        status?: "active" | "completed" | "delegated" | undefined;
        rootTaskId?: string | undefined;
        parentTaskId?: string | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        size?: number | undefined;
        workspace?: string | undefined;
        mode?: string | undefined;
        apiConfigName?: string | undefined;
        delegatedToId?: string | undefined;
        childIds?: string[] | undefined;
        awaitingChildId?: string | undefined;
        completedByChildId?: string | undefined;
        completionResultSummary?: string | undefined;
    }[] | undefined;
    dismissedUpsells?: string[] | undefined;
    clickedOnceNotices?: number[] | undefined;
    imageGenerationProvider?: "openrouter" | "roo" | undefined;
    openRouterImageApiKey?: string | undefined;
    openRouterImageGenerationSelectedModel?: string | undefined;
    customCondensingPrompt?: string | undefined;
    costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
    autoApprovalEnabled?: boolean | undefined;
    alwaysAllowReadOnly?: boolean | undefined;
    alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
    alwaysAllowWrite?: boolean | undefined;
    alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
    alwaysAllowWriteProtected?: boolean | undefined;
    writeDelayMs?: number | undefined;
    requestDelaySeconds?: number | undefined;
    alwaysAllowMcp?: boolean | undefined;
    alwaysAllowModeSwitch?: boolean | undefined;
    alwaysAllowSubtasks?: boolean | undefined;
    alwaysAllowExecute?: boolean | undefined;
    alwaysAllowFollowupQuestions?: boolean | undefined;
    followupAutoApproveTimeoutMs?: number | undefined;
    allowedCommands?: string[] | undefined;
    deniedCommands?: string[] | undefined;
    commandExecutionTimeout?: number | undefined;
    commandTimeoutAllowlist?: string[] | undefined;
    preventCompletionWithOpenTodos?: boolean | undefined;
    allowedMaxRequests?: number | null | undefined;
    allowedMaxCost?: number | null | undefined;
    autoCondenseContext?: boolean | undefined;
    autoCondenseContextPercent?: number | undefined;
    includeCurrentTime?: boolean | undefined;
    includeCurrentCost?: boolean | undefined;
    maxGitStatusFiles?: number | undefined;
    includeDiagnosticMessages?: boolean | undefined;
    maxDiagnosticMessages?: number | undefined;
    customStoragePath?: string | undefined;
    enableCheckpoints?: boolean | undefined;
    checkpointTimeout?: number | undefined;
    ttsEnabled?: boolean | undefined;
    ttsSpeed?: number | undefined;
    soundEnabled?: boolean | undefined;
    soundVolume?: number | undefined;
    maxOpenTabsContext?: number | undefined;
    maxWorkspaceFiles?: number | undefined;
    showRooIgnoredFiles?: boolean | undefined;
    enableSubfolderRules?: boolean | undefined;
    maxImageFileSize?: number | undefined;
    maxTotalImageSize?: number | undefined;
    terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
    terminalShellIntegrationTimeout?: number | undefined;
    terminalShellIntegrationDisabled?: boolean | undefined;
    terminalCommandDelay?: number | undefined;
    terminalPowershellCounter?: boolean | undefined;
    terminalZshClearEolMark?: boolean | undefined;
    terminalZshOhMy?: boolean | undefined;
    terminalZshP10k?: boolean | undefined;
    terminalZdotdir?: boolean | undefined;
    execaShellPath?: string | undefined;
    diagnosticsEnabled?: boolean | undefined;
    experiments?: {
        preventFocusDisruption?: boolean | undefined;
        imageGeneration?: boolean | undefined;
        runSlashCommand?: boolean | undefined;
        customTools?: boolean | undefined;
        chatSearch?: boolean | undefined;
        commitReview?: boolean | undefined;
        useKPTtree?: boolean | undefined;
        useLitePrompts?: boolean | undefined;
        smartMistakeDetection?: boolean | undefined;
    } | undefined;
    experimentSettings?: {
        smartMistakeDetectionConfig?: {
            autoSwitchModel?: boolean | undefined;
        } | undefined;
    } | undefined;
    codebaseIndexModels?: {
        openai?: Record<string, {
            dimension: number;
        }> | undefined;
        ollama?: Record<string, {
            dimension: number;
        }> | undefined;
        "openai-compatible"?: Record<string, {
            dimension: number;
        }> | undefined;
        gemini?: Record<string, {
            dimension: number;
        }> | undefined;
        mistral?: Record<string, {
            dimension: number;
        }> | undefined;
        "vercel-ai-gateway"?: Record<string, {
            dimension: number;
        }> | undefined;
        bedrock?: Record<string, {
            dimension: number;
        }> | undefined;
        openrouter?: Record<string, {
            dimension: number;
        }> | undefined;
    } | undefined;
    codebaseIndexConfig?: {
        codebaseIndexEnabled?: boolean | undefined;
        codebaseIndexQdrantUrl?: string | undefined;
        codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
        codebaseIndexEmbedderBaseUrl?: string | undefined;
        codebaseIndexEmbedderModelId?: string | undefined;
        codebaseIndexEmbedderModelDimension?: number | undefined;
        codebaseIndexSearchMinScore?: number | undefined;
        codebaseIndexSearchMaxResults?: number | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codebaseIndexBedrockRegion?: string | undefined;
        codebaseIndexBedrockProfile?: string | undefined;
        codebaseIndexOpenRouterSpecificProvider?: string | undefined;
    } | undefined;
    telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
    mcpEnabled?: boolean | undefined;
    prevMode?: string | undefined;
    modeApiConfigs?: Record<string, string> | undefined;
    customModePrompts?: Record<string, {
        description?: string | undefined;
        roleDefinition?: string | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
    } | undefined> | undefined;
    customSupportPrompts?: Record<string, string | undefined> | undefined;
    enhancementApiConfigId?: string | undefined;
    includeTaskHistoryInEnhance?: boolean | undefined;
    historyPreviewCollapsed?: boolean | undefined;
    reasoningBlockCollapsed?: boolean | undefined;
    showSpeedInfo?: boolean | undefined;
    automaticallyFocus?: boolean | undefined;
    collapseMarkdownWithoutScroll?: boolean | undefined;
    enterBehavior?: "send" | "newline" | undefined;
    profileThresholds?: Record<string, number> | undefined;
    hasOpenedModeSelector?: boolean | undefined;
    hasClosedCodeReviewWelcomeTips?: boolean | undefined;
    lastModeExportPath?: string | undefined;
    lastModeImportPath?: string | undefined;
    lastSettingsExportPath?: string | undefined;
    lastTaskExportPath?: string | undefined;
    lastImageSavePath?: string | undefined;
    worktreeAutoOpenPath?: string | undefined;
    showWorktreesInHomeScreen?: boolean | undefined;
    disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
}>;
type GlobalSettings = z.infer<typeof globalSettingsSchema>;
declare const GLOBAL_SETTINGS_KEYS: ["rateLimitSeconds", "useCostrictCustomConfig", "language", "mode", "errorCode", "customInstructions", "customModes", "debug", "currentApiConfigName", "listApiConfigMeta", "pinnedApiConfigs", "autoCleanup", "lastShownAnnouncementId", "taskHistory", "dismissedUpsells", "clickedOnceNotices", "imageGenerationProvider", "openRouterImageApiKey", "openRouterImageGenerationSelectedModel", "customCondensingPrompt", "costrictCodeMode", "autoApprovalEnabled", "alwaysAllowReadOnly", "alwaysAllowReadOnlyOutsideWorkspace", "alwaysAllowWrite", "alwaysAllowWriteOutsideWorkspace", "alwaysAllowWriteProtected", "writeDelayMs", "requestDelaySeconds", "alwaysAllowMcp", "alwaysAllowModeSwitch", "alwaysAllowSubtasks", "alwaysAllowExecute", "alwaysAllowFollowupQuestions", "followupAutoApproveTimeoutMs", "allowedCommands", "deniedCommands", "commandExecutionTimeout", "commandTimeoutAllowlist", "preventCompletionWithOpenTodos", "allowedMaxRequests", "allowedMaxCost", "autoCondenseContext", "autoCondenseContextPercent", "includeCurrentTime", "includeCurrentCost", "maxGitStatusFiles", "includeDiagnosticMessages", "maxDiagnosticMessages", "customStoragePath", "enableCheckpoints", "checkpointTimeout", "ttsEnabled", "ttsSpeed", "soundEnabled", "soundVolume", "maxOpenTabsContext", "maxWorkspaceFiles", "showRooIgnoredFiles", "enableSubfolderRules", "maxImageFileSize", "maxTotalImageSize", "terminalOutputPreviewSize", "terminalShellIntegrationTimeout", "terminalShellIntegrationDisabled", "terminalCommandDelay", "terminalPowershellCounter", "terminalZshClearEolMark", "terminalZshOhMy", "terminalZshP10k", "terminalZdotdir", "execaShellPath", "diagnosticsEnabled", "experiments", "experimentSettings", "codebaseIndexModels", "codebaseIndexConfig", "telemetrySetting", "mcpEnabled", "prevMode", "modeApiConfigs", "customModePrompts", "customSupportPrompts", "enhancementApiConfigId", "includeTaskHistoryInEnhance", "historyPreviewCollapsed", "reasoningBlockCollapsed", "showSpeedInfo", "automaticallyFocus", "collapseMarkdownWithoutScroll", "enterBehavior", "profileThresholds", "hasOpenedModeSelector", "hasClosedCodeReviewWelcomeTips", "lastModeExportPath", "lastModeImportPath", "lastSettingsExportPath", "lastTaskExportPath", "lastImageSavePath", "worktreeAutoOpenPath", "showWorktreesInHomeScreen", "disabledTools"];
/**
 * RooCodeSettings
 */
declare const rooCodeSettingsSchema: z.ZodObject<{
    codeIndexOpenAiKey: z.ZodOptional<z.ZodString>;
    codeIndexQdrantApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
    codebaseIndexGeminiApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexMistralApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexVercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenRouterApiKey: z.ZodOptional<z.ZodString>;
    includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
    todoListEnabled: z.ZodOptional<z.ZodBoolean>;
    modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
    enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
    modelMaxTokens: z.ZodOptional<z.ZodNumber>;
    modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
    verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
    vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
    vercelAiGatewayModelId: z.ZodOptional<z.ZodString>;
    apiModelId: z.ZodOptional<z.ZodString>;
    rooApiKey: z.ZodOptional<z.ZodString>;
    qwenCodeOauthPath: z.ZodOptional<z.ZodString>;
    fireworksApiKey: z.ZodOptional<z.ZodString>;
    zaiApiKey: z.ZodOptional<z.ZodString>;
    zaiApiLine: z.ZodOptional<z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>>;
    sambaNovaApiKey: z.ZodOptional<z.ZodString>;
    litellmBaseUrl: z.ZodOptional<z.ZodString>;
    litellmApiKey: z.ZodOptional<z.ZodString>;
    litellmModelId: z.ZodOptional<z.ZodString>;
    litellmUsePromptCache: z.ZodOptional<z.ZodBoolean>;
    basetenApiKey: z.ZodOptional<z.ZodString>;
    xaiApiKey: z.ZodOptional<z.ZodString>;
    fakeAi: z.ZodOptional<z.ZodUnknown>;
    unboundApiKey: z.ZodOptional<z.ZodString>;
    unboundModelId: z.ZodOptional<z.ZodString>;
    requestyBaseUrl: z.ZodOptional<z.ZodString>;
    requestyApiKey: z.ZodOptional<z.ZodString>;
    requestyModelId: z.ZodOptional<z.ZodString>;
    mimoBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-cn.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-sgp.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-ams.xiaomimimo.com/v1">]>>;
    mimoApiKey: z.ZodOptional<z.ZodString>;
    minimaxBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.minimax.io/v1">, z.ZodLiteral<"https://api.minimaxi.com/v1">]>>;
    minimaxApiKey: z.ZodOptional<z.ZodString>;
    moonshotBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.moonshot.ai/v1">, z.ZodLiteral<"https://api.moonshot.cn/v1">]>>;
    moonshotApiKey: z.ZodOptional<z.ZodString>;
    poeApiKey: z.ZodOptional<z.ZodString>;
    poeBaseUrl: z.ZodOptional<z.ZodString>;
    deepSeekBaseUrl: z.ZodOptional<z.ZodString>;
    deepSeekApiKey: z.ZodOptional<z.ZodString>;
    mistralApiKey: z.ZodOptional<z.ZodString>;
    mistralCodestralUrl: z.ZodOptional<z.ZodString>;
    openAiNativeApiKey: z.ZodOptional<z.ZodString>;
    openAiNativeBaseUrl: z.ZodOptional<z.ZodString>;
    openAiNativeServiceTier: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
    geminiCliOAuthPath: z.ZodOptional<z.ZodString>;
    geminiCliProjectId: z.ZodOptional<z.ZodString>;
    geminiApiKey: z.ZodOptional<z.ZodString>;
    googleGeminiBaseUrl: z.ZodOptional<z.ZodString>;
    lmStudioModelId: z.ZodOptional<z.ZodString>;
    lmStudioBaseUrl: z.ZodOptional<z.ZodString>;
    lmStudioDraftModelId: z.ZodOptional<z.ZodString>;
    lmStudioSpeculativeDecodingEnabled: z.ZodOptional<z.ZodBoolean>;
    vsCodeLmModelSelector: z.ZodOptional<z.ZodObject<{
        vendor: z.ZodOptional<z.ZodString>;
        family: z.ZodOptional<z.ZodString>;
        version: z.ZodOptional<z.ZodString>;
        id: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    }, {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    }>>;
    ollamaModelId: z.ZodOptional<z.ZodString>;
    ollamaBaseUrl: z.ZodOptional<z.ZodString>;
    ollamaApiKey: z.ZodOptional<z.ZodString>;
    ollamaNumCtx: z.ZodOptional<z.ZodNumber>;
    openAiBaseUrl: z.ZodOptional<z.ZodString>;
    openAiApiKey: z.ZodOptional<z.ZodString>;
    openAiR1FormatEnabled: z.ZodOptional<z.ZodBoolean>;
    openAiModelId: z.ZodOptional<z.ZodString>;
    openAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>>;
    openAiUseAzure: z.ZodOptional<z.ZodBoolean>;
    azureApiVersion: z.ZodOptional<z.ZodString>;
    openAiStreamingEnabled: z.ZodOptional<z.ZodBoolean>;
    openAiHostHeader: z.ZodOptional<z.ZodString>;
    openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    vertexKeyFile: z.ZodOptional<z.ZodString>;
    vertexJsonCredentials: z.ZodOptional<z.ZodString>;
    vertexProjectId: z.ZodOptional<z.ZodString>;
    vertexRegion: z.ZodOptional<z.ZodString>;
    vertex1MContext: z.ZodOptional<z.ZodBoolean>;
    awsAccessKey: z.ZodOptional<z.ZodString>;
    awsSecretKey: z.ZodOptional<z.ZodString>;
    awsSessionToken: z.ZodOptional<z.ZodString>;
    awsRegion: z.ZodOptional<z.ZodString>;
    awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
    awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
    awsUsePromptCache: z.ZodOptional<z.ZodBoolean>;
    awsProfile: z.ZodOptional<z.ZodString>;
    awsUseProfile: z.ZodOptional<z.ZodBoolean>;
    awsApiKey: z.ZodOptional<z.ZodString>;
    awsUseApiKey: z.ZodOptional<z.ZodBoolean>;
    awsCustomArn: z.ZodOptional<z.ZodString>;
    awsModelContextWindow: z.ZodOptional<z.ZodNumber>;
    awsBedrockEndpointEnabled: z.ZodOptional<z.ZodBoolean>;
    awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
    awsBedrock1MContext: z.ZodOptional<z.ZodBoolean>;
    awsBedrockServiceTier: z.ZodOptional<z.ZodEnum<["STANDARD", "FLEX", "PRIORITY"]>>;
    openRouterApiKey: z.ZodOptional<z.ZodString>;
    openRouterModelId: z.ZodOptional<z.ZodString>;
    openRouterBaseUrl: z.ZodOptional<z.ZodString>;
    openRouterSpecificProvider: z.ZodOptional<z.ZodString>;
    apiKey: z.ZodOptional<z.ZodString>;
    anthropicBaseUrl: z.ZodOptional<z.ZodString>;
    anthropicUseAuthToken: z.ZodOptional<z.ZodBoolean>;
    anthropicBeta1MContext: z.ZodOptional<z.ZodBoolean>;
    costrictAccessToken: z.ZodOptional<z.ZodString>;
    costrictRefreshToken: z.ZodOptional<z.ZodString>;
    costrictState: z.ZodOptional<z.ZodString>;
    costrictBaseUrl: z.ZodOptional<z.ZodString>;
    costrictModelId: z.ZodOptional<z.ZodString>;
    costrictApiKeyUpdatedAt: z.ZodOptional<z.ZodString>;
    costrictApiKeyExpiredAt: z.ZodOptional<z.ZodString>;
    costrictAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        contextWindow: z.ZodNumber;
        supportsImages: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodString>;
        maxTokensKey: z.ZodOptional<z.ZodString>;
        creditConsumption: z.ZodOptional<z.ZodNumber>;
        creditDiscount: z.ZodOptional<z.ZodNumber>;
        supportsPromptCache: z.ZodBoolean;
        promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
        supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
        supportsTemperature: z.ZodOptional<z.ZodBoolean>;
        defaultTemperature: z.ZodOptional<z.ZodNumber>;
        requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
        supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
        requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        preserveReasoning: z.ZodOptional<z.ZodBoolean>;
        supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        longContextPricing: z.ZodOptional<z.ZodObject<{
            thresholdTokens: z.ZodNumber;
            inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
            appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }, {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        }>>;
        description: z.ZodOptional<z.ZodString>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
        minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
        maxCachePoints: z.ZodOptional<z.ZodNumber>;
        cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        isStealthModel: z.ZodOptional<z.ZodBoolean>;
        isFree: z.ZodOptional<z.ZodBoolean>;
        excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            contextWindow: z.ZodNumber;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }, {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }, {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    }>>>;
    apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
} & {
    currentApiConfigName: z.ZodOptional<z.ZodString>;
    listApiConfigMeta: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        name: z.ZodString;
        apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
        modelId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        id: string;
        name: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        modelId?: string | undefined;
    }, {
        id: string;
        name: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        modelId?: string | undefined;
    }>, "many">>;
    pinnedApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
    debug: z.ZodOptional<z.ZodBoolean>;
    autoCleanup: z.ZodOptional<z.ZodObject<{
        enabled: z.ZodOptional<z.ZodBoolean>;
        strategy: z.ZodOptional<z.ZodNativeEnum<typeof CleanupStrategy>>;
        retentionDays: z.ZodOptional<z.ZodNumber>;
        maxHistoryCount: z.ZodOptional<z.ZodNumber>;
        excludeActive: z.ZodOptional<z.ZodBoolean>;
        cleanupOnStartup: z.ZodOptional<z.ZodBoolean>;
    }, "strip", z.ZodTypeAny, {
        enabled?: boolean | undefined;
        strategy?: CleanupStrategy | undefined;
        retentionDays?: number | undefined;
        maxHistoryCount?: number | undefined;
        excludeActive?: boolean | undefined;
        cleanupOnStartup?: boolean | undefined;
    }, {
        enabled?: boolean | undefined;
        strategy?: CleanupStrategy | undefined;
        retentionDays?: number | undefined;
        maxHistoryCount?: number | undefined;
        excludeActive?: boolean | undefined;
        cleanupOnStartup?: boolean | undefined;
    }>>;
    lastShownAnnouncementId: z.ZodOptional<z.ZodString>;
    customInstructions: z.ZodOptional<z.ZodString>;
    taskHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        rootTaskId: z.ZodOptional<z.ZodString>;
        parentTaskId: z.ZodOptional<z.ZodString>;
        number: z.ZodNumber;
        ts: z.ZodNumber;
        task: z.ZodString;
        tokensIn: z.ZodNumber;
        tokensOut: z.ZodNumber;
        cacheWrites: z.ZodOptional<z.ZodNumber>;
        cacheReads: z.ZodOptional<z.ZodNumber>;
        totalCost: z.ZodNumber;
        size: z.ZodOptional<z.ZodNumber>;
        workspace: z.ZodOptional<z.ZodString>;
        mode: z.ZodOptional<z.ZodString>;
        apiConfigName: z.ZodOptional<z.ZodString>;
        status: z.ZodOptional<z.ZodEnum<["active", "completed", "delegated"]>>;
        delegatedToId: z.ZodOptional<z.ZodString>;
        childIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        awaitingChildId: z.ZodOptional<z.ZodString>;
        completedByChildId: z.ZodOptional<z.ZodString>;
        completionResultSummary: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        number: number;
        ts: number;
        totalCost: number;
        id: string;
        task: string;
        tokensIn: number;
        tokensOut: number;
        status?: "active" | "completed" | "delegated" | undefined;
        rootTaskId?: string | undefined;
        parentTaskId?: string | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        size?: number | undefined;
        workspace?: string | undefined;
        mode?: string | undefined;
        apiConfigName?: string | undefined;
        delegatedToId?: string | undefined;
        childIds?: string[] | undefined;
        awaitingChildId?: string | undefined;
        completedByChildId?: string | undefined;
        completionResultSummary?: string | undefined;
    }, {
        number: number;
        ts: number;
        totalCost: number;
        id: string;
        task: string;
        tokensIn: number;
        tokensOut: number;
        status?: "active" | "completed" | "delegated" | undefined;
        rootTaskId?: string | undefined;
        parentTaskId?: string | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        size?: number | undefined;
        workspace?: string | undefined;
        mode?: string | undefined;
        apiConfigName?: string | undefined;
        delegatedToId?: string | undefined;
        childIds?: string[] | undefined;
        awaitingChildId?: string | undefined;
        completedByChildId?: string | undefined;
        completionResultSummary?: string | undefined;
    }>, "many">>;
    dismissedUpsells: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    clickedOnceNotices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
    imageGenerationProvider: z.ZodOptional<z.ZodEnum<["openrouter", "roo"]>>;
    openRouterImageApiKey: z.ZodOptional<z.ZodString>;
    openRouterImageGenerationSelectedModel: z.ZodOptional<z.ZodString>;
    customCondensingPrompt: z.ZodOptional<z.ZodString>;
    useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
    costrictCodeMode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"vibe">, z.ZodLiteral<"strict">, z.ZodLiteral<"raw">, z.ZodLiteral<"plan">]>>;
    autoApprovalEnabled: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowReadOnly: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowReadOnlyOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowWrite: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowWriteOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowWriteProtected: z.ZodOptional<z.ZodBoolean>;
    writeDelayMs: z.ZodOptional<z.ZodNumber>;
    requestDelaySeconds: z.ZodOptional<z.ZodNumber>;
    alwaysAllowMcp: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowModeSwitch: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowSubtasks: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowExecute: z.ZodOptional<z.ZodBoolean>;
    alwaysAllowFollowupQuestions: z.ZodOptional<z.ZodBoolean>;
    followupAutoApproveTimeoutMs: z.ZodOptional<z.ZodNumber>;
    allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
    commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
    allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    allowedMaxCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
    autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
    includeCurrentTime: z.ZodOptional<z.ZodBoolean>;
    includeCurrentCost: z.ZodOptional<z.ZodBoolean>;
    maxGitStatusFiles: z.ZodOptional<z.ZodNumber>;
    includeDiagnosticMessages: z.ZodOptional<z.ZodBoolean>;
    maxDiagnosticMessages: z.ZodOptional<z.ZodNumber>;
    customStoragePath: z.ZodOptional<z.ZodString>;
    enableCheckpoints: z.ZodOptional<z.ZodBoolean>;
    checkpointTimeout: z.ZodOptional<z.ZodNumber>;
    ttsEnabled: z.ZodOptional<z.ZodBoolean>;
    ttsSpeed: z.ZodOptional<z.ZodNumber>;
    soundEnabled: z.ZodOptional<z.ZodBoolean>;
    soundVolume: z.ZodOptional<z.ZodNumber>;
    maxOpenTabsContext: z.ZodOptional<z.ZodNumber>;
    maxWorkspaceFiles: z.ZodOptional<z.ZodNumber>;
    showRooIgnoredFiles: z.ZodOptional<z.ZodBoolean>;
    enableSubfolderRules: z.ZodOptional<z.ZodBoolean>;
    maxImageFileSize: z.ZodOptional<z.ZodNumber>;
    maxTotalImageSize: z.ZodOptional<z.ZodNumber>;
    terminalOutputPreviewSize: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
    terminalShellIntegrationTimeout: z.ZodOptional<z.ZodNumber>;
    terminalShellIntegrationDisabled: z.ZodOptional<z.ZodBoolean>;
    terminalCommandDelay: z.ZodOptional<z.ZodNumber>;
    terminalPowershellCounter: z.ZodOptional<z.ZodBoolean>;
    terminalZshClearEolMark: z.ZodOptional<z.ZodBoolean>;
    terminalZshOhMy: z.ZodOptional<z.ZodBoolean>;
    terminalZshP10k: z.ZodOptional<z.ZodBoolean>;
    terminalZdotdir: z.ZodOptional<z.ZodBoolean>;
    execaShellPath: z.ZodOptional<z.ZodString>;
    diagnosticsEnabled: z.ZodOptional<z.ZodBoolean>;
    rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
    experiments: z.ZodOptional<z.ZodObject<{
        chatSearch: z.ZodOptional<z.ZodBoolean>;
        useKPTtree: z.ZodOptional<z.ZodBoolean>;
        commitReview: z.ZodOptional<z.ZodBoolean>;
        useLitePrompts: z.ZodOptional<z.ZodBoolean>;
        preventFocusDisruption: z.ZodOptional<z.ZodBoolean>;
        imageGeneration: z.ZodOptional<z.ZodBoolean>;
        runSlashCommand: z.ZodOptional<z.ZodBoolean>;
        customTools: z.ZodOptional<z.ZodBoolean>;
        smartMistakeDetection: z.ZodOptional<z.ZodBoolean>;
    }, "strip", z.ZodTypeAny, {
        preventFocusDisruption?: boolean | undefined;
        imageGeneration?: boolean | undefined;
        runSlashCommand?: boolean | undefined;
        customTools?: boolean | undefined;
        chatSearch?: boolean | undefined;
        commitReview?: boolean | undefined;
        useKPTtree?: boolean | undefined;
        useLitePrompts?: boolean | undefined;
        smartMistakeDetection?: boolean | undefined;
    }, {
        preventFocusDisruption?: boolean | undefined;
        imageGeneration?: boolean | undefined;
        runSlashCommand?: boolean | undefined;
        customTools?: boolean | undefined;
        chatSearch?: boolean | undefined;
        commitReview?: boolean | undefined;
        useKPTtree?: boolean | undefined;
        useLitePrompts?: boolean | undefined;
        smartMistakeDetection?: boolean | undefined;
    }>>;
    experimentSettings: z.ZodOptional<z.ZodObject<{
        smartMistakeDetectionConfig: z.ZodOptional<z.ZodObject<{
            autoSwitchModel: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            autoSwitchModel?: boolean | undefined;
        }, {
            autoSwitchModel?: boolean | undefined;
        }>>;
    }, "strip", z.ZodTypeAny, {
        smartMistakeDetectionConfig?: {
            autoSwitchModel?: boolean | undefined;
        } | undefined;
    }, {
        smartMistakeDetectionConfig?: {
            autoSwitchModel?: boolean | undefined;
        } | undefined;
    }>>;
    codebaseIndexModels: z.ZodOptional<z.ZodObject<{
        openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        ollama: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        "openai-compatible": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        gemini: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        mistral: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        "vercel-ai-gateway": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        openrouter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
        bedrock: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
            dimension: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            dimension: number;
        }, {
            dimension: number;
        }>>>;
    }, "strip", z.ZodTypeAny, {
        openai?: Record<string, {
            dimension: number;
        }> | undefined;
        ollama?: Record<string, {
            dimension: number;
        }> | undefined;
        "openai-compatible"?: Record<string, {
            dimension: number;
        }> | undefined;
        gemini?: Record<string, {
            dimension: number;
        }> | undefined;
        mistral?: Record<string, {
            dimension: number;
        }> | undefined;
        "vercel-ai-gateway"?: Record<string, {
            dimension: number;
        }> | undefined;
        bedrock?: Record<string, {
            dimension: number;
        }> | undefined;
        openrouter?: Record<string, {
            dimension: number;
        }> | undefined;
    }, {
        openai?: Record<string, {
            dimension: number;
        }> | undefined;
        ollama?: Record<string, {
            dimension: number;
        }> | undefined;
        "openai-compatible"?: Record<string, {
            dimension: number;
        }> | undefined;
        gemini?: Record<string, {
            dimension: number;
        }> | undefined;
        mistral?: Record<string, {
            dimension: number;
        }> | undefined;
        "vercel-ai-gateway"?: Record<string, {
            dimension: number;
        }> | undefined;
        bedrock?: Record<string, {
            dimension: number;
        }> | undefined;
        openrouter?: Record<string, {
            dimension: number;
        }> | undefined;
    }>>;
    codebaseIndexConfig: z.ZodOptional<z.ZodObject<{
        codebaseIndexEnabled: z.ZodOptional<z.ZodBoolean>;
        codebaseIndexQdrantUrl: z.ZodOptional<z.ZodString>;
        codebaseIndexEmbedderProvider: z.ZodOptional<z.ZodEnum<["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway", "bedrock", "openrouter"]>>;
        codebaseIndexEmbedderBaseUrl: z.ZodOptional<z.ZodString>;
        codebaseIndexEmbedderModelId: z.ZodOptional<z.ZodString>;
        codebaseIndexEmbedderModelDimension: z.ZodOptional<z.ZodNumber>;
        codebaseIndexSearchMinScore: z.ZodOptional<z.ZodNumber>;
        codebaseIndexSearchMaxResults: z.ZodOptional<z.ZodNumber>;
        codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
        codebaseIndexBedrockRegion: z.ZodOptional<z.ZodString>;
        codebaseIndexBedrockProfile: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenRouterSpecificProvider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        codebaseIndexEnabled?: boolean | undefined;
        codebaseIndexQdrantUrl?: string | undefined;
        codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
        codebaseIndexEmbedderBaseUrl?: string | undefined;
        codebaseIndexEmbedderModelId?: string | undefined;
        codebaseIndexEmbedderModelDimension?: number | undefined;
        codebaseIndexSearchMinScore?: number | undefined;
        codebaseIndexSearchMaxResults?: number | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codebaseIndexBedrockRegion?: string | undefined;
        codebaseIndexBedrockProfile?: string | undefined;
        codebaseIndexOpenRouterSpecificProvider?: string | undefined;
    }, {
        codebaseIndexEnabled?: boolean | undefined;
        codebaseIndexQdrantUrl?: string | undefined;
        codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
        codebaseIndexEmbedderBaseUrl?: string | undefined;
        codebaseIndexEmbedderModelId?: string | undefined;
        codebaseIndexEmbedderModelDimension?: number | undefined;
        codebaseIndexSearchMinScore?: number | undefined;
        codebaseIndexSearchMaxResults?: number | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codebaseIndexBedrockRegion?: string | undefined;
        codebaseIndexBedrockProfile?: string | undefined;
        codebaseIndexOpenRouterSpecificProvider?: string | undefined;
    }>>;
    language: z.ZodOptional<z.ZodEnum<["ca", "de", "en", "es", "fr", "hi", "id", "it", "ja", "ko", "nl", "pl", "pt-BR", "ru", "tr", "vi", "zh-CN", "zh-TW"]>>;
    telemetrySetting: z.ZodOptional<z.ZodEnum<["unset", "enabled", "disabled"]>>;
    mcpEnabled: z.ZodOptional<z.ZodBoolean>;
    mode: z.ZodOptional<z.ZodString>;
    prevMode: z.ZodOptional<z.ZodString>;
    modeApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    customModes: z.ZodOptional<z.ZodArray<z.ZodObject<{
        slug: z.ZodString;
        name: z.ZodString;
        roleDefinition: z.ZodString;
        whenToUse: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        customInstructions: z.ZodOptional<z.ZodString>;
        groups: z.ZodType<("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[], z.ZodTypeDef, ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[]>;
        overrideSystemPrompt: z.ZodOptional<z.ZodBoolean>;
        source: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
        costrictCodeModeGroup: z.ZodOptional<z.ZodDefault<z.ZodString>>;
        apiProvider: z.ZodOptional<z.ZodString>;
        subagents: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
        pure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
        disableSwitchMode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
        taskMode: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }, {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }>, "many">>;
    customModePrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
        roleDefinition: z.ZodOptional<z.ZodString>;
        whenToUse: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        customInstructions: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        description?: string | undefined;
        roleDefinition?: string | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
    }, {
        description?: string | undefined;
        roleDefinition?: string | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
    }>>>>;
    customSupportPrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
    enhancementApiConfigId: z.ZodOptional<z.ZodString>;
    includeTaskHistoryInEnhance: z.ZodOptional<z.ZodBoolean>;
    historyPreviewCollapsed: z.ZodOptional<z.ZodBoolean>;
    reasoningBlockCollapsed: z.ZodOptional<z.ZodBoolean>;
    showSpeedInfo: z.ZodOptional<z.ZodBoolean>;
    automaticallyFocus: z.ZodOptional<z.ZodBoolean>;
    collapseMarkdownWithoutScroll: z.ZodOptional<z.ZodBoolean>;
    enterBehavior: z.ZodOptional<z.ZodEnum<["send", "newline"]>>;
    profileThresholds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
    hasOpenedModeSelector: z.ZodOptional<z.ZodBoolean>;
    hasClosedCodeReviewWelcomeTips: z.ZodOptional<z.ZodBoolean>;
    lastModeExportPath: z.ZodOptional<z.ZodString>;
    lastModeImportPath: z.ZodOptional<z.ZodString>;
    lastSettingsExportPath: z.ZodOptional<z.ZodString>;
    lastTaskExportPath: z.ZodOptional<z.ZodString>;
    lastImageSavePath: z.ZodOptional<z.ZodString>;
    errorCode: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
    worktreeAutoOpenPath: z.ZodOptional<z.ZodString>;
    showWorktreesInHomeScreen: z.ZodOptional<z.ZodBoolean>;
    disabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, "many">>;
}, "strip", z.ZodTypeAny, {
    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
    codeIndexOpenAiKey?: string | undefined;
    codeIndexQdrantApiKey?: string | undefined;
    codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
    codebaseIndexGeminiApiKey?: string | undefined;
    codebaseIndexMistralApiKey?: string | undefined;
    codebaseIndexVercelAiGatewayApiKey?: string | undefined;
    codebaseIndexOpenRouterApiKey?: string | undefined;
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    costrictAccessToken?: string | undefined;
    costrictRefreshToken?: string | undefined;
    costrictState?: string | undefined;
    costrictBaseUrl?: string | undefined;
    costrictModelId?: string | undefined;
    costrictApiKeyUpdatedAt?: string | undefined;
    costrictApiKeyExpiredAt?: string | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    costrictAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    apiKey?: string | undefined;
    anthropicBaseUrl?: string | undefined;
    anthropicUseAuthToken?: boolean | undefined;
    anthropicBeta1MContext?: boolean | undefined;
    openRouterApiKey?: string | undefined;
    openRouterModelId?: string | undefined;
    openRouterBaseUrl?: string | undefined;
    openRouterSpecificProvider?: string | undefined;
    awsAccessKey?: string | undefined;
    awsSecretKey?: string | undefined;
    awsSessionToken?: string | undefined;
    awsRegion?: string | undefined;
    awsUseCrossRegionInference?: boolean | undefined;
    awsUseGlobalInference?: boolean | undefined;
    awsUsePromptCache?: boolean | undefined;
    awsProfile?: string | undefined;
    awsUseProfile?: boolean | undefined;
    awsApiKey?: string | undefined;
    awsUseApiKey?: boolean | undefined;
    awsCustomArn?: string | undefined;
    awsModelContextWindow?: number | undefined;
    awsBedrockEndpointEnabled?: boolean | undefined;
    awsBedrockEndpoint?: string | undefined;
    awsBedrock1MContext?: boolean | undefined;
    awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
    vertexKeyFile?: string | undefined;
    vertexJsonCredentials?: string | undefined;
    vertexProjectId?: string | undefined;
    vertexRegion?: string | undefined;
    vertex1MContext?: boolean | undefined;
    openAiBaseUrl?: string | undefined;
    openAiApiKey?: string | undefined;
    openAiR1FormatEnabled?: boolean | undefined;
    openAiModelId?: string | undefined;
    openAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    openAiUseAzure?: boolean | undefined;
    azureApiVersion?: string | undefined;
    openAiStreamingEnabled?: boolean | undefined;
    openAiHostHeader?: string | undefined;
    openAiHeaders?: Record<string, string> | undefined;
    ollamaModelId?: string | undefined;
    ollamaBaseUrl?: string | undefined;
    ollamaApiKey?: string | undefined;
    ollamaNumCtx?: number | undefined;
    vsCodeLmModelSelector?: {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    } | undefined;
    lmStudioModelId?: string | undefined;
    lmStudioBaseUrl?: string | undefined;
    lmStudioDraftModelId?: string | undefined;
    lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
    geminiApiKey?: string | undefined;
    googleGeminiBaseUrl?: string | undefined;
    geminiCliOAuthPath?: string | undefined;
    geminiCliProjectId?: string | undefined;
    openAiNativeApiKey?: string | undefined;
    openAiNativeBaseUrl?: string | undefined;
    openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
    mistralApiKey?: string | undefined;
    mistralCodestralUrl?: string | undefined;
    deepSeekBaseUrl?: string | undefined;
    deepSeekApiKey?: string | undefined;
    poeApiKey?: string | undefined;
    poeBaseUrl?: string | undefined;
    moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
    moonshotApiKey?: string | undefined;
    minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
    minimaxApiKey?: string | undefined;
    mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
    mimoApiKey?: string | undefined;
    requestyBaseUrl?: string | undefined;
    requestyApiKey?: string | undefined;
    requestyModelId?: string | undefined;
    unboundApiKey?: string | undefined;
    unboundModelId?: string | undefined;
    fakeAi?: unknown;
    xaiApiKey?: string | undefined;
    basetenApiKey?: string | undefined;
    litellmBaseUrl?: string | undefined;
    litellmApiKey?: string | undefined;
    litellmModelId?: string | undefined;
    litellmUsePromptCache?: boolean | undefined;
    sambaNovaApiKey?: string | undefined;
    zaiApiKey?: string | undefined;
    zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
    fireworksApiKey?: string | undefined;
    qwenCodeOauthPath?: string | undefined;
    rooApiKey?: string | undefined;
    vercelAiGatewayApiKey?: string | undefined;
    vercelAiGatewayModelId?: string | undefined;
    mode?: string | undefined;
    errorCode?: Record<string, Record<string, string>> | undefined;
    customInstructions?: string | undefined;
    customModes?: {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }[] | undefined;
    debug?: boolean | undefined;
    currentApiConfigName?: string | undefined;
    listApiConfigMeta?: {
        id: string;
        name: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        modelId?: string | undefined;
    }[] | undefined;
    pinnedApiConfigs?: Record<string, boolean> | undefined;
    autoCleanup?: {
        enabled?: boolean | undefined;
        strategy?: CleanupStrategy | undefined;
        retentionDays?: number | undefined;
        maxHistoryCount?: number | undefined;
        excludeActive?: boolean | undefined;
        cleanupOnStartup?: boolean | undefined;
    } | undefined;
    lastShownAnnouncementId?: string | undefined;
    taskHistory?: {
        number: number;
        ts: number;
        totalCost: number;
        id: string;
        task: string;
        tokensIn: number;
        tokensOut: number;
        status?: "active" | "completed" | "delegated" | undefined;
        rootTaskId?: string | undefined;
        parentTaskId?: string | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        size?: number | undefined;
        workspace?: string | undefined;
        mode?: string | undefined;
        apiConfigName?: string | undefined;
        delegatedToId?: string | undefined;
        childIds?: string[] | undefined;
        awaitingChildId?: string | undefined;
        completedByChildId?: string | undefined;
        completionResultSummary?: string | undefined;
    }[] | undefined;
    dismissedUpsells?: string[] | undefined;
    clickedOnceNotices?: number[] | undefined;
    imageGenerationProvider?: "openrouter" | "roo" | undefined;
    openRouterImageApiKey?: string | undefined;
    openRouterImageGenerationSelectedModel?: string | undefined;
    customCondensingPrompt?: string | undefined;
    costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
    autoApprovalEnabled?: boolean | undefined;
    alwaysAllowReadOnly?: boolean | undefined;
    alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
    alwaysAllowWrite?: boolean | undefined;
    alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
    alwaysAllowWriteProtected?: boolean | undefined;
    writeDelayMs?: number | undefined;
    requestDelaySeconds?: number | undefined;
    alwaysAllowMcp?: boolean | undefined;
    alwaysAllowModeSwitch?: boolean | undefined;
    alwaysAllowSubtasks?: boolean | undefined;
    alwaysAllowExecute?: boolean | undefined;
    alwaysAllowFollowupQuestions?: boolean | undefined;
    followupAutoApproveTimeoutMs?: number | undefined;
    allowedCommands?: string[] | undefined;
    deniedCommands?: string[] | undefined;
    commandExecutionTimeout?: number | undefined;
    commandTimeoutAllowlist?: string[] | undefined;
    preventCompletionWithOpenTodos?: boolean | undefined;
    allowedMaxRequests?: number | null | undefined;
    allowedMaxCost?: number | null | undefined;
    autoCondenseContext?: boolean | undefined;
    autoCondenseContextPercent?: number | undefined;
    includeCurrentTime?: boolean | undefined;
    includeCurrentCost?: boolean | undefined;
    maxGitStatusFiles?: number | undefined;
    includeDiagnosticMessages?: boolean | undefined;
    maxDiagnosticMessages?: number | undefined;
    customStoragePath?: string | undefined;
    enableCheckpoints?: boolean | undefined;
    checkpointTimeout?: number | undefined;
    ttsEnabled?: boolean | undefined;
    ttsSpeed?: number | undefined;
    soundEnabled?: boolean | undefined;
    soundVolume?: number | undefined;
    maxOpenTabsContext?: number | undefined;
    maxWorkspaceFiles?: number | undefined;
    showRooIgnoredFiles?: boolean | undefined;
    enableSubfolderRules?: boolean | undefined;
    maxImageFileSize?: number | undefined;
    maxTotalImageSize?: number | undefined;
    terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
    terminalShellIntegrationTimeout?: number | undefined;
    terminalShellIntegrationDisabled?: boolean | undefined;
    terminalCommandDelay?: number | undefined;
    terminalPowershellCounter?: boolean | undefined;
    terminalZshClearEolMark?: boolean | undefined;
    terminalZshOhMy?: boolean | undefined;
    terminalZshP10k?: boolean | undefined;
    terminalZdotdir?: boolean | undefined;
    execaShellPath?: string | undefined;
    diagnosticsEnabled?: boolean | undefined;
    experiments?: {
        preventFocusDisruption?: boolean | undefined;
        imageGeneration?: boolean | undefined;
        runSlashCommand?: boolean | undefined;
        customTools?: boolean | undefined;
        chatSearch?: boolean | undefined;
        commitReview?: boolean | undefined;
        useKPTtree?: boolean | undefined;
        useLitePrompts?: boolean | undefined;
        smartMistakeDetection?: boolean | undefined;
    } | undefined;
    experimentSettings?: {
        smartMistakeDetectionConfig?: {
            autoSwitchModel?: boolean | undefined;
        } | undefined;
    } | undefined;
    codebaseIndexModels?: {
        openai?: Record<string, {
            dimension: number;
        }> | undefined;
        ollama?: Record<string, {
            dimension: number;
        }> | undefined;
        "openai-compatible"?: Record<string, {
            dimension: number;
        }> | undefined;
        gemini?: Record<string, {
            dimension: number;
        }> | undefined;
        mistral?: Record<string, {
            dimension: number;
        }> | undefined;
        "vercel-ai-gateway"?: Record<string, {
            dimension: number;
        }> | undefined;
        bedrock?: Record<string, {
            dimension: number;
        }> | undefined;
        openrouter?: Record<string, {
            dimension: number;
        }> | undefined;
    } | undefined;
    codebaseIndexConfig?: {
        codebaseIndexEnabled?: boolean | undefined;
        codebaseIndexQdrantUrl?: string | undefined;
        codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
        codebaseIndexEmbedderBaseUrl?: string | undefined;
        codebaseIndexEmbedderModelId?: string | undefined;
        codebaseIndexEmbedderModelDimension?: number | undefined;
        codebaseIndexSearchMinScore?: number | undefined;
        codebaseIndexSearchMaxResults?: number | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codebaseIndexBedrockRegion?: string | undefined;
        codebaseIndexBedrockProfile?: string | undefined;
        codebaseIndexOpenRouterSpecificProvider?: string | undefined;
    } | undefined;
    telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
    mcpEnabled?: boolean | undefined;
    prevMode?: string | undefined;
    modeApiConfigs?: Record<string, string> | undefined;
    customModePrompts?: Record<string, {
        description?: string | undefined;
        roleDefinition?: string | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
    } | undefined> | undefined;
    customSupportPrompts?: Record<string, string | undefined> | undefined;
    enhancementApiConfigId?: string | undefined;
    includeTaskHistoryInEnhance?: boolean | undefined;
    historyPreviewCollapsed?: boolean | undefined;
    reasoningBlockCollapsed?: boolean | undefined;
    showSpeedInfo?: boolean | undefined;
    automaticallyFocus?: boolean | undefined;
    collapseMarkdownWithoutScroll?: boolean | undefined;
    enterBehavior?: "send" | "newline" | undefined;
    profileThresholds?: Record<string, number> | undefined;
    hasOpenedModeSelector?: boolean | undefined;
    hasClosedCodeReviewWelcomeTips?: boolean | undefined;
    lastModeExportPath?: string | undefined;
    lastModeImportPath?: string | undefined;
    lastSettingsExportPath?: string | undefined;
    lastTaskExportPath?: string | undefined;
    lastImageSavePath?: string | undefined;
    worktreeAutoOpenPath?: string | undefined;
    showWorktreesInHomeScreen?: boolean | undefined;
    disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
}, {
    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
    codeIndexOpenAiKey?: string | undefined;
    codeIndexQdrantApiKey?: string | undefined;
    codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
    codebaseIndexGeminiApiKey?: string | undefined;
    codebaseIndexMistralApiKey?: string | undefined;
    codebaseIndexVercelAiGatewayApiKey?: string | undefined;
    codebaseIndexOpenRouterApiKey?: string | undefined;
    reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
    includeMaxTokens?: boolean | undefined;
    todoListEnabled?: boolean | undefined;
    modelTemperature?: number | null | undefined;
    rateLimitSeconds?: number | undefined;
    consecutiveMistakeLimit?: number | undefined;
    enableReasoningEffort?: boolean | undefined;
    modelMaxTokens?: number | undefined;
    modelMaxThinkingTokens?: number | undefined;
    verbosity?: "low" | "medium" | "high" | undefined;
    apiModelId?: string | undefined;
    costrictAccessToken?: string | undefined;
    costrictRefreshToken?: string | undefined;
    costrictState?: string | undefined;
    costrictBaseUrl?: string | undefined;
    costrictModelId?: string | undefined;
    costrictApiKeyUpdatedAt?: string | undefined;
    costrictApiKeyExpiredAt?: string | undefined;
    useCostrictCustomConfig?: boolean | undefined;
    costrictAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    apiKey?: string | undefined;
    anthropicBaseUrl?: string | undefined;
    anthropicUseAuthToken?: boolean | undefined;
    anthropicBeta1MContext?: boolean | undefined;
    openRouterApiKey?: string | undefined;
    openRouterModelId?: string | undefined;
    openRouterBaseUrl?: string | undefined;
    openRouterSpecificProvider?: string | undefined;
    awsAccessKey?: string | undefined;
    awsSecretKey?: string | undefined;
    awsSessionToken?: string | undefined;
    awsRegion?: string | undefined;
    awsUseCrossRegionInference?: boolean | undefined;
    awsUseGlobalInference?: boolean | undefined;
    awsUsePromptCache?: boolean | undefined;
    awsProfile?: string | undefined;
    awsUseProfile?: boolean | undefined;
    awsApiKey?: string | undefined;
    awsUseApiKey?: boolean | undefined;
    awsCustomArn?: string | undefined;
    awsModelContextWindow?: number | undefined;
    awsBedrockEndpointEnabled?: boolean | undefined;
    awsBedrockEndpoint?: string | undefined;
    awsBedrock1MContext?: boolean | undefined;
    awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
    vertexKeyFile?: string | undefined;
    vertexJsonCredentials?: string | undefined;
    vertexProjectId?: string | undefined;
    vertexRegion?: string | undefined;
    vertex1MContext?: boolean | undefined;
    openAiBaseUrl?: string | undefined;
    openAiApiKey?: string | undefined;
    openAiR1FormatEnabled?: boolean | undefined;
    openAiModelId?: string | undefined;
    openAiCustomModelInfo?: {
        contextWindow: number;
        supportsPromptCache: boolean;
        id?: string | undefined;
        maxTokens?: number | null | undefined;
        maxThinkingTokens?: number | null | undefined;
        supportsImages?: boolean | undefined;
        maxTokensKey?: string | undefined;
        creditConsumption?: number | undefined;
        creditDiscount?: number | undefined;
        promptCacheRetention?: "in_memory" | "24h" | undefined;
        supportsVerbosity?: boolean | undefined;
        supportsReasoningBudget?: boolean | undefined;
        supportsReasoningBinary?: boolean | undefined;
        supportsTemperature?: boolean | undefined;
        defaultTemperature?: number | undefined;
        requiredReasoningBudget?: boolean | undefined;
        supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
        requiredReasoningEffort?: boolean | undefined;
        preserveReasoning?: boolean | undefined;
        supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        longContextPricing?: {
            thresholdTokens: number;
            inputPriceMultiplier?: number | undefined;
            outputPriceMultiplier?: number | undefined;
            cacheWritesPriceMultiplier?: number | undefined;
            cacheReadsPriceMultiplier?: number | undefined;
            appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
        } | undefined;
        description?: string | undefined;
        reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        minTokensPerCachePoint?: number | undefined;
        maxCachePoints?: number | undefined;
        cachableFields?: string[] | undefined;
        deprecated?: boolean | undefined;
        isStealthModel?: boolean | undefined;
        isFree?: boolean | undefined;
        excludedTools?: string[] | undefined;
        includedTools?: string[] | undefined;
        tiers?: {
            contextWindow: number;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            name?: "default" | "flex" | "priority" | undefined;
        }[] | undefined;
    } | null | undefined;
    openAiUseAzure?: boolean | undefined;
    azureApiVersion?: string | undefined;
    openAiStreamingEnabled?: boolean | undefined;
    openAiHostHeader?: string | undefined;
    openAiHeaders?: Record<string, string> | undefined;
    ollamaModelId?: string | undefined;
    ollamaBaseUrl?: string | undefined;
    ollamaApiKey?: string | undefined;
    ollamaNumCtx?: number | undefined;
    vsCodeLmModelSelector?: {
        id?: string | undefined;
        family?: string | undefined;
        version?: string | undefined;
        vendor?: string | undefined;
    } | undefined;
    lmStudioModelId?: string | undefined;
    lmStudioBaseUrl?: string | undefined;
    lmStudioDraftModelId?: string | undefined;
    lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
    geminiApiKey?: string | undefined;
    googleGeminiBaseUrl?: string | undefined;
    geminiCliOAuthPath?: string | undefined;
    geminiCliProjectId?: string | undefined;
    openAiNativeApiKey?: string | undefined;
    openAiNativeBaseUrl?: string | undefined;
    openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
    mistralApiKey?: string | undefined;
    mistralCodestralUrl?: string | undefined;
    deepSeekBaseUrl?: string | undefined;
    deepSeekApiKey?: string | undefined;
    poeApiKey?: string | undefined;
    poeBaseUrl?: string | undefined;
    moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
    moonshotApiKey?: string | undefined;
    minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
    minimaxApiKey?: string | undefined;
    mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
    mimoApiKey?: string | undefined;
    requestyBaseUrl?: string | undefined;
    requestyApiKey?: string | undefined;
    requestyModelId?: string | undefined;
    unboundApiKey?: string | undefined;
    unboundModelId?: string | undefined;
    fakeAi?: unknown;
    xaiApiKey?: string | undefined;
    basetenApiKey?: string | undefined;
    litellmBaseUrl?: string | undefined;
    litellmApiKey?: string | undefined;
    litellmModelId?: string | undefined;
    litellmUsePromptCache?: boolean | undefined;
    sambaNovaApiKey?: string | undefined;
    zaiApiKey?: string | undefined;
    zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
    fireworksApiKey?: string | undefined;
    qwenCodeOauthPath?: string | undefined;
    rooApiKey?: string | undefined;
    vercelAiGatewayApiKey?: string | undefined;
    vercelAiGatewayModelId?: string | undefined;
    mode?: string | undefined;
    errorCode?: Record<string, Record<string, string>> | undefined;
    customInstructions?: string | undefined;
    customModes?: {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }[] | undefined;
    debug?: boolean | undefined;
    currentApiConfigName?: string | undefined;
    listApiConfigMeta?: {
        id: string;
        name: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        modelId?: string | undefined;
    }[] | undefined;
    pinnedApiConfigs?: Record<string, boolean> | undefined;
    autoCleanup?: {
        enabled?: boolean | undefined;
        strategy?: CleanupStrategy | undefined;
        retentionDays?: number | undefined;
        maxHistoryCount?: number | undefined;
        excludeActive?: boolean | undefined;
        cleanupOnStartup?: boolean | undefined;
    } | undefined;
    lastShownAnnouncementId?: string | undefined;
    taskHistory?: {
        number: number;
        ts: number;
        totalCost: number;
        id: string;
        task: string;
        tokensIn: number;
        tokensOut: number;
        status?: "active" | "completed" | "delegated" | undefined;
        rootTaskId?: string | undefined;
        parentTaskId?: string | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        size?: number | undefined;
        workspace?: string | undefined;
        mode?: string | undefined;
        apiConfigName?: string | undefined;
        delegatedToId?: string | undefined;
        childIds?: string[] | undefined;
        awaitingChildId?: string | undefined;
        completedByChildId?: string | undefined;
        completionResultSummary?: string | undefined;
    }[] | undefined;
    dismissedUpsells?: string[] | undefined;
    clickedOnceNotices?: number[] | undefined;
    imageGenerationProvider?: "openrouter" | "roo" | undefined;
    openRouterImageApiKey?: string | undefined;
    openRouterImageGenerationSelectedModel?: string | undefined;
    customCondensingPrompt?: string | undefined;
    costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
    autoApprovalEnabled?: boolean | undefined;
    alwaysAllowReadOnly?: boolean | undefined;
    alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
    alwaysAllowWrite?: boolean | undefined;
    alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
    alwaysAllowWriteProtected?: boolean | undefined;
    writeDelayMs?: number | undefined;
    requestDelaySeconds?: number | undefined;
    alwaysAllowMcp?: boolean | undefined;
    alwaysAllowModeSwitch?: boolean | undefined;
    alwaysAllowSubtasks?: boolean | undefined;
    alwaysAllowExecute?: boolean | undefined;
    alwaysAllowFollowupQuestions?: boolean | undefined;
    followupAutoApproveTimeoutMs?: number | undefined;
    allowedCommands?: string[] | undefined;
    deniedCommands?: string[] | undefined;
    commandExecutionTimeout?: number | undefined;
    commandTimeoutAllowlist?: string[] | undefined;
    preventCompletionWithOpenTodos?: boolean | undefined;
    allowedMaxRequests?: number | null | undefined;
    allowedMaxCost?: number | null | undefined;
    autoCondenseContext?: boolean | undefined;
    autoCondenseContextPercent?: number | undefined;
    includeCurrentTime?: boolean | undefined;
    includeCurrentCost?: boolean | undefined;
    maxGitStatusFiles?: number | undefined;
    includeDiagnosticMessages?: boolean | undefined;
    maxDiagnosticMessages?: number | undefined;
    customStoragePath?: string | undefined;
    enableCheckpoints?: boolean | undefined;
    checkpointTimeout?: number | undefined;
    ttsEnabled?: boolean | undefined;
    ttsSpeed?: number | undefined;
    soundEnabled?: boolean | undefined;
    soundVolume?: number | undefined;
    maxOpenTabsContext?: number | undefined;
    maxWorkspaceFiles?: number | undefined;
    showRooIgnoredFiles?: boolean | undefined;
    enableSubfolderRules?: boolean | undefined;
    maxImageFileSize?: number | undefined;
    maxTotalImageSize?: number | undefined;
    terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
    terminalShellIntegrationTimeout?: number | undefined;
    terminalShellIntegrationDisabled?: boolean | undefined;
    terminalCommandDelay?: number | undefined;
    terminalPowershellCounter?: boolean | undefined;
    terminalZshClearEolMark?: boolean | undefined;
    terminalZshOhMy?: boolean | undefined;
    terminalZshP10k?: boolean | undefined;
    terminalZdotdir?: boolean | undefined;
    execaShellPath?: string | undefined;
    diagnosticsEnabled?: boolean | undefined;
    experiments?: {
        preventFocusDisruption?: boolean | undefined;
        imageGeneration?: boolean | undefined;
        runSlashCommand?: boolean | undefined;
        customTools?: boolean | undefined;
        chatSearch?: boolean | undefined;
        commitReview?: boolean | undefined;
        useKPTtree?: boolean | undefined;
        useLitePrompts?: boolean | undefined;
        smartMistakeDetection?: boolean | undefined;
    } | undefined;
    experimentSettings?: {
        smartMistakeDetectionConfig?: {
            autoSwitchModel?: boolean | undefined;
        } | undefined;
    } | undefined;
    codebaseIndexModels?: {
        openai?: Record<string, {
            dimension: number;
        }> | undefined;
        ollama?: Record<string, {
            dimension: number;
        }> | undefined;
        "openai-compatible"?: Record<string, {
            dimension: number;
        }> | undefined;
        gemini?: Record<string, {
            dimension: number;
        }> | undefined;
        mistral?: Record<string, {
            dimension: number;
        }> | undefined;
        "vercel-ai-gateway"?: Record<string, {
            dimension: number;
        }> | undefined;
        bedrock?: Record<string, {
            dimension: number;
        }> | undefined;
        openrouter?: Record<string, {
            dimension: number;
        }> | undefined;
    } | undefined;
    codebaseIndexConfig?: {
        codebaseIndexEnabled?: boolean | undefined;
        codebaseIndexQdrantUrl?: string | undefined;
        codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
        codebaseIndexEmbedderBaseUrl?: string | undefined;
        codebaseIndexEmbedderModelId?: string | undefined;
        codebaseIndexEmbedderModelDimension?: number | undefined;
        codebaseIndexSearchMinScore?: number | undefined;
        codebaseIndexSearchMaxResults?: number | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codebaseIndexBedrockRegion?: string | undefined;
        codebaseIndexBedrockProfile?: string | undefined;
        codebaseIndexOpenRouterSpecificProvider?: string | undefined;
    } | undefined;
    telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
    mcpEnabled?: boolean | undefined;
    prevMode?: string | undefined;
    modeApiConfigs?: Record<string, string> | undefined;
    customModePrompts?: Record<string, {
        description?: string | undefined;
        roleDefinition?: string | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
    } | undefined> | undefined;
    customSupportPrompts?: Record<string, string | undefined> | undefined;
    enhancementApiConfigId?: string | undefined;
    includeTaskHistoryInEnhance?: boolean | undefined;
    historyPreviewCollapsed?: boolean | undefined;
    reasoningBlockCollapsed?: boolean | undefined;
    showSpeedInfo?: boolean | undefined;
    automaticallyFocus?: boolean | undefined;
    collapseMarkdownWithoutScroll?: boolean | undefined;
    enterBehavior?: "send" | "newline" | undefined;
    profileThresholds?: Record<string, number> | undefined;
    hasOpenedModeSelector?: boolean | undefined;
    hasClosedCodeReviewWelcomeTips?: boolean | undefined;
    lastModeExportPath?: string | undefined;
    lastModeImportPath?: string | undefined;
    lastSettingsExportPath?: string | undefined;
    lastTaskExportPath?: string | undefined;
    lastImageSavePath?: string | undefined;
    worktreeAutoOpenPath?: string | undefined;
    showWorktreesInHomeScreen?: boolean | undefined;
    disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
}>;
type RooCodeSettings = GlobalSettings & ProviderSettings;
/**
 * SecretState
 */
declare const SECRET_STATE_KEYS: readonly ["costrictAccessToken", "costrictRefreshToken", "costrictState", "apiKey", "openRouterApiKey", "awsAccessKey", "awsApiKey", "awsSecretKey", "awsSessionToken", "openAiApiKey", "ollamaApiKey", "geminiApiKey", "openAiNativeApiKey", "deepSeekApiKey", "moonshotApiKey", "mistralApiKey", "minimaxApiKey", "requestyApiKey", "unboundApiKey", "xaiApiKey", "litellmApiKey", "codeIndexOpenAiKey", "codeIndexQdrantApiKey", "codebaseIndexOpenAiCompatibleApiKey", "codebaseIndexGeminiApiKey", "codebaseIndexMistralApiKey", "codebaseIndexVercelAiGatewayApiKey", "codebaseIndexOpenRouterApiKey", "sambaNovaApiKey", "zaiApiKey", "fireworksApiKey", "vercelAiGatewayApiKey", "basetenApiKey", "mimoApiKey"];
declare const GLOBAL_SECRET_KEYS: readonly ["openRouterImageApiKey"];
type ProviderSecretKey = (typeof SECRET_STATE_KEYS)[number];
type GlobalSecretKey = (typeof GLOBAL_SECRET_KEYS)[number];
type SecretState = Pick<ProviderSettings, Extract<ProviderSecretKey, keyof ProviderSettings>> & {
    [K in GlobalSecretKey]?: string;
};
declare const isSecretStateKey: (key: string) => key is Keys<SecretState>;
/**
 * GlobalState
 */
type GlobalState = Omit<RooCodeSettings, Keys<SecretState>>;
declare const GLOBAL_STATE_KEYS: Keys<GlobalState>[];
declare const isGlobalStateKey: (key: string) => key is Keys<GlobalState>;
/**
 * Evals
 */
declare const EVALS_SETTINGS: RooCodeSettings;
declare const EVALS_TIMEOUT: number;

/**
 * IpcMessageType
 */
declare enum IpcMessageType {
    Connect = "Connect",
    Disconnect = "Disconnect",
    Ack = "Ack",
    TaskCommand = "TaskCommand",
    TaskEvent = "TaskEvent"
}
/**
 * IpcOrigin
 */
declare enum IpcOrigin {
    Client = "client",
    Server = "server"
}
/**
 * Ack
 */
declare const ackSchema: z.ZodObject<{
    clientId: z.ZodString;
    pid: z.ZodNumber;
    ppid: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    clientId: string;
    pid: number;
    ppid: number;
}, {
    clientId: string;
    pid: number;
    ppid: number;
}>;
type Ack = z.infer<typeof ackSchema>;
/**
 * TaskCommandName
 */
declare enum TaskCommandName {
    StartNewTask = "StartNewTask",
    CancelTask = "CancelTask",
    CloseTask = "CloseTask",
    ResumeTask = "ResumeTask",
    SendMessage = "SendMessage",
    GetCommands = "GetCommands",
    GetModes = "GetModes",
    GetModels = "GetModels",
    DeleteQueuedMessage = "DeleteQueuedMessage"
}
/**
 * TaskCommand
 */
declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodObject<{
    commandName: z.ZodLiteral<TaskCommandName.StartNewTask>;
    data: z.ZodObject<{
        configuration: z.ZodObject<{
            codeIndexOpenAiKey: z.ZodOptional<z.ZodString>;
            codeIndexQdrantApiKey: z.ZodOptional<z.ZodString>;
            codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
            codebaseIndexOpenAiCompatibleApiKey: z.ZodOptional<z.ZodString>;
            codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
            codebaseIndexGeminiApiKey: z.ZodOptional<z.ZodString>;
            codebaseIndexMistralApiKey: z.ZodOptional<z.ZodString>;
            codebaseIndexVercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
            codebaseIndexOpenRouterApiKey: z.ZodOptional<z.ZodString>;
            includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
            todoListEnabled: z.ZodOptional<z.ZodBoolean>;
            modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
            enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
            reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
            modelMaxTokens: z.ZodOptional<z.ZodNumber>;
            modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
            verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
            vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
            vercelAiGatewayModelId: z.ZodOptional<z.ZodString>;
            apiModelId: z.ZodOptional<z.ZodString>;
            rooApiKey: z.ZodOptional<z.ZodString>;
            qwenCodeOauthPath: z.ZodOptional<z.ZodString>;
            fireworksApiKey: z.ZodOptional<z.ZodString>;
            zaiApiKey: z.ZodOptional<z.ZodString>;
            zaiApiLine: z.ZodOptional<z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>>;
            sambaNovaApiKey: z.ZodOptional<z.ZodString>;
            litellmBaseUrl: z.ZodOptional<z.ZodString>;
            litellmApiKey: z.ZodOptional<z.ZodString>;
            litellmModelId: z.ZodOptional<z.ZodString>;
            litellmUsePromptCache: z.ZodOptional<z.ZodBoolean>;
            basetenApiKey: z.ZodOptional<z.ZodString>;
            xaiApiKey: z.ZodOptional<z.ZodString>;
            fakeAi: z.ZodOptional<z.ZodUnknown>;
            unboundApiKey: z.ZodOptional<z.ZodString>;
            unboundModelId: z.ZodOptional<z.ZodString>;
            requestyBaseUrl: z.ZodOptional<z.ZodString>;
            requestyApiKey: z.ZodOptional<z.ZodString>;
            requestyModelId: z.ZodOptional<z.ZodString>;
            mimoBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-cn.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-sgp.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-ams.xiaomimimo.com/v1">]>>;
            mimoApiKey: z.ZodOptional<z.ZodString>;
            minimaxBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.minimax.io/v1">, z.ZodLiteral<"https://api.minimaxi.com/v1">]>>;
            minimaxApiKey: z.ZodOptional<z.ZodString>;
            moonshotBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.moonshot.ai/v1">, z.ZodLiteral<"https://api.moonshot.cn/v1">]>>;
            moonshotApiKey: z.ZodOptional<z.ZodString>;
            poeApiKey: z.ZodOptional<z.ZodString>;
            poeBaseUrl: z.ZodOptional<z.ZodString>;
            deepSeekBaseUrl: z.ZodOptional<z.ZodString>;
            deepSeekApiKey: z.ZodOptional<z.ZodString>;
            mistralApiKey: z.ZodOptional<z.ZodString>;
            mistralCodestralUrl: z.ZodOptional<z.ZodString>;
            openAiNativeApiKey: z.ZodOptional<z.ZodString>;
            openAiNativeBaseUrl: z.ZodOptional<z.ZodString>;
            openAiNativeServiceTier: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
            geminiCliOAuthPath: z.ZodOptional<z.ZodString>;
            geminiCliProjectId: z.ZodOptional<z.ZodString>;
            geminiApiKey: z.ZodOptional<z.ZodString>;
            googleGeminiBaseUrl: z.ZodOptional<z.ZodString>;
            lmStudioModelId: z.ZodOptional<z.ZodString>;
            lmStudioBaseUrl: z.ZodOptional<z.ZodString>;
            lmStudioDraftModelId: z.ZodOptional<z.ZodString>;
            lmStudioSpeculativeDecodingEnabled: z.ZodOptional<z.ZodBoolean>;
            vsCodeLmModelSelector: z.ZodOptional<z.ZodObject<{
                vendor: z.ZodOptional<z.ZodString>;
                family: z.ZodOptional<z.ZodString>;
                version: z.ZodOptional<z.ZodString>;
                id: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                id?: string | undefined;
                family?: string | undefined;
                version?: string | undefined;
                vendor?: string | undefined;
            }, {
                id?: string | undefined;
                family?: string | undefined;
                version?: string | undefined;
                vendor?: string | undefined;
            }>>;
            ollamaModelId: z.ZodOptional<z.ZodString>;
            ollamaBaseUrl: z.ZodOptional<z.ZodString>;
            ollamaApiKey: z.ZodOptional<z.ZodString>;
            ollamaNumCtx: z.ZodOptional<z.ZodNumber>;
            openAiBaseUrl: z.ZodOptional<z.ZodString>;
            openAiApiKey: z.ZodOptional<z.ZodString>;
            openAiR1FormatEnabled: z.ZodOptional<z.ZodBoolean>;
            openAiModelId: z.ZodOptional<z.ZodString>;
            openAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                contextWindow: z.ZodNumber;
                supportsImages: z.ZodOptional<z.ZodBoolean>;
                id: z.ZodOptional<z.ZodString>;
                maxTokensKey: z.ZodOptional<z.ZodString>;
                creditConsumption: z.ZodOptional<z.ZodNumber>;
                creditDiscount: z.ZodOptional<z.ZodNumber>;
                supportsPromptCache: z.ZodBoolean;
                promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
                supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
                supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
                supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
                supportsTemperature: z.ZodOptional<z.ZodBoolean>;
                defaultTemperature: z.ZodOptional<z.ZodNumber>;
                requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
                supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
                requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
                preserveReasoning: z.ZodOptional<z.ZodBoolean>;
                supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
                inputPrice: z.ZodOptional<z.ZodNumber>;
                outputPrice: z.ZodOptional<z.ZodNumber>;
                cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
                longContextPricing: z.ZodOptional<z.ZodObject<{
                    thresholdTokens: z.ZodNumber;
                    inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                    outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                    cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                    cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                    appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
                }, "strip", z.ZodTypeAny, {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                }, {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                }>>;
                description: z.ZodOptional<z.ZodString>;
                reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
                minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
                maxCachePoints: z.ZodOptional<z.ZodNumber>;
                cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                deprecated: z.ZodOptional<z.ZodBoolean>;
                isStealthModel: z.ZodOptional<z.ZodBoolean>;
                isFree: z.ZodOptional<z.ZodBoolean>;
                excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                    contextWindow: z.ZodNumber;
                    inputPrice: z.ZodOptional<z.ZodNumber>;
                    outputPrice: z.ZodOptional<z.ZodNumber>;
                    cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                    cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
                }, "strip", z.ZodTypeAny, {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }, {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }>, "many">>;
            }, "strip", z.ZodTypeAny, {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            }, {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            }>>>;
            openAiUseAzure: z.ZodOptional<z.ZodBoolean>;
            azureApiVersion: z.ZodOptional<z.ZodString>;
            openAiStreamingEnabled: z.ZodOptional<z.ZodBoolean>;
            openAiHostHeader: z.ZodOptional<z.ZodString>;
            openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
            vertexKeyFile: z.ZodOptional<z.ZodString>;
            vertexJsonCredentials: z.ZodOptional<z.ZodString>;
            vertexProjectId: z.ZodOptional<z.ZodString>;
            vertexRegion: z.ZodOptional<z.ZodString>;
            vertex1MContext: z.ZodOptional<z.ZodBoolean>;
            awsAccessKey: z.ZodOptional<z.ZodString>;
            awsSecretKey: z.ZodOptional<z.ZodString>;
            awsSessionToken: z.ZodOptional<z.ZodString>;
            awsRegion: z.ZodOptional<z.ZodString>;
            awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
            awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
            awsUsePromptCache: z.ZodOptional<z.ZodBoolean>;
            awsProfile: z.ZodOptional<z.ZodString>;
            awsUseProfile: z.ZodOptional<z.ZodBoolean>;
            awsApiKey: z.ZodOptional<z.ZodString>;
            awsUseApiKey: z.ZodOptional<z.ZodBoolean>;
            awsCustomArn: z.ZodOptional<z.ZodString>;
            awsModelContextWindow: z.ZodOptional<z.ZodNumber>;
            awsBedrockEndpointEnabled: z.ZodOptional<z.ZodBoolean>;
            awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
            awsBedrock1MContext: z.ZodOptional<z.ZodBoolean>;
            awsBedrockServiceTier: z.ZodOptional<z.ZodEnum<["STANDARD", "FLEX", "PRIORITY"]>>;
            openRouterApiKey: z.ZodOptional<z.ZodString>;
            openRouterModelId: z.ZodOptional<z.ZodString>;
            openRouterBaseUrl: z.ZodOptional<z.ZodString>;
            openRouterSpecificProvider: z.ZodOptional<z.ZodString>;
            apiKey: z.ZodOptional<z.ZodString>;
            anthropicBaseUrl: z.ZodOptional<z.ZodString>;
            anthropicUseAuthToken: z.ZodOptional<z.ZodBoolean>;
            anthropicBeta1MContext: z.ZodOptional<z.ZodBoolean>;
            costrictAccessToken: z.ZodOptional<z.ZodString>;
            costrictRefreshToken: z.ZodOptional<z.ZodString>;
            costrictState: z.ZodOptional<z.ZodString>;
            costrictBaseUrl: z.ZodOptional<z.ZodString>;
            costrictModelId: z.ZodOptional<z.ZodString>;
            costrictApiKeyUpdatedAt: z.ZodOptional<z.ZodString>;
            costrictApiKeyExpiredAt: z.ZodOptional<z.ZodString>;
            costrictAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                contextWindow: z.ZodNumber;
                supportsImages: z.ZodOptional<z.ZodBoolean>;
                id: z.ZodOptional<z.ZodString>;
                maxTokensKey: z.ZodOptional<z.ZodString>;
                creditConsumption: z.ZodOptional<z.ZodNumber>;
                creditDiscount: z.ZodOptional<z.ZodNumber>;
                supportsPromptCache: z.ZodBoolean;
                promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
                supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
                supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
                supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
                supportsTemperature: z.ZodOptional<z.ZodBoolean>;
                defaultTemperature: z.ZodOptional<z.ZodNumber>;
                requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
                supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
                requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
                preserveReasoning: z.ZodOptional<z.ZodBoolean>;
                supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
                inputPrice: z.ZodOptional<z.ZodNumber>;
                outputPrice: z.ZodOptional<z.ZodNumber>;
                cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
                longContextPricing: z.ZodOptional<z.ZodObject<{
                    thresholdTokens: z.ZodNumber;
                    inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                    outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                    cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                    cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                    appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
                }, "strip", z.ZodTypeAny, {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                }, {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                }>>;
                description: z.ZodOptional<z.ZodString>;
                reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
                minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
                maxCachePoints: z.ZodOptional<z.ZodNumber>;
                cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                deprecated: z.ZodOptional<z.ZodBoolean>;
                isStealthModel: z.ZodOptional<z.ZodBoolean>;
                isFree: z.ZodOptional<z.ZodBoolean>;
                excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                    contextWindow: z.ZodNumber;
                    inputPrice: z.ZodOptional<z.ZodNumber>;
                    outputPrice: z.ZodOptional<z.ZodNumber>;
                    cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                    cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
                }, "strip", z.ZodTypeAny, {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }, {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }>, "many">>;
            }, "strip", z.ZodTypeAny, {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            }, {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            }>>>;
            apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
        } & {
            currentApiConfigName: z.ZodOptional<z.ZodString>;
            listApiConfigMeta: z.ZodOptional<z.ZodArray<z.ZodObject<{
                id: z.ZodString;
                name: z.ZodString;
                apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
                modelId: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                id: string;
                name: string;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                modelId?: string | undefined;
            }, {
                id: string;
                name: string;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                modelId?: string | undefined;
            }>, "many">>;
            pinnedApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
            debug: z.ZodOptional<z.ZodBoolean>;
            autoCleanup: z.ZodOptional<z.ZodObject<{
                enabled: z.ZodOptional<z.ZodBoolean>;
                strategy: z.ZodOptional<z.ZodNativeEnum<typeof CleanupStrategy>>;
                retentionDays: z.ZodOptional<z.ZodNumber>;
                maxHistoryCount: z.ZodOptional<z.ZodNumber>;
                excludeActive: z.ZodOptional<z.ZodBoolean>;
                cleanupOnStartup: z.ZodOptional<z.ZodBoolean>;
            }, "strip", z.ZodTypeAny, {
                enabled?: boolean | undefined;
                strategy?: CleanupStrategy | undefined;
                retentionDays?: number | undefined;
                maxHistoryCount?: number | undefined;
                excludeActive?: boolean | undefined;
                cleanupOnStartup?: boolean | undefined;
            }, {
                enabled?: boolean | undefined;
                strategy?: CleanupStrategy | undefined;
                retentionDays?: number | undefined;
                maxHistoryCount?: number | undefined;
                excludeActive?: boolean | undefined;
                cleanupOnStartup?: boolean | undefined;
            }>>;
            lastShownAnnouncementId: z.ZodOptional<z.ZodString>;
            customInstructions: z.ZodOptional<z.ZodString>;
            taskHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
                id: z.ZodString;
                rootTaskId: z.ZodOptional<z.ZodString>;
                parentTaskId: z.ZodOptional<z.ZodString>;
                number: z.ZodNumber;
                ts: z.ZodNumber;
                task: z.ZodString;
                tokensIn: z.ZodNumber;
                tokensOut: z.ZodNumber;
                cacheWrites: z.ZodOptional<z.ZodNumber>;
                cacheReads: z.ZodOptional<z.ZodNumber>;
                totalCost: z.ZodNumber;
                size: z.ZodOptional<z.ZodNumber>;
                workspace: z.ZodOptional<z.ZodString>;
                mode: z.ZodOptional<z.ZodString>;
                apiConfigName: z.ZodOptional<z.ZodString>;
                status: z.ZodOptional<z.ZodEnum<["active", "completed", "delegated"]>>;
                delegatedToId: z.ZodOptional<z.ZodString>;
                childIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                awaitingChildId: z.ZodOptional<z.ZodString>;
                completedByChildId: z.ZodOptional<z.ZodString>;
                completionResultSummary: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                number: number;
                ts: number;
                totalCost: number;
                id: string;
                task: string;
                tokensIn: number;
                tokensOut: number;
                status?: "active" | "completed" | "delegated" | undefined;
                rootTaskId?: string | undefined;
                parentTaskId?: string | undefined;
                cacheWrites?: number | undefined;
                cacheReads?: number | undefined;
                size?: number | undefined;
                workspace?: string | undefined;
                mode?: string | undefined;
                apiConfigName?: string | undefined;
                delegatedToId?: string | undefined;
                childIds?: string[] | undefined;
                awaitingChildId?: string | undefined;
                completedByChildId?: string | undefined;
                completionResultSummary?: string | undefined;
            }, {
                number: number;
                ts: number;
                totalCost: number;
                id: string;
                task: string;
                tokensIn: number;
                tokensOut: number;
                status?: "active" | "completed" | "delegated" | undefined;
                rootTaskId?: string | undefined;
                parentTaskId?: string | undefined;
                cacheWrites?: number | undefined;
                cacheReads?: number | undefined;
                size?: number | undefined;
                workspace?: string | undefined;
                mode?: string | undefined;
                apiConfigName?: string | undefined;
                delegatedToId?: string | undefined;
                childIds?: string[] | undefined;
                awaitingChildId?: string | undefined;
                completedByChildId?: string | undefined;
                completionResultSummary?: string | undefined;
            }>, "many">>;
            dismissedUpsells: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            clickedOnceNotices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
            imageGenerationProvider: z.ZodOptional<z.ZodEnum<["openrouter", "roo"]>>;
            openRouterImageApiKey: z.ZodOptional<z.ZodString>;
            openRouterImageGenerationSelectedModel: z.ZodOptional<z.ZodString>;
            customCondensingPrompt: z.ZodOptional<z.ZodString>;
            useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
            costrictCodeMode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"vibe">, z.ZodLiteral<"strict">, z.ZodLiteral<"raw">, z.ZodLiteral<"plan">]>>;
            autoApprovalEnabled: z.ZodOptional<z.ZodBoolean>;
            alwaysAllowReadOnly: z.ZodOptional<z.ZodBoolean>;
            alwaysAllowReadOnlyOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
            alwaysAllowWrite: z.ZodOptional<z.ZodBoolean>;
            alwaysAllowWriteOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
            alwaysAllowWriteProtected: z.ZodOptional<z.ZodBoolean>;
            writeDelayMs: z.ZodOptional<z.ZodNumber>;
            requestDelaySeconds: z.ZodOptional<z.ZodNumber>;
            alwaysAllowMcp: z.ZodOptional<z.ZodBoolean>;
            alwaysAllowModeSwitch: z.ZodOptional<z.ZodBoolean>;
            alwaysAllowSubtasks: z.ZodOptional<z.ZodBoolean>;
            alwaysAllowExecute: z.ZodOptional<z.ZodBoolean>;
            alwaysAllowFollowupQuestions: z.ZodOptional<z.ZodBoolean>;
            followupAutoApproveTimeoutMs: z.ZodOptional<z.ZodNumber>;
            allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
            commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
            allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            allowedMaxCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
            autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
            includeCurrentTime: z.ZodOptional<z.ZodBoolean>;
            includeCurrentCost: z.ZodOptional<z.ZodBoolean>;
            maxGitStatusFiles: z.ZodOptional<z.ZodNumber>;
            includeDiagnosticMessages: z.ZodOptional<z.ZodBoolean>;
            maxDiagnosticMessages: z.ZodOptional<z.ZodNumber>;
            customStoragePath: z.ZodOptional<z.ZodString>;
            enableCheckpoints: z.ZodOptional<z.ZodBoolean>;
            checkpointTimeout: z.ZodOptional<z.ZodNumber>;
            ttsEnabled: z.ZodOptional<z.ZodBoolean>;
            ttsSpeed: z.ZodOptional<z.ZodNumber>;
            soundEnabled: z.ZodOptional<z.ZodBoolean>;
            soundVolume: z.ZodOptional<z.ZodNumber>;
            maxOpenTabsContext: z.ZodOptional<z.ZodNumber>;
            maxWorkspaceFiles: z.ZodOptional<z.ZodNumber>;
            showRooIgnoredFiles: z.ZodOptional<z.ZodBoolean>;
            enableSubfolderRules: z.ZodOptional<z.ZodBoolean>;
            maxImageFileSize: z.ZodOptional<z.ZodNumber>;
            maxTotalImageSize: z.ZodOptional<z.ZodNumber>;
            terminalOutputPreviewSize: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
            terminalShellIntegrationTimeout: z.ZodOptional<z.ZodNumber>;
            terminalShellIntegrationDisabled: z.ZodOptional<z.ZodBoolean>;
            terminalCommandDelay: z.ZodOptional<z.ZodNumber>;
            terminalPowershellCounter: z.ZodOptional<z.ZodBoolean>;
            terminalZshClearEolMark: z.ZodOptional<z.ZodBoolean>;
            terminalZshOhMy: z.ZodOptional<z.ZodBoolean>;
            terminalZshP10k: z.ZodOptional<z.ZodBoolean>;
            terminalZdotdir: z.ZodOptional<z.ZodBoolean>;
            execaShellPath: z.ZodOptional<z.ZodString>;
            diagnosticsEnabled: z.ZodOptional<z.ZodBoolean>;
            rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
            experiments: z.ZodOptional<z.ZodObject<{
                chatSearch: z.ZodOptional<z.ZodBoolean>;
                useKPTtree: z.ZodOptional<z.ZodBoolean>;
                commitReview: z.ZodOptional<z.ZodBoolean>;
                useLitePrompts: z.ZodOptional<z.ZodBoolean>;
                preventFocusDisruption: z.ZodOptional<z.ZodBoolean>;
                imageGeneration: z.ZodOptional<z.ZodBoolean>;
                runSlashCommand: z.ZodOptional<z.ZodBoolean>;
                customTools: z.ZodOptional<z.ZodBoolean>;
                smartMistakeDetection: z.ZodOptional<z.ZodBoolean>;
            }, "strip", z.ZodTypeAny, {
                preventFocusDisruption?: boolean | undefined;
                imageGeneration?: boolean | undefined;
                runSlashCommand?: boolean | undefined;
                customTools?: boolean | undefined;
                chatSearch?: boolean | undefined;
                commitReview?: boolean | undefined;
                useKPTtree?: boolean | undefined;
                useLitePrompts?: boolean | undefined;
                smartMistakeDetection?: boolean | undefined;
            }, {
                preventFocusDisruption?: boolean | undefined;
                imageGeneration?: boolean | undefined;
                runSlashCommand?: boolean | undefined;
                customTools?: boolean | undefined;
                chatSearch?: boolean | undefined;
                commitReview?: boolean | undefined;
                useKPTtree?: boolean | undefined;
                useLitePrompts?: boolean | undefined;
                smartMistakeDetection?: boolean | undefined;
            }>>;
            experimentSettings: z.ZodOptional<z.ZodObject<{
                smartMistakeDetectionConfig: z.ZodOptional<z.ZodObject<{
                    autoSwitchModel: z.ZodOptional<z.ZodBoolean>;
                }, "strip", z.ZodTypeAny, {
                    autoSwitchModel?: boolean | undefined;
                }, {
                    autoSwitchModel?: boolean | undefined;
                }>>;
            }, "strip", z.ZodTypeAny, {
                smartMistakeDetectionConfig?: {
                    autoSwitchModel?: boolean | undefined;
                } | undefined;
            }, {
                smartMistakeDetectionConfig?: {
                    autoSwitchModel?: boolean | undefined;
                } | undefined;
            }>>;
            codebaseIndexModels: z.ZodOptional<z.ZodObject<{
                openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                    dimension: z.ZodNumber;
                }, "strip", z.ZodTypeAny, {
                    dimension: number;
                }, {
                    dimension: number;
                }>>>;
                ollama: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                    dimension: z.ZodNumber;
                }, "strip", z.ZodTypeAny, {
                    dimension: number;
                }, {
                    dimension: number;
                }>>>;
                "openai-compatible": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                    dimension: z.ZodNumber;
                }, "strip", z.ZodTypeAny, {
                    dimension: number;
                }, {
                    dimension: number;
                }>>>;
                gemini: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                    dimension: z.ZodNumber;
                }, "strip", z.ZodTypeAny, {
                    dimension: number;
                }, {
                    dimension: number;
                }>>>;
                mistral: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                    dimension: z.ZodNumber;
                }, "strip", z.ZodTypeAny, {
                    dimension: number;
                }, {
                    dimension: number;
                }>>>;
                "vercel-ai-gateway": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                    dimension: z.ZodNumber;
                }, "strip", z.ZodTypeAny, {
                    dimension: number;
                }, {
                    dimension: number;
                }>>>;
                openrouter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                    dimension: z.ZodNumber;
                }, "strip", z.ZodTypeAny, {
                    dimension: number;
                }, {
                    dimension: number;
                }>>>;
                bedrock: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                    dimension: z.ZodNumber;
                }, "strip", z.ZodTypeAny, {
                    dimension: number;
                }, {
                    dimension: number;
                }>>>;
            }, "strip", z.ZodTypeAny, {
                openai?: Record<string, {
                    dimension: number;
                }> | undefined;
                ollama?: Record<string, {
                    dimension: number;
                }> | undefined;
                "openai-compatible"?: Record<string, {
                    dimension: number;
                }> | undefined;
                gemini?: Record<string, {
                    dimension: number;
                }> | undefined;
                mistral?: Record<string, {
                    dimension: number;
                }> | undefined;
                "vercel-ai-gateway"?: Record<string, {
                    dimension: number;
                }> | undefined;
                bedrock?: Record<string, {
                    dimension: number;
                }> | undefined;
                openrouter?: Record<string, {
                    dimension: number;
                }> | undefined;
            }, {
                openai?: Record<string, {
                    dimension: number;
                }> | undefined;
                ollama?: Record<string, {
                    dimension: number;
                }> | undefined;
                "openai-compatible"?: Record<string, {
                    dimension: number;
                }> | undefined;
                gemini?: Record<string, {
                    dimension: number;
                }> | undefined;
                mistral?: Record<string, {
                    dimension: number;
                }> | undefined;
                "vercel-ai-gateway"?: Record<string, {
                    dimension: number;
                }> | undefined;
                bedrock?: Record<string, {
                    dimension: number;
                }> | undefined;
                openrouter?: Record<string, {
                    dimension: number;
                }> | undefined;
            }>>;
            codebaseIndexConfig: z.ZodOptional<z.ZodObject<{
                codebaseIndexEnabled: z.ZodOptional<z.ZodBoolean>;
                codebaseIndexQdrantUrl: z.ZodOptional<z.ZodString>;
                codebaseIndexEmbedderProvider: z.ZodOptional<z.ZodEnum<["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway", "bedrock", "openrouter"]>>;
                codebaseIndexEmbedderBaseUrl: z.ZodOptional<z.ZodString>;
                codebaseIndexEmbedderModelId: z.ZodOptional<z.ZodString>;
                codebaseIndexEmbedderModelDimension: z.ZodOptional<z.ZodNumber>;
                codebaseIndexSearchMinScore: z.ZodOptional<z.ZodNumber>;
                codebaseIndexSearchMaxResults: z.ZodOptional<z.ZodNumber>;
                codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
                codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
                codebaseIndexBedrockRegion: z.ZodOptional<z.ZodString>;
                codebaseIndexBedrockProfile: z.ZodOptional<z.ZodString>;
                codebaseIndexOpenRouterSpecificProvider: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                codebaseIndexEnabled?: boolean | undefined;
                codebaseIndexQdrantUrl?: string | undefined;
                codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                codebaseIndexEmbedderBaseUrl?: string | undefined;
                codebaseIndexEmbedderModelId?: string | undefined;
                codebaseIndexEmbedderModelDimension?: number | undefined;
                codebaseIndexSearchMinScore?: number | undefined;
                codebaseIndexSearchMaxResults?: number | undefined;
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codebaseIndexBedrockRegion?: string | undefined;
                codebaseIndexBedrockProfile?: string | undefined;
                codebaseIndexOpenRouterSpecificProvider?: string | undefined;
            }, {
                codebaseIndexEnabled?: boolean | undefined;
                codebaseIndexQdrantUrl?: string | undefined;
                codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                codebaseIndexEmbedderBaseUrl?: string | undefined;
                codebaseIndexEmbedderModelId?: string | undefined;
                codebaseIndexEmbedderModelDimension?: number | undefined;
                codebaseIndexSearchMinScore?: number | undefined;
                codebaseIndexSearchMaxResults?: number | undefined;
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codebaseIndexBedrockRegion?: string | undefined;
                codebaseIndexBedrockProfile?: string | undefined;
                codebaseIndexOpenRouterSpecificProvider?: string | undefined;
            }>>;
            language: z.ZodOptional<z.ZodEnum<["ca", "de", "en", "es", "fr", "hi", "id", "it", "ja", "ko", "nl", "pl", "pt-BR", "ru", "tr", "vi", "zh-CN", "zh-TW"]>>;
            telemetrySetting: z.ZodOptional<z.ZodEnum<["unset", "enabled", "disabled"]>>;
            mcpEnabled: z.ZodOptional<z.ZodBoolean>;
            mode: z.ZodOptional<z.ZodString>;
            prevMode: z.ZodOptional<z.ZodString>;
            modeApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
            customModes: z.ZodOptional<z.ZodArray<z.ZodObject<{
                slug: z.ZodString;
                name: z.ZodString;
                roleDefinition: z.ZodString;
                whenToUse: z.ZodOptional<z.ZodString>;
                description: z.ZodOptional<z.ZodString>;
                customInstructions: z.ZodOptional<z.ZodString>;
                groups: z.ZodType<("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                    description?: string | undefined;
                    fileRegex?: string | undefined;
                }])[], z.ZodTypeDef, ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                    description?: string | undefined;
                    fileRegex?: string | undefined;
                }])[]>;
                overrideSystemPrompt: z.ZodOptional<z.ZodBoolean>;
                source: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
                costrictCodeModeGroup: z.ZodOptional<z.ZodDefault<z.ZodString>>;
                apiProvider: z.ZodOptional<z.ZodString>;
                subagents: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
                pure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
                disableSwitchMode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
                taskMode: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                slug: string;
                roleDefinition: string;
                groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                    description?: string | undefined;
                    fileRegex?: string | undefined;
                }])[];
                description?: string | undefined;
                apiProvider?: string | undefined;
                source?: "global" | "project" | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
                overrideSystemPrompt?: boolean | undefined;
                costrictCodeModeGroup?: string | undefined;
                subagents?: string[] | undefined;
                pure?: boolean | undefined;
                disableSwitchMode?: boolean | undefined;
                taskMode?: string | undefined;
            }, {
                name: string;
                slug: string;
                roleDefinition: string;
                groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                    description?: string | undefined;
                    fileRegex?: string | undefined;
                }])[];
                description?: string | undefined;
                apiProvider?: string | undefined;
                source?: "global" | "project" | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
                overrideSystemPrompt?: boolean | undefined;
                costrictCodeModeGroup?: string | undefined;
                subagents?: string[] | undefined;
                pure?: boolean | undefined;
                disableSwitchMode?: boolean | undefined;
                taskMode?: string | undefined;
            }>, "many">>;
            customModePrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
                roleDefinition: z.ZodOptional<z.ZodString>;
                whenToUse: z.ZodOptional<z.ZodString>;
                description: z.ZodOptional<z.ZodString>;
                customInstructions: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                description?: string | undefined;
                roleDefinition?: string | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
            }, {
                description?: string | undefined;
                roleDefinition?: string | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
            }>>>>;
            customSupportPrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
            enhancementApiConfigId: z.ZodOptional<z.ZodString>;
            includeTaskHistoryInEnhance: z.ZodOptional<z.ZodBoolean>;
            historyPreviewCollapsed: z.ZodOptional<z.ZodBoolean>;
            reasoningBlockCollapsed: z.ZodOptional<z.ZodBoolean>;
            showSpeedInfo: z.ZodOptional<z.ZodBoolean>;
            automaticallyFocus: z.ZodOptional<z.ZodBoolean>;
            collapseMarkdownWithoutScroll: z.ZodOptional<z.ZodBoolean>;
            enterBehavior: z.ZodOptional<z.ZodEnum<["send", "newline"]>>;
            profileThresholds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
            hasOpenedModeSelector: z.ZodOptional<z.ZodBoolean>;
            hasClosedCodeReviewWelcomeTips: z.ZodOptional<z.ZodBoolean>;
            lastModeExportPath: z.ZodOptional<z.ZodString>;
            lastModeImportPath: z.ZodOptional<z.ZodString>;
            lastSettingsExportPath: z.ZodOptional<z.ZodString>;
            lastTaskExportPath: z.ZodOptional<z.ZodString>;
            lastImageSavePath: z.ZodOptional<z.ZodString>;
            errorCode: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
            worktreeAutoOpenPath: z.ZodOptional<z.ZodString>;
            showWorktreesInHomeScreen: z.ZodOptional<z.ZodBoolean>;
            disabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, "many">>;
        }, "strip", z.ZodTypeAny, {
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codeIndexOpenAiKey?: string | undefined;
            codeIndexQdrantApiKey?: string | undefined;
            codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
            codebaseIndexGeminiApiKey?: string | undefined;
            codebaseIndexMistralApiKey?: string | undefined;
            codebaseIndexVercelAiGatewayApiKey?: string | undefined;
            codebaseIndexOpenRouterApiKey?: string | undefined;
            reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            includeMaxTokens?: boolean | undefined;
            todoListEnabled?: boolean | undefined;
            modelTemperature?: number | null | undefined;
            rateLimitSeconds?: number | undefined;
            consecutiveMistakeLimit?: number | undefined;
            enableReasoningEffort?: boolean | undefined;
            modelMaxTokens?: number | undefined;
            modelMaxThinkingTokens?: number | undefined;
            verbosity?: "low" | "medium" | "high" | undefined;
            apiModelId?: string | undefined;
            costrictAccessToken?: string | undefined;
            costrictRefreshToken?: string | undefined;
            costrictState?: string | undefined;
            costrictBaseUrl?: string | undefined;
            costrictModelId?: string | undefined;
            costrictApiKeyUpdatedAt?: string | undefined;
            costrictApiKeyExpiredAt?: string | undefined;
            useCostrictCustomConfig?: boolean | undefined;
            costrictAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            apiKey?: string | undefined;
            anthropicBaseUrl?: string | undefined;
            anthropicUseAuthToken?: boolean | undefined;
            anthropicBeta1MContext?: boolean | undefined;
            openRouterApiKey?: string | undefined;
            openRouterModelId?: string | undefined;
            openRouterBaseUrl?: string | undefined;
            openRouterSpecificProvider?: string | undefined;
            awsAccessKey?: string | undefined;
            awsSecretKey?: string | undefined;
            awsSessionToken?: string | undefined;
            awsRegion?: string | undefined;
            awsUseCrossRegionInference?: boolean | undefined;
            awsUseGlobalInference?: boolean | undefined;
            awsUsePromptCache?: boolean | undefined;
            awsProfile?: string | undefined;
            awsUseProfile?: boolean | undefined;
            awsApiKey?: string | undefined;
            awsUseApiKey?: boolean | undefined;
            awsCustomArn?: string | undefined;
            awsModelContextWindow?: number | undefined;
            awsBedrockEndpointEnabled?: boolean | undefined;
            awsBedrockEndpoint?: string | undefined;
            awsBedrock1MContext?: boolean | undefined;
            awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
            vertexKeyFile?: string | undefined;
            vertexJsonCredentials?: string | undefined;
            vertexProjectId?: string | undefined;
            vertexRegion?: string | undefined;
            vertex1MContext?: boolean | undefined;
            openAiBaseUrl?: string | undefined;
            openAiApiKey?: string | undefined;
            openAiR1FormatEnabled?: boolean | undefined;
            openAiModelId?: string | undefined;
            openAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            openAiUseAzure?: boolean | undefined;
            azureApiVersion?: string | undefined;
            openAiStreamingEnabled?: boolean | undefined;
            openAiHostHeader?: string | undefined;
            openAiHeaders?: Record<string, string> | undefined;
            ollamaModelId?: string | undefined;
            ollamaBaseUrl?: string | undefined;
            ollamaApiKey?: string | undefined;
            ollamaNumCtx?: number | undefined;
            vsCodeLmModelSelector?: {
                id?: string | undefined;
                family?: string | undefined;
                version?: string | undefined;
                vendor?: string | undefined;
            } | undefined;
            lmStudioModelId?: string | undefined;
            lmStudioBaseUrl?: string | undefined;
            lmStudioDraftModelId?: string | undefined;
            lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
            geminiApiKey?: string | undefined;
            googleGeminiBaseUrl?: string | undefined;
            geminiCliOAuthPath?: string | undefined;
            geminiCliProjectId?: string | undefined;
            openAiNativeApiKey?: string | undefined;
            openAiNativeBaseUrl?: string | undefined;
            openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
            mistralApiKey?: string | undefined;
            mistralCodestralUrl?: string | undefined;
            deepSeekBaseUrl?: string | undefined;
            deepSeekApiKey?: string | undefined;
            poeApiKey?: string | undefined;
            poeBaseUrl?: string | undefined;
            moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
            moonshotApiKey?: string | undefined;
            minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
            minimaxApiKey?: string | undefined;
            mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
            mimoApiKey?: string | undefined;
            requestyBaseUrl?: string | undefined;
            requestyApiKey?: string | undefined;
            requestyModelId?: string | undefined;
            unboundApiKey?: string | undefined;
            unboundModelId?: string | undefined;
            fakeAi?: unknown;
            xaiApiKey?: string | undefined;
            basetenApiKey?: string | undefined;
            litellmBaseUrl?: string | undefined;
            litellmApiKey?: string | undefined;
            litellmModelId?: string | undefined;
            litellmUsePromptCache?: boolean | undefined;
            sambaNovaApiKey?: string | undefined;
            zaiApiKey?: string | undefined;
            zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
            fireworksApiKey?: string | undefined;
            qwenCodeOauthPath?: string | undefined;
            rooApiKey?: string | undefined;
            vercelAiGatewayApiKey?: string | undefined;
            vercelAiGatewayModelId?: string | undefined;
            mode?: string | undefined;
            errorCode?: Record<string, Record<string, string>> | undefined;
            customInstructions?: string | undefined;
            customModes?: {
                name: string;
                slug: string;
                roleDefinition: string;
                groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                    description?: string | undefined;
                    fileRegex?: string | undefined;
                }])[];
                description?: string | undefined;
                apiProvider?: string | undefined;
                source?: "global" | "project" | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
                overrideSystemPrompt?: boolean | undefined;
                costrictCodeModeGroup?: string | undefined;
                subagents?: string[] | undefined;
                pure?: boolean | undefined;
                disableSwitchMode?: boolean | undefined;
                taskMode?: string | undefined;
            }[] | undefined;
            debug?: boolean | undefined;
            currentApiConfigName?: string | undefined;
            listApiConfigMeta?: {
                id: string;
                name: string;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                modelId?: string | undefined;
            }[] | undefined;
            pinnedApiConfigs?: Record<string, boolean> | undefined;
            autoCleanup?: {
                enabled?: boolean | undefined;
                strategy?: CleanupStrategy | undefined;
                retentionDays?: number | undefined;
                maxHistoryCount?: number | undefined;
                excludeActive?: boolean | undefined;
                cleanupOnStartup?: boolean | undefined;
            } | undefined;
            lastShownAnnouncementId?: string | undefined;
            taskHistory?: {
                number: number;
                ts: number;
                totalCost: number;
                id: string;
                task: string;
                tokensIn: number;
                tokensOut: number;
                status?: "active" | "completed" | "delegated" | undefined;
                rootTaskId?: string | undefined;
                parentTaskId?: string | undefined;
                cacheWrites?: number | undefined;
                cacheReads?: number | undefined;
                size?: number | undefined;
                workspace?: string | undefined;
                mode?: string | undefined;
                apiConfigName?: string | undefined;
                delegatedToId?: string | undefined;
                childIds?: string[] | undefined;
                awaitingChildId?: string | undefined;
                completedByChildId?: string | undefined;
                completionResultSummary?: string | undefined;
            }[] | undefined;
            dismissedUpsells?: string[] | undefined;
            clickedOnceNotices?: number[] | undefined;
            imageGenerationProvider?: "openrouter" | "roo" | undefined;
            openRouterImageApiKey?: string | undefined;
            openRouterImageGenerationSelectedModel?: string | undefined;
            customCondensingPrompt?: string | undefined;
            costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
            autoApprovalEnabled?: boolean | undefined;
            alwaysAllowReadOnly?: boolean | undefined;
            alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
            alwaysAllowWrite?: boolean | undefined;
            alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
            alwaysAllowWriteProtected?: boolean | undefined;
            writeDelayMs?: number | undefined;
            requestDelaySeconds?: number | undefined;
            alwaysAllowMcp?: boolean | undefined;
            alwaysAllowModeSwitch?: boolean | undefined;
            alwaysAllowSubtasks?: boolean | undefined;
            alwaysAllowExecute?: boolean | undefined;
            alwaysAllowFollowupQuestions?: boolean | undefined;
            followupAutoApproveTimeoutMs?: number | undefined;
            allowedCommands?: string[] | undefined;
            deniedCommands?: string[] | undefined;
            commandExecutionTimeout?: number | undefined;
            commandTimeoutAllowlist?: string[] | undefined;
            preventCompletionWithOpenTodos?: boolean | undefined;
            allowedMaxRequests?: number | null | undefined;
            allowedMaxCost?: number | null | undefined;
            autoCondenseContext?: boolean | undefined;
            autoCondenseContextPercent?: number | undefined;
            includeCurrentTime?: boolean | undefined;
            includeCurrentCost?: boolean | undefined;
            maxGitStatusFiles?: number | undefined;
            includeDiagnosticMessages?: boolean | undefined;
            maxDiagnosticMessages?: number | undefined;
            customStoragePath?: string | undefined;
            enableCheckpoints?: boolean | undefined;
            checkpointTimeout?: number | undefined;
            ttsEnabled?: boolean | undefined;
            ttsSpeed?: number | undefined;
            soundEnabled?: boolean | undefined;
            soundVolume?: number | undefined;
            maxOpenTabsContext?: number | undefined;
            maxWorkspaceFiles?: number | undefined;
            showRooIgnoredFiles?: boolean | undefined;
            enableSubfolderRules?: boolean | undefined;
            maxImageFileSize?: number | undefined;
            maxTotalImageSize?: number | undefined;
            terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
            terminalShellIntegrationTimeout?: number | undefined;
            terminalShellIntegrationDisabled?: boolean | undefined;
            terminalCommandDelay?: number | undefined;
            terminalPowershellCounter?: boolean | undefined;
            terminalZshClearEolMark?: boolean | undefined;
            terminalZshOhMy?: boolean | undefined;
            terminalZshP10k?: boolean | undefined;
            terminalZdotdir?: boolean | undefined;
            execaShellPath?: string | undefined;
            diagnosticsEnabled?: boolean | undefined;
            experiments?: {
                preventFocusDisruption?: boolean | undefined;
                imageGeneration?: boolean | undefined;
                runSlashCommand?: boolean | undefined;
                customTools?: boolean | undefined;
                chatSearch?: boolean | undefined;
                commitReview?: boolean | undefined;
                useKPTtree?: boolean | undefined;
                useLitePrompts?: boolean | undefined;
                smartMistakeDetection?: boolean | undefined;
            } | undefined;
            experimentSettings?: {
                smartMistakeDetectionConfig?: {
                    autoSwitchModel?: boolean | undefined;
                } | undefined;
            } | undefined;
            codebaseIndexModels?: {
                openai?: Record<string, {
                    dimension: number;
                }> | undefined;
                ollama?: Record<string, {
                    dimension: number;
                }> | undefined;
                "openai-compatible"?: Record<string, {
                    dimension: number;
                }> | undefined;
                gemini?: Record<string, {
                    dimension: number;
                }> | undefined;
                mistral?: Record<string, {
                    dimension: number;
                }> | undefined;
                "vercel-ai-gateway"?: Record<string, {
                    dimension: number;
                }> | undefined;
                bedrock?: Record<string, {
                    dimension: number;
                }> | undefined;
                openrouter?: Record<string, {
                    dimension: number;
                }> | undefined;
            } | undefined;
            codebaseIndexConfig?: {
                codebaseIndexEnabled?: boolean | undefined;
                codebaseIndexQdrantUrl?: string | undefined;
                codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                codebaseIndexEmbedderBaseUrl?: string | undefined;
                codebaseIndexEmbedderModelId?: string | undefined;
                codebaseIndexEmbedderModelDimension?: number | undefined;
                codebaseIndexSearchMinScore?: number | undefined;
                codebaseIndexSearchMaxResults?: number | undefined;
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codebaseIndexBedrockRegion?: string | undefined;
                codebaseIndexBedrockProfile?: string | undefined;
                codebaseIndexOpenRouterSpecificProvider?: string | undefined;
            } | undefined;
            telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
            mcpEnabled?: boolean | undefined;
            prevMode?: string | undefined;
            modeApiConfigs?: Record<string, string> | undefined;
            customModePrompts?: Record<string, {
                description?: string | undefined;
                roleDefinition?: string | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
            } | undefined> | undefined;
            customSupportPrompts?: Record<string, string | undefined> | undefined;
            enhancementApiConfigId?: string | undefined;
            includeTaskHistoryInEnhance?: boolean | undefined;
            historyPreviewCollapsed?: boolean | undefined;
            reasoningBlockCollapsed?: boolean | undefined;
            showSpeedInfo?: boolean | undefined;
            automaticallyFocus?: boolean | undefined;
            collapseMarkdownWithoutScroll?: boolean | undefined;
            enterBehavior?: "send" | "newline" | undefined;
            profileThresholds?: Record<string, number> | undefined;
            hasOpenedModeSelector?: boolean | undefined;
            hasClosedCodeReviewWelcomeTips?: boolean | undefined;
            lastModeExportPath?: string | undefined;
            lastModeImportPath?: string | undefined;
            lastSettingsExportPath?: string | undefined;
            lastTaskExportPath?: string | undefined;
            lastImageSavePath?: string | undefined;
            worktreeAutoOpenPath?: string | undefined;
            showWorktreesInHomeScreen?: boolean | undefined;
            disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
        }, {
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codeIndexOpenAiKey?: string | undefined;
            codeIndexQdrantApiKey?: string | undefined;
            codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
            codebaseIndexGeminiApiKey?: string | undefined;
            codebaseIndexMistralApiKey?: string | undefined;
            codebaseIndexVercelAiGatewayApiKey?: string | undefined;
            codebaseIndexOpenRouterApiKey?: string | undefined;
            reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            includeMaxTokens?: boolean | undefined;
            todoListEnabled?: boolean | undefined;
            modelTemperature?: number | null | undefined;
            rateLimitSeconds?: number | undefined;
            consecutiveMistakeLimit?: number | undefined;
            enableReasoningEffort?: boolean | undefined;
            modelMaxTokens?: number | undefined;
            modelMaxThinkingTokens?: number | undefined;
            verbosity?: "low" | "medium" | "high" | undefined;
            apiModelId?: string | undefined;
            costrictAccessToken?: string | undefined;
            costrictRefreshToken?: string | undefined;
            costrictState?: string | undefined;
            costrictBaseUrl?: string | undefined;
            costrictModelId?: string | undefined;
            costrictApiKeyUpdatedAt?: string | undefined;
            costrictApiKeyExpiredAt?: string | undefined;
            useCostrictCustomConfig?: boolean | undefined;
            costrictAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            apiKey?: string | undefined;
            anthropicBaseUrl?: string | undefined;
            anthropicUseAuthToken?: boolean | undefined;
            anthropicBeta1MContext?: boolean | undefined;
            openRouterApiKey?: string | undefined;
            openRouterModelId?: string | undefined;
            openRouterBaseUrl?: string | undefined;
            openRouterSpecificProvider?: string | undefined;
            awsAccessKey?: string | undefined;
            awsSecretKey?: string | undefined;
            awsSessionToken?: string | undefined;
            awsRegion?: string | undefined;
            awsUseCrossRegionInference?: boolean | undefined;
            awsUseGlobalInference?: boolean | undefined;
            awsUsePromptCache?: boolean | undefined;
            awsProfile?: string | undefined;
            awsUseProfile?: boolean | undefined;
            awsApiKey?: string | undefined;
            awsUseApiKey?: boolean | undefined;
            awsCustomArn?: string | undefined;
            awsModelContextWindow?: number | undefined;
            awsBedrockEndpointEnabled?: boolean | undefined;
            awsBedrockEndpoint?: string | undefined;
            awsBedrock1MContext?: boolean | undefined;
            awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
            vertexKeyFile?: string | undefined;
            vertexJsonCredentials?: string | undefined;
            vertexProjectId?: string | undefined;
            vertexRegion?: string | undefined;
            vertex1MContext?: boolean | undefined;
            openAiBaseUrl?: string | undefined;
            openAiApiKey?: string | undefined;
            openAiR1FormatEnabled?: boolean | undefined;
            openAiModelId?: string | undefined;
            openAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            openAiUseAzure?: boolean | undefined;
            azureApiVersion?: string | undefined;
            openAiStreamingEnabled?: boolean | undefined;
            openAiHostHeader?: string | undefined;
            openAiHeaders?: Record<string, string> | undefined;
            ollamaModelId?: string | undefined;
            ollamaBaseUrl?: string | undefined;
            ollamaApiKey?: string | undefined;
            ollamaNumCtx?: number | undefined;
            vsCodeLmModelSelector?: {
                id?: string | undefined;
                family?: string | undefined;
                version?: string | undefined;
                vendor?: string | undefined;
            } | undefined;
            lmStudioModelId?: string | undefined;
            lmStudioBaseUrl?: string | undefined;
            lmStudioDraftModelId?: string | undefined;
            lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
            geminiApiKey?: string | undefined;
            googleGeminiBaseUrl?: string | undefined;
            geminiCliOAuthPath?: string | undefined;
            geminiCliProjectId?: string | undefined;
            openAiNativeApiKey?: string | undefined;
            openAiNativeBaseUrl?: string | undefined;
            openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
            mistralApiKey?: string | undefined;
            mistralCodestralUrl?: string | undefined;
            deepSeekBaseUrl?: string | undefined;
            deepSeekApiKey?: string | undefined;
            poeApiKey?: string | undefined;
            poeBaseUrl?: string | undefined;
            moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
            moonshotApiKey?: string | undefined;
            minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
            minimaxApiKey?: string | undefined;
            mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
            mimoApiKey?: string | undefined;
            requestyBaseUrl?: string | undefined;
            requestyApiKey?: string | undefined;
            requestyModelId?: string | undefined;
            unboundApiKey?: string | undefined;
            unboundModelId?: string | undefined;
            fakeAi?: unknown;
            xaiApiKey?: string | undefined;
            basetenApiKey?: string | undefined;
            litellmBaseUrl?: string | undefined;
            litellmApiKey?: string | undefined;
            litellmModelId?: string | undefined;
            litellmUsePromptCache?: boolean | undefined;
            sambaNovaApiKey?: string | undefined;
            zaiApiKey?: string | undefined;
            zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
            fireworksApiKey?: string | undefined;
            qwenCodeOauthPath?: string | undefined;
            rooApiKey?: string | undefined;
            vercelAiGatewayApiKey?: string | undefined;
            vercelAiGatewayModelId?: string | undefined;
            mode?: string | undefined;
            errorCode?: Record<string, Record<string, string>> | undefined;
            customInstructions?: string | undefined;
            customModes?: {
                name: string;
                slug: string;
                roleDefinition: string;
                groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                    description?: string | undefined;
                    fileRegex?: string | undefined;
                }])[];
                description?: string | undefined;
                apiProvider?: string | undefined;
                source?: "global" | "project" | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
                overrideSystemPrompt?: boolean | undefined;
                costrictCodeModeGroup?: string | undefined;
                subagents?: string[] | undefined;
                pure?: boolean | undefined;
                disableSwitchMode?: boolean | undefined;
                taskMode?: string | undefined;
            }[] | undefined;
            debug?: boolean | undefined;
            currentApiConfigName?: string | undefined;
            listApiConfigMeta?: {
                id: string;
                name: string;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                modelId?: string | undefined;
            }[] | undefined;
            pinnedApiConfigs?: Record<string, boolean> | undefined;
            autoCleanup?: {
                enabled?: boolean | undefined;
                strategy?: CleanupStrategy | undefined;
                retentionDays?: number | undefined;
                maxHistoryCount?: number | undefined;
                excludeActive?: boolean | undefined;
                cleanupOnStartup?: boolean | undefined;
            } | undefined;
            lastShownAnnouncementId?: string | undefined;
            taskHistory?: {
                number: number;
                ts: number;
                totalCost: number;
                id: string;
                task: string;
                tokensIn: number;
                tokensOut: number;
                status?: "active" | "completed" | "delegated" | undefined;
                rootTaskId?: string | undefined;
                parentTaskId?: string | undefined;
                cacheWrites?: number | undefined;
                cacheReads?: number | undefined;
                size?: number | undefined;
                workspace?: string | undefined;
                mode?: string | undefined;
                apiConfigName?: string | undefined;
                delegatedToId?: string | undefined;
                childIds?: string[] | undefined;
                awaitingChildId?: string | undefined;
                completedByChildId?: string | undefined;
                completionResultSummary?: string | undefined;
            }[] | undefined;
            dismissedUpsells?: string[] | undefined;
            clickedOnceNotices?: number[] | undefined;
            imageGenerationProvider?: "openrouter" | "roo" | undefined;
            openRouterImageApiKey?: string | undefined;
            openRouterImageGenerationSelectedModel?: string | undefined;
            customCondensingPrompt?: string | undefined;
            costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
            autoApprovalEnabled?: boolean | undefined;
            alwaysAllowReadOnly?: boolean | undefined;
            alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
            alwaysAllowWrite?: boolean | undefined;
            alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
            alwaysAllowWriteProtected?: boolean | undefined;
            writeDelayMs?: number | undefined;
            requestDelaySeconds?: number | undefined;
            alwaysAllowMcp?: boolean | undefined;
            alwaysAllowModeSwitch?: boolean | undefined;
            alwaysAllowSubtasks?: boolean | undefined;
            alwaysAllowExecute?: boolean | undefined;
            alwaysAllowFollowupQuestions?: boolean | undefined;
            followupAutoApproveTimeoutMs?: number | undefined;
            allowedCommands?: string[] | undefined;
            deniedCommands?: string[] | undefined;
            commandExecutionTimeout?: number | undefined;
            commandTimeoutAllowlist?: string[] | undefined;
            preventCompletionWithOpenTodos?: boolean | undefined;
            allowedMaxRequests?: number | null | undefined;
            allowedMaxCost?: number | null | undefined;
            autoCondenseContext?: boolean | undefined;
            autoCondenseContextPercent?: number | undefined;
            includeCurrentTime?: boolean | undefined;
            includeCurrentCost?: boolean | undefined;
            maxGitStatusFiles?: number | undefined;
            includeDiagnosticMessages?: boolean | undefined;
            maxDiagnosticMessages?: number | undefined;
            customStoragePath?: string | undefined;
            enableCheckpoints?: boolean | undefined;
            checkpointTimeout?: number | undefined;
            ttsEnabled?: boolean | undefined;
            ttsSpeed?: number | undefined;
            soundEnabled?: boolean | undefined;
            soundVolume?: number | undefined;
            maxOpenTabsContext?: number | undefined;
            maxWorkspaceFiles?: number | undefined;
            showRooIgnoredFiles?: boolean | undefined;
            enableSubfolderRules?: boolean | undefined;
            maxImageFileSize?: number | undefined;
            maxTotalImageSize?: number | undefined;
            terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
            terminalShellIntegrationTimeout?: number | undefined;
            terminalShellIntegrationDisabled?: boolean | undefined;
            terminalCommandDelay?: number | undefined;
            terminalPowershellCounter?: boolean | undefined;
            terminalZshClearEolMark?: boolean | undefined;
            terminalZshOhMy?: boolean | undefined;
            terminalZshP10k?: boolean | undefined;
            terminalZdotdir?: boolean | undefined;
            execaShellPath?: string | undefined;
            diagnosticsEnabled?: boolean | undefined;
            experiments?: {
                preventFocusDisruption?: boolean | undefined;
                imageGeneration?: boolean | undefined;
                runSlashCommand?: boolean | undefined;
                customTools?: boolean | undefined;
                chatSearch?: boolean | undefined;
                commitReview?: boolean | undefined;
                useKPTtree?: boolean | undefined;
                useLitePrompts?: boolean | undefined;
                smartMistakeDetection?: boolean | undefined;
            } | undefined;
            experimentSettings?: {
                smartMistakeDetectionConfig?: {
                    autoSwitchModel?: boolean | undefined;
                } | undefined;
            } | undefined;
            codebaseIndexModels?: {
                openai?: Record<string, {
                    dimension: number;
                }> | undefined;
                ollama?: Record<string, {
                    dimension: number;
                }> | undefined;
                "openai-compatible"?: Record<string, {
                    dimension: number;
                }> | undefined;
                gemini?: Record<string, {
                    dimension: number;
                }> | undefined;
                mistral?: Record<string, {
                    dimension: number;
                }> | undefined;
                "vercel-ai-gateway"?: Record<string, {
                    dimension: number;
                }> | undefined;
                bedrock?: Record<string, {
                    dimension: number;
                }> | undefined;
                openrouter?: Record<string, {
                    dimension: number;
                }> | undefined;
            } | undefined;
            codebaseIndexConfig?: {
                codebaseIndexEnabled?: boolean | undefined;
                codebaseIndexQdrantUrl?: string | undefined;
                codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                codebaseIndexEmbedderBaseUrl?: string | undefined;
                codebaseIndexEmbedderModelId?: string | undefined;
                codebaseIndexEmbedderModelDimension?: number | undefined;
                codebaseIndexSearchMinScore?: number | undefined;
                codebaseIndexSearchMaxResults?: number | undefined;
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codebaseIndexBedrockRegion?: string | undefined;
                codebaseIndexBedrockProfile?: string | undefined;
                codebaseIndexOpenRouterSpecificProvider?: string | undefined;
            } | undefined;
            telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
            mcpEnabled?: boolean | undefined;
            prevMode?: string | undefined;
            modeApiConfigs?: Record<string, string> | undefined;
            customModePrompts?: Record<string, {
                description?: string | undefined;
                roleDefinition?: string | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
            } | undefined> | undefined;
            customSupportPrompts?: Record<string, string | undefined> | undefined;
            enhancementApiConfigId?: string | undefined;
            includeTaskHistoryInEnhance?: boolean | undefined;
            historyPreviewCollapsed?: boolean | undefined;
            reasoningBlockCollapsed?: boolean | undefined;
            showSpeedInfo?: boolean | undefined;
            automaticallyFocus?: boolean | undefined;
            collapseMarkdownWithoutScroll?: boolean | undefined;
            enterBehavior?: "send" | "newline" | undefined;
            profileThresholds?: Record<string, number> | undefined;
            hasOpenedModeSelector?: boolean | undefined;
            hasClosedCodeReviewWelcomeTips?: boolean | undefined;
            lastModeExportPath?: string | undefined;
            lastModeImportPath?: string | undefined;
            lastSettingsExportPath?: string | undefined;
            lastTaskExportPath?: string | undefined;
            lastImageSavePath?: string | undefined;
            worktreeAutoOpenPath?: string | undefined;
            showWorktreesInHomeScreen?: boolean | undefined;
            disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
        }>;
        text: z.ZodString;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        newTab: z.ZodOptional<z.ZodBoolean>;
    }, "strip", z.ZodTypeAny, {
        text: string;
        configuration: {
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codeIndexOpenAiKey?: string | undefined;
            codeIndexQdrantApiKey?: string | undefined;
            codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
            codebaseIndexGeminiApiKey?: string | undefined;
            codebaseIndexMistralApiKey?: string | undefined;
            codebaseIndexVercelAiGatewayApiKey?: string | undefined;
            codebaseIndexOpenRouterApiKey?: string | undefined;
            reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            includeMaxTokens?: boolean | undefined;
            todoListEnabled?: boolean | undefined;
            modelTemperature?: number | null | undefined;
            rateLimitSeconds?: number | undefined;
            consecutiveMistakeLimit?: number | undefined;
            enableReasoningEffort?: boolean | undefined;
            modelMaxTokens?: number | undefined;
            modelMaxThinkingTokens?: number | undefined;
            verbosity?: "low" | "medium" | "high" | undefined;
            apiModelId?: string | undefined;
            costrictAccessToken?: string | undefined;
            costrictRefreshToken?: string | undefined;
            costrictState?: string | undefined;
            costrictBaseUrl?: string | undefined;
            costrictModelId?: string | undefined;
            costrictApiKeyUpdatedAt?: string | undefined;
            costrictApiKeyExpiredAt?: string | undefined;
            useCostrictCustomConfig?: boolean | undefined;
            costrictAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            apiKey?: string | undefined;
            anthropicBaseUrl?: string | undefined;
            anthropicUseAuthToken?: boolean | undefined;
            anthropicBeta1MContext?: boolean | undefined;
            openRouterApiKey?: string | undefined;
            openRouterModelId?: string | undefined;
            openRouterBaseUrl?: string | undefined;
            openRouterSpecificProvider?: string | undefined;
            awsAccessKey?: string | undefined;
            awsSecretKey?: string | undefined;
            awsSessionToken?: string | undefined;
            awsRegion?: string | undefined;
            awsUseCrossRegionInference?: boolean | undefined;
            awsUseGlobalInference?: boolean | undefined;
            awsUsePromptCache?: boolean | undefined;
            awsProfile?: string | undefined;
            awsUseProfile?: boolean | undefined;
            awsApiKey?: string | undefined;
            awsUseApiKey?: boolean | undefined;
            awsCustomArn?: string | undefined;
            awsModelContextWindow?: number | undefined;
            awsBedrockEndpointEnabled?: boolean | undefined;
            awsBedrockEndpoint?: string | undefined;
            awsBedrock1MContext?: boolean | undefined;
            awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
            vertexKeyFile?: string | undefined;
            vertexJsonCredentials?: string | undefined;
            vertexProjectId?: string | undefined;
            vertexRegion?: string | undefined;
            vertex1MContext?: boolean | undefined;
            openAiBaseUrl?: string | undefined;
            openAiApiKey?: string | undefined;
            openAiR1FormatEnabled?: boolean | undefined;
            openAiModelId?: string | undefined;
            openAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            openAiUseAzure?: boolean | undefined;
            azureApiVersion?: string | undefined;
            openAiStreamingEnabled?: boolean | undefined;
            openAiHostHeader?: string | undefined;
            openAiHeaders?: Record<string, string> | undefined;
            ollamaModelId?: string | undefined;
            ollamaBaseUrl?: string | undefined;
            ollamaApiKey?: string | undefined;
            ollamaNumCtx?: number | undefined;
            vsCodeLmModelSelector?: {
                id?: string | undefined;
                family?: string | undefined;
                version?: string | undefined;
                vendor?: string | undefined;
            } | undefined;
            lmStudioModelId?: string | undefined;
            lmStudioBaseUrl?: string | undefined;
            lmStudioDraftModelId?: string | undefined;
            lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
            geminiApiKey?: string | undefined;
            googleGeminiBaseUrl?: string | undefined;
            geminiCliOAuthPath?: string | undefined;
            geminiCliProjectId?: string | undefined;
            openAiNativeApiKey?: string | undefined;
            openAiNativeBaseUrl?: string | undefined;
            openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
            mistralApiKey?: string | undefined;
            mistralCodestralUrl?: string | undefined;
            deepSeekBaseUrl?: string | undefined;
            deepSeekApiKey?: string | undefined;
            poeApiKey?: string | undefined;
            poeBaseUrl?: string | undefined;
            moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
            moonshotApiKey?: string | undefined;
            minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
            minimaxApiKey?: string | undefined;
            mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
            mimoApiKey?: string | undefined;
            requestyBaseUrl?: string | undefined;
            requestyApiKey?: string | undefined;
            requestyModelId?: string | undefined;
            unboundApiKey?: string | undefined;
            unboundModelId?: string | undefined;
            fakeAi?: unknown;
            xaiApiKey?: string | undefined;
            basetenApiKey?: string | undefined;
            litellmBaseUrl?: string | undefined;
            litellmApiKey?: string | undefined;
            litellmModelId?: string | undefined;
            litellmUsePromptCache?: boolean | undefined;
            sambaNovaApiKey?: string | undefined;
            zaiApiKey?: string | undefined;
            zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
            fireworksApiKey?: string | undefined;
            qwenCodeOauthPath?: string | undefined;
            rooApiKey?: string | undefined;
            vercelAiGatewayApiKey?: string | undefined;
            vercelAiGatewayModelId?: string | undefined;
            mode?: string | undefined;
            errorCode?: Record<string, Record<string, string>> | undefined;
            customInstructions?: string | undefined;
            customModes?: {
                name: string;
                slug: string;
                roleDefinition: string;
                groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                    description?: string | undefined;
                    fileRegex?: string | undefined;
                }])[];
                description?: string | undefined;
                apiProvider?: string | undefined;
                source?: "global" | "project" | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
                overrideSystemPrompt?: boolean | undefined;
                costrictCodeModeGroup?: string | undefined;
                subagents?: string[] | undefined;
                pure?: boolean | undefined;
                disableSwitchMode?: boolean | undefined;
                taskMode?: string | undefined;
            }[] | undefined;
            debug?: boolean | undefined;
            currentApiConfigName?: string | undefined;
            listApiConfigMeta?: {
                id: string;
                name: string;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                modelId?: string | undefined;
            }[] | undefined;
            pinnedApiConfigs?: Record<string, boolean> | undefined;
            autoCleanup?: {
                enabled?: boolean | undefined;
                strategy?: CleanupStrategy | undefined;
                retentionDays?: number | undefined;
                maxHistoryCount?: number | undefined;
                excludeActive?: boolean | undefined;
                cleanupOnStartup?: boolean | undefined;
            } | undefined;
            lastShownAnnouncementId?: string | undefined;
            taskHistory?: {
                number: number;
                ts: number;
                totalCost: number;
                id: string;
                task: string;
                tokensIn: number;
                tokensOut: number;
                status?: "active" | "completed" | "delegated" | undefined;
                rootTaskId?: string | undefined;
                parentTaskId?: string | undefined;
                cacheWrites?: number | undefined;
                cacheReads?: number | undefined;
                size?: number | undefined;
                workspace?: string | undefined;
                mode?: string | undefined;
                apiConfigName?: string | undefined;
                delegatedToId?: string | undefined;
                childIds?: string[] | undefined;
                awaitingChildId?: string | undefined;
                completedByChildId?: string | undefined;
                completionResultSummary?: string | undefined;
            }[] | undefined;
            dismissedUpsells?: string[] | undefined;
            clickedOnceNotices?: number[] | undefined;
            imageGenerationProvider?: "openrouter" | "roo" | undefined;
            openRouterImageApiKey?: string | undefined;
            openRouterImageGenerationSelectedModel?: string | undefined;
            customCondensingPrompt?: string | undefined;
            costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
            autoApprovalEnabled?: boolean | undefined;
            alwaysAllowReadOnly?: boolean | undefined;
            alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
            alwaysAllowWrite?: boolean | undefined;
            alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
            alwaysAllowWriteProtected?: boolean | undefined;
            writeDelayMs?: number | undefined;
            requestDelaySeconds?: number | undefined;
            alwaysAllowMcp?: boolean | undefined;
            alwaysAllowModeSwitch?: boolean | undefined;
            alwaysAllowSubtasks?: boolean | undefined;
            alwaysAllowExecute?: boolean | undefined;
            alwaysAllowFollowupQuestions?: boolean | undefined;
            followupAutoApproveTimeoutMs?: number | undefined;
            allowedCommands?: string[] | undefined;
            deniedCommands?: string[] | undefined;
            commandExecutionTimeout?: number | undefined;
            commandTimeoutAllowlist?: string[] | undefined;
            preventCompletionWithOpenTodos?: boolean | undefined;
            allowedMaxRequests?: number | null | undefined;
            allowedMaxCost?: number | null | undefined;
            autoCondenseContext?: boolean | undefined;
            autoCondenseContextPercent?: number | undefined;
            includeCurrentTime?: boolean | undefined;
            includeCurrentCost?: boolean | undefined;
            maxGitStatusFiles?: number | undefined;
            includeDiagnosticMessages?: boolean | undefined;
            maxDiagnosticMessages?: number | undefined;
            customStoragePath?: string | undefined;
            enableCheckpoints?: boolean | undefined;
            checkpointTimeout?: number | undefined;
            ttsEnabled?: boolean | undefined;
            ttsSpeed?: number | undefined;
            soundEnabled?: boolean | undefined;
            soundVolume?: number | undefined;
            maxOpenTabsContext?: number | undefined;
            maxWorkspaceFiles?: number | undefined;
            showRooIgnoredFiles?: boolean | undefined;
            enableSubfolderRules?: boolean | undefined;
            maxImageFileSize?: number | undefined;
            maxTotalImageSize?: number | undefined;
            terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
            terminalShellIntegrationTimeout?: number | undefined;
            terminalShellIntegrationDisabled?: boolean | undefined;
            terminalCommandDelay?: number | undefined;
            terminalPowershellCounter?: boolean | undefined;
            terminalZshClearEolMark?: boolean | undefined;
            terminalZshOhMy?: boolean | undefined;
            terminalZshP10k?: boolean | undefined;
            terminalZdotdir?: boolean | undefined;
            execaShellPath?: string | undefined;
            diagnosticsEnabled?: boolean | undefined;
            experiments?: {
                preventFocusDisruption?: boolean | undefined;
                imageGeneration?: boolean | undefined;
                runSlashCommand?: boolean | undefined;
                customTools?: boolean | undefined;
                chatSearch?: boolean | undefined;
                commitReview?: boolean | undefined;
                useKPTtree?: boolean | undefined;
                useLitePrompts?: boolean | undefined;
                smartMistakeDetection?: boolean | undefined;
            } | undefined;
            experimentSettings?: {
                smartMistakeDetectionConfig?: {
                    autoSwitchModel?: boolean | undefined;
                } | undefined;
            } | undefined;
            codebaseIndexModels?: {
                openai?: Record<string, {
                    dimension: number;
                }> | undefined;
                ollama?: Record<string, {
                    dimension: number;
                }> | undefined;
                "openai-compatible"?: Record<string, {
                    dimension: number;
                }> | undefined;
                gemini?: Record<string, {
                    dimension: number;
                }> | undefined;
                mistral?: Record<string, {
                    dimension: number;
                }> | undefined;
                "vercel-ai-gateway"?: Record<string, {
                    dimension: number;
                }> | undefined;
                bedrock?: Record<string, {
                    dimension: number;
                }> | undefined;
                openrouter?: Record<string, {
                    dimension: number;
                }> | undefined;
            } | undefined;
            codebaseIndexConfig?: {
                codebaseIndexEnabled?: boolean | undefined;
                codebaseIndexQdrantUrl?: string | undefined;
                codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                codebaseIndexEmbedderBaseUrl?: string | undefined;
                codebaseIndexEmbedderModelId?: string | undefined;
                codebaseIndexEmbedderModelDimension?: number | undefined;
                codebaseIndexSearchMinScore?: number | undefined;
                codebaseIndexSearchMaxResults?: number | undefined;
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codebaseIndexBedrockRegion?: string | undefined;
                codebaseIndexBedrockProfile?: string | undefined;
                codebaseIndexOpenRouterSpecificProvider?: string | undefined;
            } | undefined;
            telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
            mcpEnabled?: boolean | undefined;
            prevMode?: string | undefined;
            modeApiConfigs?: Record<string, string> | undefined;
            customModePrompts?: Record<string, {
                description?: string | undefined;
                roleDefinition?: string | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
            } | undefined> | undefined;
            customSupportPrompts?: Record<string, string | undefined> | undefined;
            enhancementApiConfigId?: string | undefined;
            includeTaskHistoryInEnhance?: boolean | undefined;
            historyPreviewCollapsed?: boolean | undefined;
            reasoningBlockCollapsed?: boolean | undefined;
            showSpeedInfo?: boolean | undefined;
            automaticallyFocus?: boolean | undefined;
            collapseMarkdownWithoutScroll?: boolean | undefined;
            enterBehavior?: "send" | "newline" | undefined;
            profileThresholds?: Record<string, number> | undefined;
            hasOpenedModeSelector?: boolean | undefined;
            hasClosedCodeReviewWelcomeTips?: boolean | undefined;
            lastModeExportPath?: string | undefined;
            lastModeImportPath?: string | undefined;
            lastSettingsExportPath?: string | undefined;
            lastTaskExportPath?: string | undefined;
            lastImageSavePath?: string | undefined;
            worktreeAutoOpenPath?: string | undefined;
            showWorktreesInHomeScreen?: boolean | undefined;
            disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
        };
        images?: string[] | undefined;
        newTab?: boolean | undefined;
    }, {
        text: string;
        configuration: {
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codeIndexOpenAiKey?: string | undefined;
            codeIndexQdrantApiKey?: string | undefined;
            codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
            codebaseIndexGeminiApiKey?: string | undefined;
            codebaseIndexMistralApiKey?: string | undefined;
            codebaseIndexVercelAiGatewayApiKey?: string | undefined;
            codebaseIndexOpenRouterApiKey?: string | undefined;
            reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            includeMaxTokens?: boolean | undefined;
            todoListEnabled?: boolean | undefined;
            modelTemperature?: number | null | undefined;
            rateLimitSeconds?: number | undefined;
            consecutiveMistakeLimit?: number | undefined;
            enableReasoningEffort?: boolean | undefined;
            modelMaxTokens?: number | undefined;
            modelMaxThinkingTokens?: number | undefined;
            verbosity?: "low" | "medium" | "high" | undefined;
            apiModelId?: string | undefined;
            costrictAccessToken?: string | undefined;
            costrictRefreshToken?: string | undefined;
            costrictState?: string | undefined;
            costrictBaseUrl?: string | undefined;
            costrictModelId?: string | undefined;
            costrictApiKeyUpdatedAt?: string | undefined;
            costrictApiKeyExpiredAt?: string | undefined;
            useCostrictCustomConfig?: boolean | undefined;
            costrictAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            apiKey?: string | undefined;
            anthropicBaseUrl?: string | undefined;
            anthropicUseAuthToken?: boolean | undefined;
            anthropicBeta1MContext?: boolean | undefined;
            openRouterApiKey?: string | undefined;
            openRouterModelId?: string | undefined;
            openRouterBaseUrl?: string | undefined;
            openRouterSpecificProvider?: string | undefined;
            awsAccessKey?: string | undefined;
            awsSecretKey?: string | undefined;
            awsSessionToken?: string | undefined;
            awsRegion?: string | undefined;
            awsUseCrossRegionInference?: boolean | undefined;
            awsUseGlobalInference?: boolean | undefined;
            awsUsePromptCache?: boolean | undefined;
            awsProfile?: string | undefined;
            awsUseProfile?: boolean | undefined;
            awsApiKey?: string | undefined;
            awsUseApiKey?: boolean | undefined;
            awsCustomArn?: string | undefined;
            awsModelContextWindow?: number | undefined;
            awsBedrockEndpointEnabled?: boolean | undefined;
            awsBedrockEndpoint?: string | undefined;
            awsBedrock1MContext?: boolean | undefined;
            awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
            vertexKeyFile?: string | undefined;
            vertexJsonCredentials?: string | undefined;
            vertexProjectId?: string | undefined;
            vertexRegion?: string | undefined;
            vertex1MContext?: boolean | undefined;
            openAiBaseUrl?: string | undefined;
            openAiApiKey?: string | undefined;
            openAiR1FormatEnabled?: boolean | undefined;
            openAiModelId?: string | undefined;
            openAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            openAiUseAzure?: boolean | undefined;
            azureApiVersion?: string | undefined;
            openAiStreamingEnabled?: boolean | undefined;
            openAiHostHeader?: string | undefined;
            openAiHeaders?: Record<string, string> | undefined;
            ollamaModelId?: string | undefined;
            ollamaBaseUrl?: string | undefined;
            ollamaApiKey?: string | undefined;
            ollamaNumCtx?: number | undefined;
            vsCodeLmModelSelector?: {
                id?: string | undefined;
                family?: string | undefined;
                version?: string | undefined;
                vendor?: string | undefined;
            } | undefined;
            lmStudioModelId?: string | undefined;
            lmStudioBaseUrl?: string | undefined;
            lmStudioDraftModelId?: string | undefined;
            lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
            geminiApiKey?: string | undefined;
            googleGeminiBaseUrl?: string | undefined;
            geminiCliOAuthPath?: string | undefined;
            geminiCliProjectId?: string | undefined;
            openAiNativeApiKey?: string | undefined;
            openAiNativeBaseUrl?: string | undefined;
            openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
            mistralApiKey?: string | undefined;
            mistralCodestralUrl?: string | undefined;
            deepSeekBaseUrl?: string | undefined;
            deepSeekApiKey?: string | undefined;
            poeApiKey?: string | undefined;
            poeBaseUrl?: string | undefined;
            moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
            moonshotApiKey?: string | undefined;
            minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
            minimaxApiKey?: string | undefined;
            mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
            mimoApiKey?: string | undefined;
            requestyBaseUrl?: string | undefined;
            requestyApiKey?: string | undefined;
            requestyModelId?: string | undefined;
            unboundApiKey?: string | undefined;
            unboundModelId?: string | undefined;
            fakeAi?: unknown;
            xaiApiKey?: string | undefined;
            basetenApiKey?: string | undefined;
            litellmBaseUrl?: string | undefined;
            litellmApiKey?: string | undefined;
            litellmModelId?: string | undefined;
            litellmUsePromptCache?: boolean | undefined;
            sambaNovaApiKey?: string | undefined;
            zaiApiKey?: string | undefined;
            zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
            fireworksApiKey?: string | undefined;
            qwenCodeOauthPath?: string | undefined;
            rooApiKey?: string | undefined;
            vercelAiGatewayApiKey?: string | undefined;
            vercelAiGatewayModelId?: string | undefined;
            mode?: string | undefined;
            errorCode?: Record<string, Record<string, string>> | undefined;
            customInstructions?: string | undefined;
            customModes?: {
                name: string;
                slug: string;
                roleDefinition: string;
                groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                    description?: string | undefined;
                    fileRegex?: string | undefined;
                }])[];
                description?: string | undefined;
                apiProvider?: string | undefined;
                source?: "global" | "project" | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
                overrideSystemPrompt?: boolean | undefined;
                costrictCodeModeGroup?: string | undefined;
                subagents?: string[] | undefined;
                pure?: boolean | undefined;
                disableSwitchMode?: boolean | undefined;
                taskMode?: string | undefined;
            }[] | undefined;
            debug?: boolean | undefined;
            currentApiConfigName?: string | undefined;
            listApiConfigMeta?: {
                id: string;
                name: string;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                modelId?: string | undefined;
            }[] | undefined;
            pinnedApiConfigs?: Record<string, boolean> | undefined;
            autoCleanup?: {
                enabled?: boolean | undefined;
                strategy?: CleanupStrategy | undefined;
                retentionDays?: number | undefined;
                maxHistoryCount?: number | undefined;
                excludeActive?: boolean | undefined;
                cleanupOnStartup?: boolean | undefined;
            } | undefined;
            lastShownAnnouncementId?: string | undefined;
            taskHistory?: {
                number: number;
                ts: number;
                totalCost: number;
                id: string;
                task: string;
                tokensIn: number;
                tokensOut: number;
                status?: "active" | "completed" | "delegated" | undefined;
                rootTaskId?: string | undefined;
                parentTaskId?: string | undefined;
                cacheWrites?: number | undefined;
                cacheReads?: number | undefined;
                size?: number | undefined;
                workspace?: string | undefined;
                mode?: string | undefined;
                apiConfigName?: string | undefined;
                delegatedToId?: string | undefined;
                childIds?: string[] | undefined;
                awaitingChildId?: string | undefined;
                completedByChildId?: string | undefined;
                completionResultSummary?: string | undefined;
            }[] | undefined;
            dismissedUpsells?: string[] | undefined;
            clickedOnceNotices?: number[] | undefined;
            imageGenerationProvider?: "openrouter" | "roo" | undefined;
            openRouterImageApiKey?: string | undefined;
            openRouterImageGenerationSelectedModel?: string | undefined;
            customCondensingPrompt?: string | undefined;
            costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
            autoApprovalEnabled?: boolean | undefined;
            alwaysAllowReadOnly?: boolean | undefined;
            alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
            alwaysAllowWrite?: boolean | undefined;
            alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
            alwaysAllowWriteProtected?: boolean | undefined;
            writeDelayMs?: number | undefined;
            requestDelaySeconds?: number | undefined;
            alwaysAllowMcp?: boolean | undefined;
            alwaysAllowModeSwitch?: boolean | undefined;
            alwaysAllowSubtasks?: boolean | undefined;
            alwaysAllowExecute?: boolean | undefined;
            alwaysAllowFollowupQuestions?: boolean | undefined;
            followupAutoApproveTimeoutMs?: number | undefined;
            allowedCommands?: string[] | undefined;
            deniedCommands?: string[] | undefined;
            commandExecutionTimeout?: number | undefined;
            commandTimeoutAllowlist?: string[] | undefined;
            preventCompletionWithOpenTodos?: boolean | undefined;
            allowedMaxRequests?: number | null | undefined;
            allowedMaxCost?: number | null | undefined;
            autoCondenseContext?: boolean | undefined;
            autoCondenseContextPercent?: number | undefined;
            includeCurrentTime?: boolean | undefined;
            includeCurrentCost?: boolean | undefined;
            maxGitStatusFiles?: number | undefined;
            includeDiagnosticMessages?: boolean | undefined;
            maxDiagnosticMessages?: number | undefined;
            customStoragePath?: string | undefined;
            enableCheckpoints?: boolean | undefined;
            checkpointTimeout?: number | undefined;
            ttsEnabled?: boolean | undefined;
            ttsSpeed?: number | undefined;
            soundEnabled?: boolean | undefined;
            soundVolume?: number | undefined;
            maxOpenTabsContext?: number | undefined;
            maxWorkspaceFiles?: number | undefined;
            showRooIgnoredFiles?: boolean | undefined;
            enableSubfolderRules?: boolean | undefined;
            maxImageFileSize?: number | undefined;
            maxTotalImageSize?: number | undefined;
            terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
            terminalShellIntegrationTimeout?: number | undefined;
            terminalShellIntegrationDisabled?: boolean | undefined;
            terminalCommandDelay?: number | undefined;
            terminalPowershellCounter?: boolean | undefined;
            terminalZshClearEolMark?: boolean | undefined;
            terminalZshOhMy?: boolean | undefined;
            terminalZshP10k?: boolean | undefined;
            terminalZdotdir?: boolean | undefined;
            execaShellPath?: string | undefined;
            diagnosticsEnabled?: boolean | undefined;
            experiments?: {
                preventFocusDisruption?: boolean | undefined;
                imageGeneration?: boolean | undefined;
                runSlashCommand?: boolean | undefined;
                customTools?: boolean | undefined;
                chatSearch?: boolean | undefined;
                commitReview?: boolean | undefined;
                useKPTtree?: boolean | undefined;
                useLitePrompts?: boolean | undefined;
                smartMistakeDetection?: boolean | undefined;
            } | undefined;
            experimentSettings?: {
                smartMistakeDetectionConfig?: {
                    autoSwitchModel?: boolean | undefined;
                } | undefined;
            } | undefined;
            codebaseIndexModels?: {
                openai?: Record<string, {
                    dimension: number;
                }> | undefined;
                ollama?: Record<string, {
                    dimension: number;
                }> | undefined;
                "openai-compatible"?: Record<string, {
                    dimension: number;
                }> | undefined;
                gemini?: Record<string, {
                    dimension: number;
                }> | undefined;
                mistral?: Record<string, {
                    dimension: number;
                }> | undefined;
                "vercel-ai-gateway"?: Record<string, {
                    dimension: number;
                }> | undefined;
                bedrock?: Record<string, {
                    dimension: number;
                }> | undefined;
                openrouter?: Record<string, {
                    dimension: number;
                }> | undefined;
            } | undefined;
            codebaseIndexConfig?: {
                codebaseIndexEnabled?: boolean | undefined;
                codebaseIndexQdrantUrl?: string | undefined;
                codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                codebaseIndexEmbedderBaseUrl?: string | undefined;
                codebaseIndexEmbedderModelId?: string | undefined;
                codebaseIndexEmbedderModelDimension?: number | undefined;
                codebaseIndexSearchMinScore?: number | undefined;
                codebaseIndexSearchMaxResults?: number | undefined;
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codebaseIndexBedrockRegion?: string | undefined;
                codebaseIndexBedrockProfile?: string | undefined;
                codebaseIndexOpenRouterSpecificProvider?: string | undefined;
            } | undefined;
            telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
            mcpEnabled?: boolean | undefined;
            prevMode?: string | undefined;
            modeApiConfigs?: Record<string, string> | undefined;
            customModePrompts?: Record<string, {
                description?: string | undefined;
                roleDefinition?: string | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
            } | undefined> | undefined;
            customSupportPrompts?: Record<string, string | undefined> | undefined;
            enhancementApiConfigId?: string | undefined;
            includeTaskHistoryInEnhance?: boolean | undefined;
            historyPreviewCollapsed?: boolean | undefined;
            reasoningBlockCollapsed?: boolean | undefined;
            showSpeedInfo?: boolean | undefined;
            automaticallyFocus?: boolean | undefined;
            collapseMarkdownWithoutScroll?: boolean | undefined;
            enterBehavior?: "send" | "newline" | undefined;
            profileThresholds?: Record<string, number> | undefined;
            hasOpenedModeSelector?: boolean | undefined;
            hasClosedCodeReviewWelcomeTips?: boolean | undefined;
            lastModeExportPath?: string | undefined;
            lastModeImportPath?: string | undefined;
            lastSettingsExportPath?: string | undefined;
            lastTaskExportPath?: string | undefined;
            lastImageSavePath?: string | undefined;
            worktreeAutoOpenPath?: string | undefined;
            showWorktreesInHomeScreen?: boolean | undefined;
            disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
        };
        images?: string[] | undefined;
        newTab?: boolean | undefined;
    }>;
}, "strip", z.ZodTypeAny, {
    data: {
        text: string;
        configuration: {
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codeIndexOpenAiKey?: string | undefined;
            codeIndexQdrantApiKey?: string | undefined;
            codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
            codebaseIndexGeminiApiKey?: string | undefined;
            codebaseIndexMistralApiKey?: string | undefined;
            codebaseIndexVercelAiGatewayApiKey?: string | undefined;
            codebaseIndexOpenRouterApiKey?: string | undefined;
            reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            includeMaxTokens?: boolean | undefined;
            todoListEnabled?: boolean | undefined;
            modelTemperature?: number | null | undefined;
            rateLimitSeconds?: number | undefined;
            consecutiveMistakeLimit?: number | undefined;
            enableReasoningEffort?: boolean | undefined;
            modelMaxTokens?: number | undefined;
            modelMaxThinkingTokens?: number | undefined;
            verbosity?: "low" | "medium" | "high" | undefined;
            apiModelId?: string | undefined;
            costrictAccessToken?: string | undefined;
            costrictRefreshToken?: string | undefined;
            costrictState?: string | undefined;
            costrictBaseUrl?: string | undefined;
            costrictModelId?: string | undefined;
            costrictApiKeyUpdatedAt?: string | undefined;
            costrictApiKeyExpiredAt?: string | undefined;
            useCostrictCustomConfig?: boolean | undefined;
            costrictAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            apiKey?: string | undefined;
            anthropicBaseUrl?: string | undefined;
            anthropicUseAuthToken?: boolean | undefined;
            anthropicBeta1MContext?: boolean | undefined;
            openRouterApiKey?: string | undefined;
            openRouterModelId?: string | undefined;
            openRouterBaseUrl?: string | undefined;
            openRouterSpecificProvider?: string | undefined;
            awsAccessKey?: string | undefined;
            awsSecretKey?: string | undefined;
            awsSessionToken?: string | undefined;
            awsRegion?: string | undefined;
            awsUseCrossRegionInference?: boolean | undefined;
            awsUseGlobalInference?: boolean | undefined;
            awsUsePromptCache?: boolean | undefined;
            awsProfile?: string | undefined;
            awsUseProfile?: boolean | undefined;
            awsApiKey?: string | undefined;
            awsUseApiKey?: boolean | undefined;
            awsCustomArn?: string | undefined;
            awsModelContextWindow?: number | undefined;
            awsBedrockEndpointEnabled?: boolean | undefined;
            awsBedrockEndpoint?: string | undefined;
            awsBedrock1MContext?: boolean | undefined;
            awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
            vertexKeyFile?: string | undefined;
            vertexJsonCredentials?: string | undefined;
            vertexProjectId?: string | undefined;
            vertexRegion?: string | undefined;
            vertex1MContext?: boolean | undefined;
            openAiBaseUrl?: string | undefined;
            openAiApiKey?: string | undefined;
            openAiR1FormatEnabled?: boolean | undefined;
            openAiModelId?: string | undefined;
            openAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            openAiUseAzure?: boolean | undefined;
            azureApiVersion?: string | undefined;
            openAiStreamingEnabled?: boolean | undefined;
            openAiHostHeader?: string | undefined;
            openAiHeaders?: Record<string, string> | undefined;
            ollamaModelId?: string | undefined;
            ollamaBaseUrl?: string | undefined;
            ollamaApiKey?: string | undefined;
            ollamaNumCtx?: number | undefined;
            vsCodeLmModelSelector?: {
                id?: string | undefined;
                family?: string | undefined;
                version?: string | undefined;
                vendor?: string | undefined;
            } | undefined;
            lmStudioModelId?: string | undefined;
            lmStudioBaseUrl?: string | undefined;
            lmStudioDraftModelId?: string | undefined;
            lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
            geminiApiKey?: string | undefined;
            googleGeminiBaseUrl?: string | undefined;
            geminiCliOAuthPath?: string | undefined;
            geminiCliProjectId?: string | undefined;
            openAiNativeApiKey?: string | undefined;
            openAiNativeBaseUrl?: string | undefined;
            openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
            mistralApiKey?: string | undefined;
            mistralCodestralUrl?: string | undefined;
            deepSeekBaseUrl?: string | undefined;
            deepSeekApiKey?: string | undefined;
            poeApiKey?: string | undefined;
            poeBaseUrl?: string | undefined;
            moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
            moonshotApiKey?: string | undefined;
            minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
            minimaxApiKey?: string | undefined;
            mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
            mimoApiKey?: string | undefined;
            requestyBaseUrl?: string | undefined;
            requestyApiKey?: string | undefined;
            requestyModelId?: string | undefined;
            unboundApiKey?: string | undefined;
            unboundModelId?: string | undefined;
            fakeAi?: unknown;
            xaiApiKey?: string | undefined;
            basetenApiKey?: string | undefined;
            litellmBaseUrl?: string | undefined;
            litellmApiKey?: string | undefined;
            litellmModelId?: string | undefined;
            litellmUsePromptCache?: boolean | undefined;
            sambaNovaApiKey?: string | undefined;
            zaiApiKey?: string | undefined;
            zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
            fireworksApiKey?: string | undefined;
            qwenCodeOauthPath?: string | undefined;
            rooApiKey?: string | undefined;
            vercelAiGatewayApiKey?: string | undefined;
            vercelAiGatewayModelId?: string | undefined;
            mode?: string | undefined;
            errorCode?: Record<string, Record<string, string>> | undefined;
            customInstructions?: string | undefined;
            customModes?: {
                name: string;
                slug: string;
                roleDefinition: string;
                groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                    description?: string | undefined;
                    fileRegex?: string | undefined;
                }])[];
                description?: string | undefined;
                apiProvider?: string | undefined;
                source?: "global" | "project" | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
                overrideSystemPrompt?: boolean | undefined;
                costrictCodeModeGroup?: string | undefined;
                subagents?: string[] | undefined;
                pure?: boolean | undefined;
                disableSwitchMode?: boolean | undefined;
                taskMode?: string | undefined;
            }[] | undefined;
            debug?: boolean | undefined;
            currentApiConfigName?: string | undefined;
            listApiConfigMeta?: {
                id: string;
                name: string;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                modelId?: string | undefined;
            }[] | undefined;
            pinnedApiConfigs?: Record<string, boolean> | undefined;
            autoCleanup?: {
                enabled?: boolean | undefined;
                strategy?: CleanupStrategy | undefined;
                retentionDays?: number | undefined;
                maxHistoryCount?: number | undefined;
                excludeActive?: boolean | undefined;
                cleanupOnStartup?: boolean | undefined;
            } | undefined;
            lastShownAnnouncementId?: string | undefined;
            taskHistory?: {
                number: number;
                ts: number;
                totalCost: number;
                id: string;
                task: string;
                tokensIn: number;
                tokensOut: number;
                status?: "active" | "completed" | "delegated" | undefined;
                rootTaskId?: string | undefined;
                parentTaskId?: string | undefined;
                cacheWrites?: number | undefined;
                cacheReads?: number | undefined;
                size?: number | undefined;
                workspace?: string | undefined;
                mode?: string | undefined;
                apiConfigName?: string | undefined;
                delegatedToId?: string | undefined;
                childIds?: string[] | undefined;
                awaitingChildId?: string | undefined;
                completedByChildId?: string | undefined;
                completionResultSummary?: string | undefined;
            }[] | undefined;
            dismissedUpsells?: string[] | undefined;
            clickedOnceNotices?: number[] | undefined;
            imageGenerationProvider?: "openrouter" | "roo" | undefined;
            openRouterImageApiKey?: string | undefined;
            openRouterImageGenerationSelectedModel?: string | undefined;
            customCondensingPrompt?: string | undefined;
            costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
            autoApprovalEnabled?: boolean | undefined;
            alwaysAllowReadOnly?: boolean | undefined;
            alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
            alwaysAllowWrite?: boolean | undefined;
            alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
            alwaysAllowWriteProtected?: boolean | undefined;
            writeDelayMs?: number | undefined;
            requestDelaySeconds?: number | undefined;
            alwaysAllowMcp?: boolean | undefined;
            alwaysAllowModeSwitch?: boolean | undefined;
            alwaysAllowSubtasks?: boolean | undefined;
            alwaysAllowExecute?: boolean | undefined;
            alwaysAllowFollowupQuestions?: boolean | undefined;
            followupAutoApproveTimeoutMs?: number | undefined;
            allowedCommands?: string[] | undefined;
            deniedCommands?: string[] | undefined;
            commandExecutionTimeout?: number | undefined;
            commandTimeoutAllowlist?: string[] | undefined;
            preventCompletionWithOpenTodos?: boolean | undefined;
            allowedMaxRequests?: number | null | undefined;
            allowedMaxCost?: number | null | undefined;
            autoCondenseContext?: boolean | undefined;
            autoCondenseContextPercent?: number | undefined;
            includeCurrentTime?: boolean | undefined;
            includeCurrentCost?: boolean | undefined;
            maxGitStatusFiles?: number | undefined;
            includeDiagnosticMessages?: boolean | undefined;
            maxDiagnosticMessages?: number | undefined;
            customStoragePath?: string | undefined;
            enableCheckpoints?: boolean | undefined;
            checkpointTimeout?: number | undefined;
            ttsEnabled?: boolean | undefined;
            ttsSpeed?: number | undefined;
            soundEnabled?: boolean | undefined;
            soundVolume?: number | undefined;
            maxOpenTabsContext?: number | undefined;
            maxWorkspaceFiles?: number | undefined;
            showRooIgnoredFiles?: boolean | undefined;
            enableSubfolderRules?: boolean | undefined;
            maxImageFileSize?: number | undefined;
            maxTotalImageSize?: number | undefined;
            terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
            terminalShellIntegrationTimeout?: number | undefined;
            terminalShellIntegrationDisabled?: boolean | undefined;
            terminalCommandDelay?: number | undefined;
            terminalPowershellCounter?: boolean | undefined;
            terminalZshClearEolMark?: boolean | undefined;
            terminalZshOhMy?: boolean | undefined;
            terminalZshP10k?: boolean | undefined;
            terminalZdotdir?: boolean | undefined;
            execaShellPath?: string | undefined;
            diagnosticsEnabled?: boolean | undefined;
            experiments?: {
                preventFocusDisruption?: boolean | undefined;
                imageGeneration?: boolean | undefined;
                runSlashCommand?: boolean | undefined;
                customTools?: boolean | undefined;
                chatSearch?: boolean | undefined;
                commitReview?: boolean | undefined;
                useKPTtree?: boolean | undefined;
                useLitePrompts?: boolean | undefined;
                smartMistakeDetection?: boolean | undefined;
            } | undefined;
            experimentSettings?: {
                smartMistakeDetectionConfig?: {
                    autoSwitchModel?: boolean | undefined;
                } | undefined;
            } | undefined;
            codebaseIndexModels?: {
                openai?: Record<string, {
                    dimension: number;
                }> | undefined;
                ollama?: Record<string, {
                    dimension: number;
                }> | undefined;
                "openai-compatible"?: Record<string, {
                    dimension: number;
                }> | undefined;
                gemini?: Record<string, {
                    dimension: number;
                }> | undefined;
                mistral?: Record<string, {
                    dimension: number;
                }> | undefined;
                "vercel-ai-gateway"?: Record<string, {
                    dimension: number;
                }> | undefined;
                bedrock?: Record<string, {
                    dimension: number;
                }> | undefined;
                openrouter?: Record<string, {
                    dimension: number;
                }> | undefined;
            } | undefined;
            codebaseIndexConfig?: {
                codebaseIndexEnabled?: boolean | undefined;
                codebaseIndexQdrantUrl?: string | undefined;
                codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                codebaseIndexEmbedderBaseUrl?: string | undefined;
                codebaseIndexEmbedderModelId?: string | undefined;
                codebaseIndexEmbedderModelDimension?: number | undefined;
                codebaseIndexSearchMinScore?: number | undefined;
                codebaseIndexSearchMaxResults?: number | undefined;
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codebaseIndexBedrockRegion?: string | undefined;
                codebaseIndexBedrockProfile?: string | undefined;
                codebaseIndexOpenRouterSpecificProvider?: string | undefined;
            } | undefined;
            telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
            mcpEnabled?: boolean | undefined;
            prevMode?: string | undefined;
            modeApiConfigs?: Record<string, string> | undefined;
            customModePrompts?: Record<string, {
                description?: string | undefined;
                roleDefinition?: string | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
            } | undefined> | undefined;
            customSupportPrompts?: Record<string, string | undefined> | undefined;
            enhancementApiConfigId?: string | undefined;
            includeTaskHistoryInEnhance?: boolean | undefined;
            historyPreviewCollapsed?: boolean | undefined;
            reasoningBlockCollapsed?: boolean | undefined;
            showSpeedInfo?: boolean | undefined;
            automaticallyFocus?: boolean | undefined;
            collapseMarkdownWithoutScroll?: boolean | undefined;
            enterBehavior?: "send" | "newline" | undefined;
            profileThresholds?: Record<string, number> | undefined;
            hasOpenedModeSelector?: boolean | undefined;
            hasClosedCodeReviewWelcomeTips?: boolean | undefined;
            lastModeExportPath?: string | undefined;
            lastModeImportPath?: string | undefined;
            lastSettingsExportPath?: string | undefined;
            lastTaskExportPath?: string | undefined;
            lastImageSavePath?: string | undefined;
            worktreeAutoOpenPath?: string | undefined;
            showWorktreesInHomeScreen?: boolean | undefined;
            disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
        };
        images?: string[] | undefined;
        newTab?: boolean | undefined;
    };
    commandName: TaskCommandName.StartNewTask;
}, {
    data: {
        text: string;
        configuration: {
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codeIndexOpenAiKey?: string | undefined;
            codeIndexQdrantApiKey?: string | undefined;
            codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
            codebaseIndexGeminiApiKey?: string | undefined;
            codebaseIndexMistralApiKey?: string | undefined;
            codebaseIndexVercelAiGatewayApiKey?: string | undefined;
            codebaseIndexOpenRouterApiKey?: string | undefined;
            reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            includeMaxTokens?: boolean | undefined;
            todoListEnabled?: boolean | undefined;
            modelTemperature?: number | null | undefined;
            rateLimitSeconds?: number | undefined;
            consecutiveMistakeLimit?: number | undefined;
            enableReasoningEffort?: boolean | undefined;
            modelMaxTokens?: number | undefined;
            modelMaxThinkingTokens?: number | undefined;
            verbosity?: "low" | "medium" | "high" | undefined;
            apiModelId?: string | undefined;
            costrictAccessToken?: string | undefined;
            costrictRefreshToken?: string | undefined;
            costrictState?: string | undefined;
            costrictBaseUrl?: string | undefined;
            costrictModelId?: string | undefined;
            costrictApiKeyUpdatedAt?: string | undefined;
            costrictApiKeyExpiredAt?: string | undefined;
            useCostrictCustomConfig?: boolean | undefined;
            costrictAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            apiKey?: string | undefined;
            anthropicBaseUrl?: string | undefined;
            anthropicUseAuthToken?: boolean | undefined;
            anthropicBeta1MContext?: boolean | undefined;
            openRouterApiKey?: string | undefined;
            openRouterModelId?: string | undefined;
            openRouterBaseUrl?: string | undefined;
            openRouterSpecificProvider?: string | undefined;
            awsAccessKey?: string | undefined;
            awsSecretKey?: string | undefined;
            awsSessionToken?: string | undefined;
            awsRegion?: string | undefined;
            awsUseCrossRegionInference?: boolean | undefined;
            awsUseGlobalInference?: boolean | undefined;
            awsUsePromptCache?: boolean | undefined;
            awsProfile?: string | undefined;
            awsUseProfile?: boolean | undefined;
            awsApiKey?: string | undefined;
            awsUseApiKey?: boolean | undefined;
            awsCustomArn?: string | undefined;
            awsModelContextWindow?: number | undefined;
            awsBedrockEndpointEnabled?: boolean | undefined;
            awsBedrockEndpoint?: string | undefined;
            awsBedrock1MContext?: boolean | undefined;
            awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
            vertexKeyFile?: string | undefined;
            vertexJsonCredentials?: string | undefined;
            vertexProjectId?: string | undefined;
            vertexRegion?: string | undefined;
            vertex1MContext?: boolean | undefined;
            openAiBaseUrl?: string | undefined;
            openAiApiKey?: string | undefined;
            openAiR1FormatEnabled?: boolean | undefined;
            openAiModelId?: string | undefined;
            openAiCustomModelInfo?: {
                contextWindow: number;
                supportsPromptCache: boolean;
                id?: string | undefined;
                maxTokens?: number | null | undefined;
                maxThinkingTokens?: number | null | undefined;
                supportsImages?: boolean | undefined;
                maxTokensKey?: string | undefined;
                creditConsumption?: number | undefined;
                creditDiscount?: number | undefined;
                promptCacheRetention?: "in_memory" | "24h" | undefined;
                supportsVerbosity?: boolean | undefined;
                supportsReasoningBudget?: boolean | undefined;
                supportsReasoningBinary?: boolean | undefined;
                supportsTemperature?: boolean | undefined;
                defaultTemperature?: number | undefined;
                requiredReasoningBudget?: boolean | undefined;
                supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                requiredReasoningEffort?: boolean | undefined;
                preserveReasoning?: boolean | undefined;
                supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                longContextPricing?: {
                    thresholdTokens: number;
                    inputPriceMultiplier?: number | undefined;
                    outputPriceMultiplier?: number | undefined;
                    cacheWritesPriceMultiplier?: number | undefined;
                    cacheReadsPriceMultiplier?: number | undefined;
                    appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                } | undefined;
                description?: string | undefined;
                reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                minTokensPerCachePoint?: number | undefined;
                maxCachePoints?: number | undefined;
                cachableFields?: string[] | undefined;
                deprecated?: boolean | undefined;
                isStealthModel?: boolean | undefined;
                isFree?: boolean | undefined;
                excludedTools?: string[] | undefined;
                includedTools?: string[] | undefined;
                tiers?: {
                    contextWindow: number;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    name?: "default" | "flex" | "priority" | undefined;
                }[] | undefined;
            } | null | undefined;
            openAiUseAzure?: boolean | undefined;
            azureApiVersion?: string | undefined;
            openAiStreamingEnabled?: boolean | undefined;
            openAiHostHeader?: string | undefined;
            openAiHeaders?: Record<string, string> | undefined;
            ollamaModelId?: string | undefined;
            ollamaBaseUrl?: string | undefined;
            ollamaApiKey?: string | undefined;
            ollamaNumCtx?: number | undefined;
            vsCodeLmModelSelector?: {
                id?: string | undefined;
                family?: string | undefined;
                version?: string | undefined;
                vendor?: string | undefined;
            } | undefined;
            lmStudioModelId?: string | undefined;
            lmStudioBaseUrl?: string | undefined;
            lmStudioDraftModelId?: string | undefined;
            lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
            geminiApiKey?: string | undefined;
            googleGeminiBaseUrl?: string | undefined;
            geminiCliOAuthPath?: string | undefined;
            geminiCliProjectId?: string | undefined;
            openAiNativeApiKey?: string | undefined;
            openAiNativeBaseUrl?: string | undefined;
            openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
            mistralApiKey?: string | undefined;
            mistralCodestralUrl?: string | undefined;
            deepSeekBaseUrl?: string | undefined;
            deepSeekApiKey?: string | undefined;
            poeApiKey?: string | undefined;
            poeBaseUrl?: string | undefined;
            moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
            moonshotApiKey?: string | undefined;
            minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
            minimaxApiKey?: string | undefined;
            mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
            mimoApiKey?: string | undefined;
            requestyBaseUrl?: string | undefined;
            requestyApiKey?: string | undefined;
            requestyModelId?: string | undefined;
            unboundApiKey?: string | undefined;
            unboundModelId?: string | undefined;
            fakeAi?: unknown;
            xaiApiKey?: string | undefined;
            basetenApiKey?: string | undefined;
            litellmBaseUrl?: string | undefined;
            litellmApiKey?: string | undefined;
            litellmModelId?: string | undefined;
            litellmUsePromptCache?: boolean | undefined;
            sambaNovaApiKey?: string | undefined;
            zaiApiKey?: string | undefined;
            zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
            fireworksApiKey?: string | undefined;
            qwenCodeOauthPath?: string | undefined;
            rooApiKey?: string | undefined;
            vercelAiGatewayApiKey?: string | undefined;
            vercelAiGatewayModelId?: string | undefined;
            mode?: string | undefined;
            errorCode?: Record<string, Record<string, string>> | undefined;
            customInstructions?: string | undefined;
            customModes?: {
                name: string;
                slug: string;
                roleDefinition: string;
                groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                    description?: string | undefined;
                    fileRegex?: string | undefined;
                }])[];
                description?: string | undefined;
                apiProvider?: string | undefined;
                source?: "global" | "project" | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
                overrideSystemPrompt?: boolean | undefined;
                costrictCodeModeGroup?: string | undefined;
                subagents?: string[] | undefined;
                pure?: boolean | undefined;
                disableSwitchMode?: boolean | undefined;
                taskMode?: string | undefined;
            }[] | undefined;
            debug?: boolean | undefined;
            currentApiConfigName?: string | undefined;
            listApiConfigMeta?: {
                id: string;
                name: string;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                modelId?: string | undefined;
            }[] | undefined;
            pinnedApiConfigs?: Record<string, boolean> | undefined;
            autoCleanup?: {
                enabled?: boolean | undefined;
                strategy?: CleanupStrategy | undefined;
                retentionDays?: number | undefined;
                maxHistoryCount?: number | undefined;
                excludeActive?: boolean | undefined;
                cleanupOnStartup?: boolean | undefined;
            } | undefined;
            lastShownAnnouncementId?: string | undefined;
            taskHistory?: {
                number: number;
                ts: number;
                totalCost: number;
                id: string;
                task: string;
                tokensIn: number;
                tokensOut: number;
                status?: "active" | "completed" | "delegated" | undefined;
                rootTaskId?: string | undefined;
                parentTaskId?: string | undefined;
                cacheWrites?: number | undefined;
                cacheReads?: number | undefined;
                size?: number | undefined;
                workspace?: string | undefined;
                mode?: string | undefined;
                apiConfigName?: string | undefined;
                delegatedToId?: string | undefined;
                childIds?: string[] | undefined;
                awaitingChildId?: string | undefined;
                completedByChildId?: string | undefined;
                completionResultSummary?: string | undefined;
            }[] | undefined;
            dismissedUpsells?: string[] | undefined;
            clickedOnceNotices?: number[] | undefined;
            imageGenerationProvider?: "openrouter" | "roo" | undefined;
            openRouterImageApiKey?: string | undefined;
            openRouterImageGenerationSelectedModel?: string | undefined;
            customCondensingPrompt?: string | undefined;
            costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
            autoApprovalEnabled?: boolean | undefined;
            alwaysAllowReadOnly?: boolean | undefined;
            alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
            alwaysAllowWrite?: boolean | undefined;
            alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
            alwaysAllowWriteProtected?: boolean | undefined;
            writeDelayMs?: number | undefined;
            requestDelaySeconds?: number | undefined;
            alwaysAllowMcp?: boolean | undefined;
            alwaysAllowModeSwitch?: boolean | undefined;
            alwaysAllowSubtasks?: boolean | undefined;
            alwaysAllowExecute?: boolean | undefined;
            alwaysAllowFollowupQuestions?: boolean | undefined;
            followupAutoApproveTimeoutMs?: number | undefined;
            allowedCommands?: string[] | undefined;
            deniedCommands?: string[] | undefined;
            commandExecutionTimeout?: number | undefined;
            commandTimeoutAllowlist?: string[] | undefined;
            preventCompletionWithOpenTodos?: boolean | undefined;
            allowedMaxRequests?: number | null | undefined;
            allowedMaxCost?: number | null | undefined;
            autoCondenseContext?: boolean | undefined;
            autoCondenseContextPercent?: number | undefined;
            includeCurrentTime?: boolean | undefined;
            includeCurrentCost?: boolean | undefined;
            maxGitStatusFiles?: number | undefined;
            includeDiagnosticMessages?: boolean | undefined;
            maxDiagnosticMessages?: number | undefined;
            customStoragePath?: string | undefined;
            enableCheckpoints?: boolean | undefined;
            checkpointTimeout?: number | undefined;
            ttsEnabled?: boolean | undefined;
            ttsSpeed?: number | undefined;
            soundEnabled?: boolean | undefined;
            soundVolume?: number | undefined;
            maxOpenTabsContext?: number | undefined;
            maxWorkspaceFiles?: number | undefined;
            showRooIgnoredFiles?: boolean | undefined;
            enableSubfolderRules?: boolean | undefined;
            maxImageFileSize?: number | undefined;
            maxTotalImageSize?: number | undefined;
            terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
            terminalShellIntegrationTimeout?: number | undefined;
            terminalShellIntegrationDisabled?: boolean | undefined;
            terminalCommandDelay?: number | undefined;
            terminalPowershellCounter?: boolean | undefined;
            terminalZshClearEolMark?: boolean | undefined;
            terminalZshOhMy?: boolean | undefined;
            terminalZshP10k?: boolean | undefined;
            terminalZdotdir?: boolean | undefined;
            execaShellPath?: string | undefined;
            diagnosticsEnabled?: boolean | undefined;
            experiments?: {
                preventFocusDisruption?: boolean | undefined;
                imageGeneration?: boolean | undefined;
                runSlashCommand?: boolean | undefined;
                customTools?: boolean | undefined;
                chatSearch?: boolean | undefined;
                commitReview?: boolean | undefined;
                useKPTtree?: boolean | undefined;
                useLitePrompts?: boolean | undefined;
                smartMistakeDetection?: boolean | undefined;
            } | undefined;
            experimentSettings?: {
                smartMistakeDetectionConfig?: {
                    autoSwitchModel?: boolean | undefined;
                } | undefined;
            } | undefined;
            codebaseIndexModels?: {
                openai?: Record<string, {
                    dimension: number;
                }> | undefined;
                ollama?: Record<string, {
                    dimension: number;
                }> | undefined;
                "openai-compatible"?: Record<string, {
                    dimension: number;
                }> | undefined;
                gemini?: Record<string, {
                    dimension: number;
                }> | undefined;
                mistral?: Record<string, {
                    dimension: number;
                }> | undefined;
                "vercel-ai-gateway"?: Record<string, {
                    dimension: number;
                }> | undefined;
                bedrock?: Record<string, {
                    dimension: number;
                }> | undefined;
                openrouter?: Record<string, {
                    dimension: number;
                }> | undefined;
            } | undefined;
            codebaseIndexConfig?: {
                codebaseIndexEnabled?: boolean | undefined;
                codebaseIndexQdrantUrl?: string | undefined;
                codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                codebaseIndexEmbedderBaseUrl?: string | undefined;
                codebaseIndexEmbedderModelId?: string | undefined;
                codebaseIndexEmbedderModelDimension?: number | undefined;
                codebaseIndexSearchMinScore?: number | undefined;
                codebaseIndexSearchMaxResults?: number | undefined;
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codebaseIndexBedrockRegion?: string | undefined;
                codebaseIndexBedrockProfile?: string | undefined;
                codebaseIndexOpenRouterSpecificProvider?: string | undefined;
            } | undefined;
            telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
            mcpEnabled?: boolean | undefined;
            prevMode?: string | undefined;
            modeApiConfigs?: Record<string, string> | undefined;
            customModePrompts?: Record<string, {
                description?: string | undefined;
                roleDefinition?: string | undefined;
                whenToUse?: string | undefined;
                customInstructions?: string | undefined;
            } | undefined> | undefined;
            customSupportPrompts?: Record<string, string | undefined> | undefined;
            enhancementApiConfigId?: string | undefined;
            includeTaskHistoryInEnhance?: boolean | undefined;
            historyPreviewCollapsed?: boolean | undefined;
            reasoningBlockCollapsed?: boolean | undefined;
            showSpeedInfo?: boolean | undefined;
            automaticallyFocus?: boolean | undefined;
            collapseMarkdownWithoutScroll?: boolean | undefined;
            enterBehavior?: "send" | "newline" | undefined;
            profileThresholds?: Record<string, number> | undefined;
            hasOpenedModeSelector?: boolean | undefined;
            hasClosedCodeReviewWelcomeTips?: boolean | undefined;
            lastModeExportPath?: string | undefined;
            lastModeImportPath?: string | undefined;
            lastSettingsExportPath?: string | undefined;
            lastTaskExportPath?: string | undefined;
            lastImageSavePath?: string | undefined;
            worktreeAutoOpenPath?: string | undefined;
            showWorktreesInHomeScreen?: boolean | undefined;
            disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
        };
        images?: string[] | undefined;
        newTab?: boolean | undefined;
    };
    commandName: TaskCommandName.StartNewTask;
}>, z.ZodObject<{
    commandName: z.ZodLiteral<TaskCommandName.CancelTask>;
}, "strip", z.ZodTypeAny, {
    commandName: TaskCommandName.CancelTask;
}, {
    commandName: TaskCommandName.CancelTask;
}>, z.ZodObject<{
    commandName: z.ZodLiteral<TaskCommandName.CloseTask>;
}, "strip", z.ZodTypeAny, {
    commandName: TaskCommandName.CloseTask;
}, {
    commandName: TaskCommandName.CloseTask;
}>, z.ZodObject<{
    commandName: z.ZodLiteral<TaskCommandName.ResumeTask>;
    data: z.ZodString;
}, "strip", z.ZodTypeAny, {
    data: string;
    commandName: TaskCommandName.ResumeTask;
}, {
    data: string;
    commandName: TaskCommandName.ResumeTask;
}>, z.ZodObject<{
    commandName: z.ZodLiteral<TaskCommandName.SendMessage>;
    data: z.ZodObject<{
        text: z.ZodOptional<z.ZodString>;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    }, "strip", z.ZodTypeAny, {
        text?: string | undefined;
        images?: string[] | undefined;
    }, {
        text?: string | undefined;
        images?: string[] | undefined;
    }>;
}, "strip", z.ZodTypeAny, {
    data: {
        text?: string | undefined;
        images?: string[] | undefined;
    };
    commandName: TaskCommandName.SendMessage;
}, {
    data: {
        text?: string | undefined;
        images?: string[] | undefined;
    };
    commandName: TaskCommandName.SendMessage;
}>, z.ZodObject<{
    commandName: z.ZodLiteral<TaskCommandName.GetCommands>;
}, "strip", z.ZodTypeAny, {
    commandName: TaskCommandName.GetCommands;
}, {
    commandName: TaskCommandName.GetCommands;
}>, z.ZodObject<{
    commandName: z.ZodLiteral<TaskCommandName.GetModes>;
}, "strip", z.ZodTypeAny, {
    commandName: TaskCommandName.GetModes;
}, {
    commandName: TaskCommandName.GetModes;
}>, z.ZodObject<{
    commandName: z.ZodLiteral<TaskCommandName.GetModels>;
}, "strip", z.ZodTypeAny, {
    commandName: TaskCommandName.GetModels;
}, {
    commandName: TaskCommandName.GetModels;
}>, z.ZodObject<{
    commandName: z.ZodLiteral<TaskCommandName.DeleteQueuedMessage>;
    data: z.ZodString;
}, "strip", z.ZodTypeAny, {
    data: string;
    commandName: TaskCommandName.DeleteQueuedMessage;
}, {
    data: string;
    commandName: TaskCommandName.DeleteQueuedMessage;
}>]>;
type TaskCommand = z.infer<typeof taskCommandSchema>;
/**
 * IpcMessage
 */
declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
    type: z.ZodLiteral<IpcMessageType.Ack>;
    origin: z.ZodLiteral<IpcOrigin.Server>;
    data: z.ZodObject<{
        clientId: z.ZodString;
        pid: z.ZodNumber;
        ppid: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        clientId: string;
        pid: number;
        ppid: number;
    }, {
        clientId: string;
        pid: number;
        ppid: number;
    }>;
}, "strip", z.ZodTypeAny, {
    type: IpcMessageType.Ack;
    data: {
        clientId: string;
        pid: number;
        ppid: number;
    };
    origin: IpcOrigin.Server;
}, {
    type: IpcMessageType.Ack;
    data: {
        clientId: string;
        pid: number;
        ppid: number;
    };
    origin: IpcOrigin.Server;
}>, z.ZodObject<{
    type: z.ZodLiteral<IpcMessageType.TaskCommand>;
    origin: z.ZodLiteral<IpcOrigin.Client>;
    clientId: z.ZodString;
    data: z.ZodDiscriminatedUnion<"commandName", [z.ZodObject<{
        commandName: z.ZodLiteral<TaskCommandName.StartNewTask>;
        data: z.ZodObject<{
            configuration: z.ZodObject<{
                codeIndexOpenAiKey: z.ZodOptional<z.ZodString>;
                codeIndexQdrantApiKey: z.ZodOptional<z.ZodString>;
                codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
                codebaseIndexOpenAiCompatibleApiKey: z.ZodOptional<z.ZodString>;
                codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
                codebaseIndexGeminiApiKey: z.ZodOptional<z.ZodString>;
                codebaseIndexMistralApiKey: z.ZodOptional<z.ZodString>;
                codebaseIndexVercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
                codebaseIndexOpenRouterApiKey: z.ZodOptional<z.ZodString>;
                includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
                todoListEnabled: z.ZodOptional<z.ZodBoolean>;
                modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
                enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
                reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
                modelMaxTokens: z.ZodOptional<z.ZodNumber>;
                modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
                verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
                vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
                vercelAiGatewayModelId: z.ZodOptional<z.ZodString>;
                apiModelId: z.ZodOptional<z.ZodString>;
                rooApiKey: z.ZodOptional<z.ZodString>;
                qwenCodeOauthPath: z.ZodOptional<z.ZodString>;
                fireworksApiKey: z.ZodOptional<z.ZodString>;
                zaiApiKey: z.ZodOptional<z.ZodString>;
                zaiApiLine: z.ZodOptional<z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>>;
                sambaNovaApiKey: z.ZodOptional<z.ZodString>;
                litellmBaseUrl: z.ZodOptional<z.ZodString>;
                litellmApiKey: z.ZodOptional<z.ZodString>;
                litellmModelId: z.ZodOptional<z.ZodString>;
                litellmUsePromptCache: z.ZodOptional<z.ZodBoolean>;
                basetenApiKey: z.ZodOptional<z.ZodString>;
                xaiApiKey: z.ZodOptional<z.ZodString>;
                fakeAi: z.ZodOptional<z.ZodUnknown>;
                unboundApiKey: z.ZodOptional<z.ZodString>;
                unboundModelId: z.ZodOptional<z.ZodString>;
                requestyBaseUrl: z.ZodOptional<z.ZodString>;
                requestyApiKey: z.ZodOptional<z.ZodString>;
                requestyModelId: z.ZodOptional<z.ZodString>;
                mimoBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-cn.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-sgp.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-ams.xiaomimimo.com/v1">]>>;
                mimoApiKey: z.ZodOptional<z.ZodString>;
                minimaxBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.minimax.io/v1">, z.ZodLiteral<"https://api.minimaxi.com/v1">]>>;
                minimaxApiKey: z.ZodOptional<z.ZodString>;
                moonshotBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.moonshot.ai/v1">, z.ZodLiteral<"https://api.moonshot.cn/v1">]>>;
                moonshotApiKey: z.ZodOptional<z.ZodString>;
                poeApiKey: z.ZodOptional<z.ZodString>;
                poeBaseUrl: z.ZodOptional<z.ZodString>;
                deepSeekBaseUrl: z.ZodOptional<z.ZodString>;
                deepSeekApiKey: z.ZodOptional<z.ZodString>;
                mistralApiKey: z.ZodOptional<z.ZodString>;
                mistralCodestralUrl: z.ZodOptional<z.ZodString>;
                openAiNativeApiKey: z.ZodOptional<z.ZodString>;
                openAiNativeBaseUrl: z.ZodOptional<z.ZodString>;
                openAiNativeServiceTier: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                geminiCliOAuthPath: z.ZodOptional<z.ZodString>;
                geminiCliProjectId: z.ZodOptional<z.ZodString>;
                geminiApiKey: z.ZodOptional<z.ZodString>;
                googleGeminiBaseUrl: z.ZodOptional<z.ZodString>;
                lmStudioModelId: z.ZodOptional<z.ZodString>;
                lmStudioBaseUrl: z.ZodOptional<z.ZodString>;
                lmStudioDraftModelId: z.ZodOptional<z.ZodString>;
                lmStudioSpeculativeDecodingEnabled: z.ZodOptional<z.ZodBoolean>;
                vsCodeLmModelSelector: z.ZodOptional<z.ZodObject<{
                    vendor: z.ZodOptional<z.ZodString>;
                    family: z.ZodOptional<z.ZodString>;
                    version: z.ZodOptional<z.ZodString>;
                    id: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    id?: string | undefined;
                    family?: string | undefined;
                    version?: string | undefined;
                    vendor?: string | undefined;
                }, {
                    id?: string | undefined;
                    family?: string | undefined;
                    version?: string | undefined;
                    vendor?: string | undefined;
                }>>;
                ollamaModelId: z.ZodOptional<z.ZodString>;
                ollamaBaseUrl: z.ZodOptional<z.ZodString>;
                ollamaApiKey: z.ZodOptional<z.ZodString>;
                ollamaNumCtx: z.ZodOptional<z.ZodNumber>;
                openAiBaseUrl: z.ZodOptional<z.ZodString>;
                openAiApiKey: z.ZodOptional<z.ZodString>;
                openAiR1FormatEnabled: z.ZodOptional<z.ZodBoolean>;
                openAiModelId: z.ZodOptional<z.ZodString>;
                openAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                    maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    contextWindow: z.ZodNumber;
                    supportsImages: z.ZodOptional<z.ZodBoolean>;
                    id: z.ZodOptional<z.ZodString>;
                    maxTokensKey: z.ZodOptional<z.ZodString>;
                    creditConsumption: z.ZodOptional<z.ZodNumber>;
                    creditDiscount: z.ZodOptional<z.ZodNumber>;
                    supportsPromptCache: z.ZodBoolean;
                    promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
                    supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
                    supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
                    supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
                    supportsTemperature: z.ZodOptional<z.ZodBoolean>;
                    defaultTemperature: z.ZodOptional<z.ZodNumber>;
                    requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
                    supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
                    requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
                    preserveReasoning: z.ZodOptional<z.ZodBoolean>;
                    supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
                    inputPrice: z.ZodOptional<z.ZodNumber>;
                    outputPrice: z.ZodOptional<z.ZodNumber>;
                    cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                    cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
                    longContextPricing: z.ZodOptional<z.ZodObject<{
                        thresholdTokens: z.ZodNumber;
                        inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                        outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                        cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                        cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                        appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
                    }, "strip", z.ZodTypeAny, {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    }, {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    }>>;
                    description: z.ZodOptional<z.ZodString>;
                    reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
                    minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
                    maxCachePoints: z.ZodOptional<z.ZodNumber>;
                    cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                    deprecated: z.ZodOptional<z.ZodBoolean>;
                    isStealthModel: z.ZodOptional<z.ZodBoolean>;
                    isFree: z.ZodOptional<z.ZodBoolean>;
                    excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                    includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                    tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                        contextWindow: z.ZodNumber;
                        inputPrice: z.ZodOptional<z.ZodNumber>;
                        outputPrice: z.ZodOptional<z.ZodNumber>;
                        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
                    }, "strip", z.ZodTypeAny, {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }, {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }>, "many">>;
                }, "strip", z.ZodTypeAny, {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                }, {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                }>>>;
                openAiUseAzure: z.ZodOptional<z.ZodBoolean>;
                azureApiVersion: z.ZodOptional<z.ZodString>;
                openAiStreamingEnabled: z.ZodOptional<z.ZodBoolean>;
                openAiHostHeader: z.ZodOptional<z.ZodString>;
                openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                vertexKeyFile: z.ZodOptional<z.ZodString>;
                vertexJsonCredentials: z.ZodOptional<z.ZodString>;
                vertexProjectId: z.ZodOptional<z.ZodString>;
                vertexRegion: z.ZodOptional<z.ZodString>;
                vertex1MContext: z.ZodOptional<z.ZodBoolean>;
                awsAccessKey: z.ZodOptional<z.ZodString>;
                awsSecretKey: z.ZodOptional<z.ZodString>;
                awsSessionToken: z.ZodOptional<z.ZodString>;
                awsRegion: z.ZodOptional<z.ZodString>;
                awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
                awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
                awsUsePromptCache: z.ZodOptional<z.ZodBoolean>;
                awsProfile: z.ZodOptional<z.ZodString>;
                awsUseProfile: z.ZodOptional<z.ZodBoolean>;
                awsApiKey: z.ZodOptional<z.ZodString>;
                awsUseApiKey: z.ZodOptional<z.ZodBoolean>;
                awsCustomArn: z.ZodOptional<z.ZodString>;
                awsModelContextWindow: z.ZodOptional<z.ZodNumber>;
                awsBedrockEndpointEnabled: z.ZodOptional<z.ZodBoolean>;
                awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
                awsBedrock1MContext: z.ZodOptional<z.ZodBoolean>;
                awsBedrockServiceTier: z.ZodOptional<z.ZodEnum<["STANDARD", "FLEX", "PRIORITY"]>>;
                openRouterApiKey: z.ZodOptional<z.ZodString>;
                openRouterModelId: z.ZodOptional<z.ZodString>;
                openRouterBaseUrl: z.ZodOptional<z.ZodString>;
                openRouterSpecificProvider: z.ZodOptional<z.ZodString>;
                apiKey: z.ZodOptional<z.ZodString>;
                anthropicBaseUrl: z.ZodOptional<z.ZodString>;
                anthropicUseAuthToken: z.ZodOptional<z.ZodBoolean>;
                anthropicBeta1MContext: z.ZodOptional<z.ZodBoolean>;
                costrictAccessToken: z.ZodOptional<z.ZodString>;
                costrictRefreshToken: z.ZodOptional<z.ZodString>;
                costrictState: z.ZodOptional<z.ZodString>;
                costrictBaseUrl: z.ZodOptional<z.ZodString>;
                costrictModelId: z.ZodOptional<z.ZodString>;
                costrictApiKeyUpdatedAt: z.ZodOptional<z.ZodString>;
                costrictApiKeyExpiredAt: z.ZodOptional<z.ZodString>;
                costrictAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
                    maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                    contextWindow: z.ZodNumber;
                    supportsImages: z.ZodOptional<z.ZodBoolean>;
                    id: z.ZodOptional<z.ZodString>;
                    maxTokensKey: z.ZodOptional<z.ZodString>;
                    creditConsumption: z.ZodOptional<z.ZodNumber>;
                    creditDiscount: z.ZodOptional<z.ZodNumber>;
                    supportsPromptCache: z.ZodBoolean;
                    promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
                    supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
                    supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
                    supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
                    supportsTemperature: z.ZodOptional<z.ZodBoolean>;
                    defaultTemperature: z.ZodOptional<z.ZodNumber>;
                    requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
                    supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
                    requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
                    preserveReasoning: z.ZodOptional<z.ZodBoolean>;
                    supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
                    inputPrice: z.ZodOptional<z.ZodNumber>;
                    outputPrice: z.ZodOptional<z.ZodNumber>;
                    cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                    cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
                    longContextPricing: z.ZodOptional<z.ZodObject<{
                        thresholdTokens: z.ZodNumber;
                        inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                        outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                        cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                        cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                        appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
                    }, "strip", z.ZodTypeAny, {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    }, {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    }>>;
                    description: z.ZodOptional<z.ZodString>;
                    reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
                    minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
                    maxCachePoints: z.ZodOptional<z.ZodNumber>;
                    cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                    deprecated: z.ZodOptional<z.ZodBoolean>;
                    isStealthModel: z.ZodOptional<z.ZodBoolean>;
                    isFree: z.ZodOptional<z.ZodBoolean>;
                    excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                    includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                    tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                        contextWindow: z.ZodNumber;
                        inputPrice: z.ZodOptional<z.ZodNumber>;
                        outputPrice: z.ZodOptional<z.ZodNumber>;
                        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
                    }, "strip", z.ZodTypeAny, {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }, {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }>, "many">>;
                }, "strip", z.ZodTypeAny, {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                }, {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                }>>>;
                apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
            } & {
                currentApiConfigName: z.ZodOptional<z.ZodString>;
                listApiConfigMeta: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    name: z.ZodString;
                    apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
                    modelId: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    id: string;
                    name: string;
                    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                    modelId?: string | undefined;
                }, {
                    id: string;
                    name: string;
                    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                    modelId?: string | undefined;
                }>, "many">>;
                pinnedApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
                debug: z.ZodOptional<z.ZodBoolean>;
                autoCleanup: z.ZodOptional<z.ZodObject<{
                    enabled: z.ZodOptional<z.ZodBoolean>;
                    strategy: z.ZodOptional<z.ZodNativeEnum<typeof CleanupStrategy>>;
                    retentionDays: z.ZodOptional<z.ZodNumber>;
                    maxHistoryCount: z.ZodOptional<z.ZodNumber>;
                    excludeActive: z.ZodOptional<z.ZodBoolean>;
                    cleanupOnStartup: z.ZodOptional<z.ZodBoolean>;
                }, "strip", z.ZodTypeAny, {
                    enabled?: boolean | undefined;
                    strategy?: CleanupStrategy | undefined;
                    retentionDays?: number | undefined;
                    maxHistoryCount?: number | undefined;
                    excludeActive?: boolean | undefined;
                    cleanupOnStartup?: boolean | undefined;
                }, {
                    enabled?: boolean | undefined;
                    strategy?: CleanupStrategy | undefined;
                    retentionDays?: number | undefined;
                    maxHistoryCount?: number | undefined;
                    excludeActive?: boolean | undefined;
                    cleanupOnStartup?: boolean | undefined;
                }>>;
                lastShownAnnouncementId: z.ZodOptional<z.ZodString>;
                customInstructions: z.ZodOptional<z.ZodString>;
                taskHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    rootTaskId: z.ZodOptional<z.ZodString>;
                    parentTaskId: z.ZodOptional<z.ZodString>;
                    number: z.ZodNumber;
                    ts: z.ZodNumber;
                    task: z.ZodString;
                    tokensIn: z.ZodNumber;
                    tokensOut: z.ZodNumber;
                    cacheWrites: z.ZodOptional<z.ZodNumber>;
                    cacheReads: z.ZodOptional<z.ZodNumber>;
                    totalCost: z.ZodNumber;
                    size: z.ZodOptional<z.ZodNumber>;
                    workspace: z.ZodOptional<z.ZodString>;
                    mode: z.ZodOptional<z.ZodString>;
                    apiConfigName: z.ZodOptional<z.ZodString>;
                    status: z.ZodOptional<z.ZodEnum<["active", "completed", "delegated"]>>;
                    delegatedToId: z.ZodOptional<z.ZodString>;
                    childIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                    awaitingChildId: z.ZodOptional<z.ZodString>;
                    completedByChildId: z.ZodOptional<z.ZodString>;
                    completionResultSummary: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    number: number;
                    ts: number;
                    totalCost: number;
                    id: string;
                    task: string;
                    tokensIn: number;
                    tokensOut: number;
                    status?: "active" | "completed" | "delegated" | undefined;
                    rootTaskId?: string | undefined;
                    parentTaskId?: string | undefined;
                    cacheWrites?: number | undefined;
                    cacheReads?: number | undefined;
                    size?: number | undefined;
                    workspace?: string | undefined;
                    mode?: string | undefined;
                    apiConfigName?: string | undefined;
                    delegatedToId?: string | undefined;
                    childIds?: string[] | undefined;
                    awaitingChildId?: string | undefined;
                    completedByChildId?: string | undefined;
                    completionResultSummary?: string | undefined;
                }, {
                    number: number;
                    ts: number;
                    totalCost: number;
                    id: string;
                    task: string;
                    tokensIn: number;
                    tokensOut: number;
                    status?: "active" | "completed" | "delegated" | undefined;
                    rootTaskId?: string | undefined;
                    parentTaskId?: string | undefined;
                    cacheWrites?: number | undefined;
                    cacheReads?: number | undefined;
                    size?: number | undefined;
                    workspace?: string | undefined;
                    mode?: string | undefined;
                    apiConfigName?: string | undefined;
                    delegatedToId?: string | undefined;
                    childIds?: string[] | undefined;
                    awaitingChildId?: string | undefined;
                    completedByChildId?: string | undefined;
                    completionResultSummary?: string | undefined;
                }>, "many">>;
                dismissedUpsells: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                clickedOnceNotices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
                imageGenerationProvider: z.ZodOptional<z.ZodEnum<["openrouter", "roo"]>>;
                openRouterImageApiKey: z.ZodOptional<z.ZodString>;
                openRouterImageGenerationSelectedModel: z.ZodOptional<z.ZodString>;
                customCondensingPrompt: z.ZodOptional<z.ZodString>;
                useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
                costrictCodeMode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"vibe">, z.ZodLiteral<"strict">, z.ZodLiteral<"raw">, z.ZodLiteral<"plan">]>>;
                autoApprovalEnabled: z.ZodOptional<z.ZodBoolean>;
                alwaysAllowReadOnly: z.ZodOptional<z.ZodBoolean>;
                alwaysAllowReadOnlyOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
                alwaysAllowWrite: z.ZodOptional<z.ZodBoolean>;
                alwaysAllowWriteOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
                alwaysAllowWriteProtected: z.ZodOptional<z.ZodBoolean>;
                writeDelayMs: z.ZodOptional<z.ZodNumber>;
                requestDelaySeconds: z.ZodOptional<z.ZodNumber>;
                alwaysAllowMcp: z.ZodOptional<z.ZodBoolean>;
                alwaysAllowModeSwitch: z.ZodOptional<z.ZodBoolean>;
                alwaysAllowSubtasks: z.ZodOptional<z.ZodBoolean>;
                alwaysAllowExecute: z.ZodOptional<z.ZodBoolean>;
                alwaysAllowFollowupQuestions: z.ZodOptional<z.ZodBoolean>;
                followupAutoApproveTimeoutMs: z.ZodOptional<z.ZodNumber>;
                allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
                commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
                allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                allowedMaxCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
                autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
                autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
                includeCurrentTime: z.ZodOptional<z.ZodBoolean>;
                includeCurrentCost: z.ZodOptional<z.ZodBoolean>;
                maxGitStatusFiles: z.ZodOptional<z.ZodNumber>;
                includeDiagnosticMessages: z.ZodOptional<z.ZodBoolean>;
                maxDiagnosticMessages: z.ZodOptional<z.ZodNumber>;
                customStoragePath: z.ZodOptional<z.ZodString>;
                enableCheckpoints: z.ZodOptional<z.ZodBoolean>;
                checkpointTimeout: z.ZodOptional<z.ZodNumber>;
                ttsEnabled: z.ZodOptional<z.ZodBoolean>;
                ttsSpeed: z.ZodOptional<z.ZodNumber>;
                soundEnabled: z.ZodOptional<z.ZodBoolean>;
                soundVolume: z.ZodOptional<z.ZodNumber>;
                maxOpenTabsContext: z.ZodOptional<z.ZodNumber>;
                maxWorkspaceFiles: z.ZodOptional<z.ZodNumber>;
                showRooIgnoredFiles: z.ZodOptional<z.ZodBoolean>;
                enableSubfolderRules: z.ZodOptional<z.ZodBoolean>;
                maxImageFileSize: z.ZodOptional<z.ZodNumber>;
                maxTotalImageSize: z.ZodOptional<z.ZodNumber>;
                terminalOutputPreviewSize: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
                terminalShellIntegrationTimeout: z.ZodOptional<z.ZodNumber>;
                terminalShellIntegrationDisabled: z.ZodOptional<z.ZodBoolean>;
                terminalCommandDelay: z.ZodOptional<z.ZodNumber>;
                terminalPowershellCounter: z.ZodOptional<z.ZodBoolean>;
                terminalZshClearEolMark: z.ZodOptional<z.ZodBoolean>;
                terminalZshOhMy: z.ZodOptional<z.ZodBoolean>;
                terminalZshP10k: z.ZodOptional<z.ZodBoolean>;
                terminalZdotdir: z.ZodOptional<z.ZodBoolean>;
                execaShellPath: z.ZodOptional<z.ZodString>;
                diagnosticsEnabled: z.ZodOptional<z.ZodBoolean>;
                rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
                experiments: z.ZodOptional<z.ZodObject<{
                    chatSearch: z.ZodOptional<z.ZodBoolean>;
                    useKPTtree: z.ZodOptional<z.ZodBoolean>;
                    commitReview: z.ZodOptional<z.ZodBoolean>;
                    useLitePrompts: z.ZodOptional<z.ZodBoolean>;
                    preventFocusDisruption: z.ZodOptional<z.ZodBoolean>;
                    imageGeneration: z.ZodOptional<z.ZodBoolean>;
                    runSlashCommand: z.ZodOptional<z.ZodBoolean>;
                    customTools: z.ZodOptional<z.ZodBoolean>;
                    smartMistakeDetection: z.ZodOptional<z.ZodBoolean>;
                }, "strip", z.ZodTypeAny, {
                    preventFocusDisruption?: boolean | undefined;
                    imageGeneration?: boolean | undefined;
                    runSlashCommand?: boolean | undefined;
                    customTools?: boolean | undefined;
                    chatSearch?: boolean | undefined;
                    commitReview?: boolean | undefined;
                    useKPTtree?: boolean | undefined;
                    useLitePrompts?: boolean | undefined;
                    smartMistakeDetection?: boolean | undefined;
                }, {
                    preventFocusDisruption?: boolean | undefined;
                    imageGeneration?: boolean | undefined;
                    runSlashCommand?: boolean | undefined;
                    customTools?: boolean | undefined;
                    chatSearch?: boolean | undefined;
                    commitReview?: boolean | undefined;
                    useKPTtree?: boolean | undefined;
                    useLitePrompts?: boolean | undefined;
                    smartMistakeDetection?: boolean | undefined;
                }>>;
                experimentSettings: z.ZodOptional<z.ZodObject<{
                    smartMistakeDetectionConfig: z.ZodOptional<z.ZodObject<{
                        autoSwitchModel: z.ZodOptional<z.ZodBoolean>;
                    }, "strip", z.ZodTypeAny, {
                        autoSwitchModel?: boolean | undefined;
                    }, {
                        autoSwitchModel?: boolean | undefined;
                    }>>;
                }, "strip", z.ZodTypeAny, {
                    smartMistakeDetectionConfig?: {
                        autoSwitchModel?: boolean | undefined;
                    } | undefined;
                }, {
                    smartMistakeDetectionConfig?: {
                        autoSwitchModel?: boolean | undefined;
                    } | undefined;
                }>>;
                codebaseIndexModels: z.ZodOptional<z.ZodObject<{
                    openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                        dimension: z.ZodNumber;
                    }, "strip", z.ZodTypeAny, {
                        dimension: number;
                    }, {
                        dimension: number;
                    }>>>;
                    ollama: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                        dimension: z.ZodNumber;
                    }, "strip", z.ZodTypeAny, {
                        dimension: number;
                    }, {
                        dimension: number;
                    }>>>;
                    "openai-compatible": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                        dimension: z.ZodNumber;
                    }, "strip", z.ZodTypeAny, {
                        dimension: number;
                    }, {
                        dimension: number;
                    }>>>;
                    gemini: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                        dimension: z.ZodNumber;
                    }, "strip", z.ZodTypeAny, {
                        dimension: number;
                    }, {
                        dimension: number;
                    }>>>;
                    mistral: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                        dimension: z.ZodNumber;
                    }, "strip", z.ZodTypeAny, {
                        dimension: number;
                    }, {
                        dimension: number;
                    }>>>;
                    "vercel-ai-gateway": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                        dimension: z.ZodNumber;
                    }, "strip", z.ZodTypeAny, {
                        dimension: number;
                    }, {
                        dimension: number;
                    }>>>;
                    openrouter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                        dimension: z.ZodNumber;
                    }, "strip", z.ZodTypeAny, {
                        dimension: number;
                    }, {
                        dimension: number;
                    }>>>;
                    bedrock: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                        dimension: z.ZodNumber;
                    }, "strip", z.ZodTypeAny, {
                        dimension: number;
                    }, {
                        dimension: number;
                    }>>>;
                }, "strip", z.ZodTypeAny, {
                    openai?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    ollama?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "openai-compatible"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    gemini?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    mistral?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "vercel-ai-gateway"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    bedrock?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    openrouter?: Record<string, {
                        dimension: number;
                    }> | undefined;
                }, {
                    openai?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    ollama?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "openai-compatible"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    gemini?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    mistral?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "vercel-ai-gateway"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    bedrock?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    openrouter?: Record<string, {
                        dimension: number;
                    }> | undefined;
                }>>;
                codebaseIndexConfig: z.ZodOptional<z.ZodObject<{
                    codebaseIndexEnabled: z.ZodOptional<z.ZodBoolean>;
                    codebaseIndexQdrantUrl: z.ZodOptional<z.ZodString>;
                    codebaseIndexEmbedderProvider: z.ZodOptional<z.ZodEnum<["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway", "bedrock", "openrouter"]>>;
                    codebaseIndexEmbedderBaseUrl: z.ZodOptional<z.ZodString>;
                    codebaseIndexEmbedderModelId: z.ZodOptional<z.ZodString>;
                    codebaseIndexEmbedderModelDimension: z.ZodOptional<z.ZodNumber>;
                    codebaseIndexSearchMinScore: z.ZodOptional<z.ZodNumber>;
                    codebaseIndexSearchMaxResults: z.ZodOptional<z.ZodNumber>;
                    codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
                    codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
                    codebaseIndexBedrockRegion: z.ZodOptional<z.ZodString>;
                    codebaseIndexBedrockProfile: z.ZodOptional<z.ZodString>;
                    codebaseIndexOpenRouterSpecificProvider: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    codebaseIndexEnabled?: boolean | undefined;
                    codebaseIndexQdrantUrl?: string | undefined;
                    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                    codebaseIndexEmbedderBaseUrl?: string | undefined;
                    codebaseIndexEmbedderModelId?: string | undefined;
                    codebaseIndexEmbedderModelDimension?: number | undefined;
                    codebaseIndexSearchMinScore?: number | undefined;
                    codebaseIndexSearchMaxResults?: number | undefined;
                    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                    codebaseIndexBedrockRegion?: string | undefined;
                    codebaseIndexBedrockProfile?: string | undefined;
                    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
                }, {
                    codebaseIndexEnabled?: boolean | undefined;
                    codebaseIndexQdrantUrl?: string | undefined;
                    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                    codebaseIndexEmbedderBaseUrl?: string | undefined;
                    codebaseIndexEmbedderModelId?: string | undefined;
                    codebaseIndexEmbedderModelDimension?: number | undefined;
                    codebaseIndexSearchMinScore?: number | undefined;
                    codebaseIndexSearchMaxResults?: number | undefined;
                    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                    codebaseIndexBedrockRegion?: string | undefined;
                    codebaseIndexBedrockProfile?: string | undefined;
                    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
                }>>;
                language: z.ZodOptional<z.ZodEnum<["ca", "de", "en", "es", "fr", "hi", "id", "it", "ja", "ko", "nl", "pl", "pt-BR", "ru", "tr", "vi", "zh-CN", "zh-TW"]>>;
                telemetrySetting: z.ZodOptional<z.ZodEnum<["unset", "enabled", "disabled"]>>;
                mcpEnabled: z.ZodOptional<z.ZodBoolean>;
                mode: z.ZodOptional<z.ZodString>;
                prevMode: z.ZodOptional<z.ZodString>;
                modeApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                customModes: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    slug: z.ZodString;
                    name: z.ZodString;
                    roleDefinition: z.ZodString;
                    whenToUse: z.ZodOptional<z.ZodString>;
                    description: z.ZodOptional<z.ZodString>;
                    customInstructions: z.ZodOptional<z.ZodString>;
                    groups: z.ZodType<("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[], z.ZodTypeDef, ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[]>;
                    overrideSystemPrompt: z.ZodOptional<z.ZodBoolean>;
                    source: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
                    costrictCodeModeGroup: z.ZodOptional<z.ZodDefault<z.ZodString>>;
                    apiProvider: z.ZodOptional<z.ZodString>;
                    subagents: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
                    pure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
                    disableSwitchMode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
                    taskMode: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    name: string;
                    slug: string;
                    roleDefinition: string;
                    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[];
                    description?: string | undefined;
                    apiProvider?: string | undefined;
                    source?: "global" | "project" | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                    overrideSystemPrompt?: boolean | undefined;
                    costrictCodeModeGroup?: string | undefined;
                    subagents?: string[] | undefined;
                    pure?: boolean | undefined;
                    disableSwitchMode?: boolean | undefined;
                    taskMode?: string | undefined;
                }, {
                    name: string;
                    slug: string;
                    roleDefinition: string;
                    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[];
                    description?: string | undefined;
                    apiProvider?: string | undefined;
                    source?: "global" | "project" | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                    overrideSystemPrompt?: boolean | undefined;
                    costrictCodeModeGroup?: string | undefined;
                    subagents?: string[] | undefined;
                    pure?: boolean | undefined;
                    disableSwitchMode?: boolean | undefined;
                    taskMode?: string | undefined;
                }>, "many">>;
                customModePrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
                    roleDefinition: z.ZodOptional<z.ZodString>;
                    whenToUse: z.ZodOptional<z.ZodString>;
                    description: z.ZodOptional<z.ZodString>;
                    customInstructions: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    description?: string | undefined;
                    roleDefinition?: string | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                }, {
                    description?: string | undefined;
                    roleDefinition?: string | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                }>>>>;
                customSupportPrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
                enhancementApiConfigId: z.ZodOptional<z.ZodString>;
                includeTaskHistoryInEnhance: z.ZodOptional<z.ZodBoolean>;
                historyPreviewCollapsed: z.ZodOptional<z.ZodBoolean>;
                reasoningBlockCollapsed: z.ZodOptional<z.ZodBoolean>;
                showSpeedInfo: z.ZodOptional<z.ZodBoolean>;
                automaticallyFocus: z.ZodOptional<z.ZodBoolean>;
                collapseMarkdownWithoutScroll: z.ZodOptional<z.ZodBoolean>;
                enterBehavior: z.ZodOptional<z.ZodEnum<["send", "newline"]>>;
                profileThresholds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
                hasOpenedModeSelector: z.ZodOptional<z.ZodBoolean>;
                hasClosedCodeReviewWelcomeTips: z.ZodOptional<z.ZodBoolean>;
                lastModeExportPath: z.ZodOptional<z.ZodString>;
                lastModeImportPath: z.ZodOptional<z.ZodString>;
                lastSettingsExportPath: z.ZodOptional<z.ZodString>;
                lastTaskExportPath: z.ZodOptional<z.ZodString>;
                lastImageSavePath: z.ZodOptional<z.ZodString>;
                errorCode: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
                worktreeAutoOpenPath: z.ZodOptional<z.ZodString>;
                showWorktreesInHomeScreen: z.ZodOptional<z.ZodBoolean>;
                disabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, "many">>;
            }, "strip", z.ZodTypeAny, {
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codeIndexOpenAiKey?: string | undefined;
                codeIndexQdrantApiKey?: string | undefined;
                codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
                codebaseIndexGeminiApiKey?: string | undefined;
                codebaseIndexMistralApiKey?: string | undefined;
                codebaseIndexVercelAiGatewayApiKey?: string | undefined;
                codebaseIndexOpenRouterApiKey?: string | undefined;
                reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                includeMaxTokens?: boolean | undefined;
                todoListEnabled?: boolean | undefined;
                modelTemperature?: number | null | undefined;
                rateLimitSeconds?: number | undefined;
                consecutiveMistakeLimit?: number | undefined;
                enableReasoningEffort?: boolean | undefined;
                modelMaxTokens?: number | undefined;
                modelMaxThinkingTokens?: number | undefined;
                verbosity?: "low" | "medium" | "high" | undefined;
                apiModelId?: string | undefined;
                costrictAccessToken?: string | undefined;
                costrictRefreshToken?: string | undefined;
                costrictState?: string | undefined;
                costrictBaseUrl?: string | undefined;
                costrictModelId?: string | undefined;
                costrictApiKeyUpdatedAt?: string | undefined;
                costrictApiKeyExpiredAt?: string | undefined;
                useCostrictCustomConfig?: boolean | undefined;
                costrictAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                apiKey?: string | undefined;
                anthropicBaseUrl?: string | undefined;
                anthropicUseAuthToken?: boolean | undefined;
                anthropicBeta1MContext?: boolean | undefined;
                openRouterApiKey?: string | undefined;
                openRouterModelId?: string | undefined;
                openRouterBaseUrl?: string | undefined;
                openRouterSpecificProvider?: string | undefined;
                awsAccessKey?: string | undefined;
                awsSecretKey?: string | undefined;
                awsSessionToken?: string | undefined;
                awsRegion?: string | undefined;
                awsUseCrossRegionInference?: boolean | undefined;
                awsUseGlobalInference?: boolean | undefined;
                awsUsePromptCache?: boolean | undefined;
                awsProfile?: string | undefined;
                awsUseProfile?: boolean | undefined;
                awsApiKey?: string | undefined;
                awsUseApiKey?: boolean | undefined;
                awsCustomArn?: string | undefined;
                awsModelContextWindow?: number | undefined;
                awsBedrockEndpointEnabled?: boolean | undefined;
                awsBedrockEndpoint?: string | undefined;
                awsBedrock1MContext?: boolean | undefined;
                awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
                vertexKeyFile?: string | undefined;
                vertexJsonCredentials?: string | undefined;
                vertexProjectId?: string | undefined;
                vertexRegion?: string | undefined;
                vertex1MContext?: boolean | undefined;
                openAiBaseUrl?: string | undefined;
                openAiApiKey?: string | undefined;
                openAiR1FormatEnabled?: boolean | undefined;
                openAiModelId?: string | undefined;
                openAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                openAiUseAzure?: boolean | undefined;
                azureApiVersion?: string | undefined;
                openAiStreamingEnabled?: boolean | undefined;
                openAiHostHeader?: string | undefined;
                openAiHeaders?: Record<string, string> | undefined;
                ollamaModelId?: string | undefined;
                ollamaBaseUrl?: string | undefined;
                ollamaApiKey?: string | undefined;
                ollamaNumCtx?: number | undefined;
                vsCodeLmModelSelector?: {
                    id?: string | undefined;
                    family?: string | undefined;
                    version?: string | undefined;
                    vendor?: string | undefined;
                } | undefined;
                lmStudioModelId?: string | undefined;
                lmStudioBaseUrl?: string | undefined;
                lmStudioDraftModelId?: string | undefined;
                lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
                geminiApiKey?: string | undefined;
                googleGeminiBaseUrl?: string | undefined;
                geminiCliOAuthPath?: string | undefined;
                geminiCliProjectId?: string | undefined;
                openAiNativeApiKey?: string | undefined;
                openAiNativeBaseUrl?: string | undefined;
                openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
                mistralApiKey?: string | undefined;
                mistralCodestralUrl?: string | undefined;
                deepSeekBaseUrl?: string | undefined;
                deepSeekApiKey?: string | undefined;
                poeApiKey?: string | undefined;
                poeBaseUrl?: string | undefined;
                moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
                moonshotApiKey?: string | undefined;
                minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
                minimaxApiKey?: string | undefined;
                mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
                mimoApiKey?: string | undefined;
                requestyBaseUrl?: string | undefined;
                requestyApiKey?: string | undefined;
                requestyModelId?: string | undefined;
                unboundApiKey?: string | undefined;
                unboundModelId?: string | undefined;
                fakeAi?: unknown;
                xaiApiKey?: string | undefined;
                basetenApiKey?: string | undefined;
                litellmBaseUrl?: string | undefined;
                litellmApiKey?: string | undefined;
                litellmModelId?: string | undefined;
                litellmUsePromptCache?: boolean | undefined;
                sambaNovaApiKey?: string | undefined;
                zaiApiKey?: string | undefined;
                zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
                fireworksApiKey?: string | undefined;
                qwenCodeOauthPath?: string | undefined;
                rooApiKey?: string | undefined;
                vercelAiGatewayApiKey?: string | undefined;
                vercelAiGatewayModelId?: string | undefined;
                mode?: string | undefined;
                errorCode?: Record<string, Record<string, string>> | undefined;
                customInstructions?: string | undefined;
                customModes?: {
                    name: string;
                    slug: string;
                    roleDefinition: string;
                    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[];
                    description?: string | undefined;
                    apiProvider?: string | undefined;
                    source?: "global" | "project" | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                    overrideSystemPrompt?: boolean | undefined;
                    costrictCodeModeGroup?: string | undefined;
                    subagents?: string[] | undefined;
                    pure?: boolean | undefined;
                    disableSwitchMode?: boolean | undefined;
                    taskMode?: string | undefined;
                }[] | undefined;
                debug?: boolean | undefined;
                currentApiConfigName?: string | undefined;
                listApiConfigMeta?: {
                    id: string;
                    name: string;
                    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                    modelId?: string | undefined;
                }[] | undefined;
                pinnedApiConfigs?: Record<string, boolean> | undefined;
                autoCleanup?: {
                    enabled?: boolean | undefined;
                    strategy?: CleanupStrategy | undefined;
                    retentionDays?: number | undefined;
                    maxHistoryCount?: number | undefined;
                    excludeActive?: boolean | undefined;
                    cleanupOnStartup?: boolean | undefined;
                } | undefined;
                lastShownAnnouncementId?: string | undefined;
                taskHistory?: {
                    number: number;
                    ts: number;
                    totalCost: number;
                    id: string;
                    task: string;
                    tokensIn: number;
                    tokensOut: number;
                    status?: "active" | "completed" | "delegated" | undefined;
                    rootTaskId?: string | undefined;
                    parentTaskId?: string | undefined;
                    cacheWrites?: number | undefined;
                    cacheReads?: number | undefined;
                    size?: number | undefined;
                    workspace?: string | undefined;
                    mode?: string | undefined;
                    apiConfigName?: string | undefined;
                    delegatedToId?: string | undefined;
                    childIds?: string[] | undefined;
                    awaitingChildId?: string | undefined;
                    completedByChildId?: string | undefined;
                    completionResultSummary?: string | undefined;
                }[] | undefined;
                dismissedUpsells?: string[] | undefined;
                clickedOnceNotices?: number[] | undefined;
                imageGenerationProvider?: "openrouter" | "roo" | undefined;
                openRouterImageApiKey?: string | undefined;
                openRouterImageGenerationSelectedModel?: string | undefined;
                customCondensingPrompt?: string | undefined;
                costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
                autoApprovalEnabled?: boolean | undefined;
                alwaysAllowReadOnly?: boolean | undefined;
                alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
                alwaysAllowWrite?: boolean | undefined;
                alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
                alwaysAllowWriteProtected?: boolean | undefined;
                writeDelayMs?: number | undefined;
                requestDelaySeconds?: number | undefined;
                alwaysAllowMcp?: boolean | undefined;
                alwaysAllowModeSwitch?: boolean | undefined;
                alwaysAllowSubtasks?: boolean | undefined;
                alwaysAllowExecute?: boolean | undefined;
                alwaysAllowFollowupQuestions?: boolean | undefined;
                followupAutoApproveTimeoutMs?: number | undefined;
                allowedCommands?: string[] | undefined;
                deniedCommands?: string[] | undefined;
                commandExecutionTimeout?: number | undefined;
                commandTimeoutAllowlist?: string[] | undefined;
                preventCompletionWithOpenTodos?: boolean | undefined;
                allowedMaxRequests?: number | null | undefined;
                allowedMaxCost?: number | null | undefined;
                autoCondenseContext?: boolean | undefined;
                autoCondenseContextPercent?: number | undefined;
                includeCurrentTime?: boolean | undefined;
                includeCurrentCost?: boolean | undefined;
                maxGitStatusFiles?: number | undefined;
                includeDiagnosticMessages?: boolean | undefined;
                maxDiagnosticMessages?: number | undefined;
                customStoragePath?: string | undefined;
                enableCheckpoints?: boolean | undefined;
                checkpointTimeout?: number | undefined;
                ttsEnabled?: boolean | undefined;
                ttsSpeed?: number | undefined;
                soundEnabled?: boolean | undefined;
                soundVolume?: number | undefined;
                maxOpenTabsContext?: number | undefined;
                maxWorkspaceFiles?: number | undefined;
                showRooIgnoredFiles?: boolean | undefined;
                enableSubfolderRules?: boolean | undefined;
                maxImageFileSize?: number | undefined;
                maxTotalImageSize?: number | undefined;
                terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
                terminalShellIntegrationTimeout?: number | undefined;
                terminalShellIntegrationDisabled?: boolean | undefined;
                terminalCommandDelay?: number | undefined;
                terminalPowershellCounter?: boolean | undefined;
                terminalZshClearEolMark?: boolean | undefined;
                terminalZshOhMy?: boolean | undefined;
                terminalZshP10k?: boolean | undefined;
                terminalZdotdir?: boolean | undefined;
                execaShellPath?: string | undefined;
                diagnosticsEnabled?: boolean | undefined;
                experiments?: {
                    preventFocusDisruption?: boolean | undefined;
                    imageGeneration?: boolean | undefined;
                    runSlashCommand?: boolean | undefined;
                    customTools?: boolean | undefined;
                    chatSearch?: boolean | undefined;
                    commitReview?: boolean | undefined;
                    useKPTtree?: boolean | undefined;
                    useLitePrompts?: boolean | undefined;
                    smartMistakeDetection?: boolean | undefined;
                } | undefined;
                experimentSettings?: {
                    smartMistakeDetectionConfig?: {
                        autoSwitchModel?: boolean | undefined;
                    } | undefined;
                } | undefined;
                codebaseIndexModels?: {
                    openai?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    ollama?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "openai-compatible"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    gemini?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    mistral?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "vercel-ai-gateway"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    bedrock?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    openrouter?: Record<string, {
                        dimension: number;
                    }> | undefined;
                } | undefined;
                codebaseIndexConfig?: {
                    codebaseIndexEnabled?: boolean | undefined;
                    codebaseIndexQdrantUrl?: string | undefined;
                    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                    codebaseIndexEmbedderBaseUrl?: string | undefined;
                    codebaseIndexEmbedderModelId?: string | undefined;
                    codebaseIndexEmbedderModelDimension?: number | undefined;
                    codebaseIndexSearchMinScore?: number | undefined;
                    codebaseIndexSearchMaxResults?: number | undefined;
                    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                    codebaseIndexBedrockRegion?: string | undefined;
                    codebaseIndexBedrockProfile?: string | undefined;
                    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
                } | undefined;
                telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
                mcpEnabled?: boolean | undefined;
                prevMode?: string | undefined;
                modeApiConfigs?: Record<string, string> | undefined;
                customModePrompts?: Record<string, {
                    description?: string | undefined;
                    roleDefinition?: string | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                } | undefined> | undefined;
                customSupportPrompts?: Record<string, string | undefined> | undefined;
                enhancementApiConfigId?: string | undefined;
                includeTaskHistoryInEnhance?: boolean | undefined;
                historyPreviewCollapsed?: boolean | undefined;
                reasoningBlockCollapsed?: boolean | undefined;
                showSpeedInfo?: boolean | undefined;
                automaticallyFocus?: boolean | undefined;
                collapseMarkdownWithoutScroll?: boolean | undefined;
                enterBehavior?: "send" | "newline" | undefined;
                profileThresholds?: Record<string, number> | undefined;
                hasOpenedModeSelector?: boolean | undefined;
                hasClosedCodeReviewWelcomeTips?: boolean | undefined;
                lastModeExportPath?: string | undefined;
                lastModeImportPath?: string | undefined;
                lastSettingsExportPath?: string | undefined;
                lastTaskExportPath?: string | undefined;
                lastImageSavePath?: string | undefined;
                worktreeAutoOpenPath?: string | undefined;
                showWorktreesInHomeScreen?: boolean | undefined;
                disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
            }, {
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codeIndexOpenAiKey?: string | undefined;
                codeIndexQdrantApiKey?: string | undefined;
                codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
                codebaseIndexGeminiApiKey?: string | undefined;
                codebaseIndexMistralApiKey?: string | undefined;
                codebaseIndexVercelAiGatewayApiKey?: string | undefined;
                codebaseIndexOpenRouterApiKey?: string | undefined;
                reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                includeMaxTokens?: boolean | undefined;
                todoListEnabled?: boolean | undefined;
                modelTemperature?: number | null | undefined;
                rateLimitSeconds?: number | undefined;
                consecutiveMistakeLimit?: number | undefined;
                enableReasoningEffort?: boolean | undefined;
                modelMaxTokens?: number | undefined;
                modelMaxThinkingTokens?: number | undefined;
                verbosity?: "low" | "medium" | "high" | undefined;
                apiModelId?: string | undefined;
                costrictAccessToken?: string | undefined;
                costrictRefreshToken?: string | undefined;
                costrictState?: string | undefined;
                costrictBaseUrl?: string | undefined;
                costrictModelId?: string | undefined;
                costrictApiKeyUpdatedAt?: string | undefined;
                costrictApiKeyExpiredAt?: string | undefined;
                useCostrictCustomConfig?: boolean | undefined;
                costrictAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                apiKey?: string | undefined;
                anthropicBaseUrl?: string | undefined;
                anthropicUseAuthToken?: boolean | undefined;
                anthropicBeta1MContext?: boolean | undefined;
                openRouterApiKey?: string | undefined;
                openRouterModelId?: string | undefined;
                openRouterBaseUrl?: string | undefined;
                openRouterSpecificProvider?: string | undefined;
                awsAccessKey?: string | undefined;
                awsSecretKey?: string | undefined;
                awsSessionToken?: string | undefined;
                awsRegion?: string | undefined;
                awsUseCrossRegionInference?: boolean | undefined;
                awsUseGlobalInference?: boolean | undefined;
                awsUsePromptCache?: boolean | undefined;
                awsProfile?: string | undefined;
                awsUseProfile?: boolean | undefined;
                awsApiKey?: string | undefined;
                awsUseApiKey?: boolean | undefined;
                awsCustomArn?: string | undefined;
                awsModelContextWindow?: number | undefined;
                awsBedrockEndpointEnabled?: boolean | undefined;
                awsBedrockEndpoint?: string | undefined;
                awsBedrock1MContext?: boolean | undefined;
                awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
                vertexKeyFile?: string | undefined;
                vertexJsonCredentials?: string | undefined;
                vertexProjectId?: string | undefined;
                vertexRegion?: string | undefined;
                vertex1MContext?: boolean | undefined;
                openAiBaseUrl?: string | undefined;
                openAiApiKey?: string | undefined;
                openAiR1FormatEnabled?: boolean | undefined;
                openAiModelId?: string | undefined;
                openAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                openAiUseAzure?: boolean | undefined;
                azureApiVersion?: string | undefined;
                openAiStreamingEnabled?: boolean | undefined;
                openAiHostHeader?: string | undefined;
                openAiHeaders?: Record<string, string> | undefined;
                ollamaModelId?: string | undefined;
                ollamaBaseUrl?: string | undefined;
                ollamaApiKey?: string | undefined;
                ollamaNumCtx?: number | undefined;
                vsCodeLmModelSelector?: {
                    id?: string | undefined;
                    family?: string | undefined;
                    version?: string | undefined;
                    vendor?: string | undefined;
                } | undefined;
                lmStudioModelId?: string | undefined;
                lmStudioBaseUrl?: string | undefined;
                lmStudioDraftModelId?: string | undefined;
                lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
                geminiApiKey?: string | undefined;
                googleGeminiBaseUrl?: string | undefined;
                geminiCliOAuthPath?: string | undefined;
                geminiCliProjectId?: string | undefined;
                openAiNativeApiKey?: string | undefined;
                openAiNativeBaseUrl?: string | undefined;
                openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
                mistralApiKey?: string | undefined;
                mistralCodestralUrl?: string | undefined;
                deepSeekBaseUrl?: string | undefined;
                deepSeekApiKey?: string | undefined;
                poeApiKey?: string | undefined;
                poeBaseUrl?: string | undefined;
                moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
                moonshotApiKey?: string | undefined;
                minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
                minimaxApiKey?: string | undefined;
                mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
                mimoApiKey?: string | undefined;
                requestyBaseUrl?: string | undefined;
                requestyApiKey?: string | undefined;
                requestyModelId?: string | undefined;
                unboundApiKey?: string | undefined;
                unboundModelId?: string | undefined;
                fakeAi?: unknown;
                xaiApiKey?: string | undefined;
                basetenApiKey?: string | undefined;
                litellmBaseUrl?: string | undefined;
                litellmApiKey?: string | undefined;
                litellmModelId?: string | undefined;
                litellmUsePromptCache?: boolean | undefined;
                sambaNovaApiKey?: string | undefined;
                zaiApiKey?: string | undefined;
                zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
                fireworksApiKey?: string | undefined;
                qwenCodeOauthPath?: string | undefined;
                rooApiKey?: string | undefined;
                vercelAiGatewayApiKey?: string | undefined;
                vercelAiGatewayModelId?: string | undefined;
                mode?: string | undefined;
                errorCode?: Record<string, Record<string, string>> | undefined;
                customInstructions?: string | undefined;
                customModes?: {
                    name: string;
                    slug: string;
                    roleDefinition: string;
                    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[];
                    description?: string | undefined;
                    apiProvider?: string | undefined;
                    source?: "global" | "project" | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                    overrideSystemPrompt?: boolean | undefined;
                    costrictCodeModeGroup?: string | undefined;
                    subagents?: string[] | undefined;
                    pure?: boolean | undefined;
                    disableSwitchMode?: boolean | undefined;
                    taskMode?: string | undefined;
                }[] | undefined;
                debug?: boolean | undefined;
                currentApiConfigName?: string | undefined;
                listApiConfigMeta?: {
                    id: string;
                    name: string;
                    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                    modelId?: string | undefined;
                }[] | undefined;
                pinnedApiConfigs?: Record<string, boolean> | undefined;
                autoCleanup?: {
                    enabled?: boolean | undefined;
                    strategy?: CleanupStrategy | undefined;
                    retentionDays?: number | undefined;
                    maxHistoryCount?: number | undefined;
                    excludeActive?: boolean | undefined;
                    cleanupOnStartup?: boolean | undefined;
                } | undefined;
                lastShownAnnouncementId?: string | undefined;
                taskHistory?: {
                    number: number;
                    ts: number;
                    totalCost: number;
                    id: string;
                    task: string;
                    tokensIn: number;
                    tokensOut: number;
                    status?: "active" | "completed" | "delegated" | undefined;
                    rootTaskId?: string | undefined;
                    parentTaskId?: string | undefined;
                    cacheWrites?: number | undefined;
                    cacheReads?: number | undefined;
                    size?: number | undefined;
                    workspace?: string | undefined;
                    mode?: string | undefined;
                    apiConfigName?: string | undefined;
                    delegatedToId?: string | undefined;
                    childIds?: string[] | undefined;
                    awaitingChildId?: string | undefined;
                    completedByChildId?: string | undefined;
                    completionResultSummary?: string | undefined;
                }[] | undefined;
                dismissedUpsells?: string[] | undefined;
                clickedOnceNotices?: number[] | undefined;
                imageGenerationProvider?: "openrouter" | "roo" | undefined;
                openRouterImageApiKey?: string | undefined;
                openRouterImageGenerationSelectedModel?: string | undefined;
                customCondensingPrompt?: string | undefined;
                costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
                autoApprovalEnabled?: boolean | undefined;
                alwaysAllowReadOnly?: boolean | undefined;
                alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
                alwaysAllowWrite?: boolean | undefined;
                alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
                alwaysAllowWriteProtected?: boolean | undefined;
                writeDelayMs?: number | undefined;
                requestDelaySeconds?: number | undefined;
                alwaysAllowMcp?: boolean | undefined;
                alwaysAllowModeSwitch?: boolean | undefined;
                alwaysAllowSubtasks?: boolean | undefined;
                alwaysAllowExecute?: boolean | undefined;
                alwaysAllowFollowupQuestions?: boolean | undefined;
                followupAutoApproveTimeoutMs?: number | undefined;
                allowedCommands?: string[] | undefined;
                deniedCommands?: string[] | undefined;
                commandExecutionTimeout?: number | undefined;
                commandTimeoutAllowlist?: string[] | undefined;
                preventCompletionWithOpenTodos?: boolean | undefined;
                allowedMaxRequests?: number | null | undefined;
                allowedMaxCost?: number | null | undefined;
                autoCondenseContext?: boolean | undefined;
                autoCondenseContextPercent?: number | undefined;
                includeCurrentTime?: boolean | undefined;
                includeCurrentCost?: boolean | undefined;
                maxGitStatusFiles?: number | undefined;
                includeDiagnosticMessages?: boolean | undefined;
                maxDiagnosticMessages?: number | undefined;
                customStoragePath?: string | undefined;
                enableCheckpoints?: boolean | undefined;
                checkpointTimeout?: number | undefined;
                ttsEnabled?: boolean | undefined;
                ttsSpeed?: number | undefined;
                soundEnabled?: boolean | undefined;
                soundVolume?: number | undefined;
                maxOpenTabsContext?: number | undefined;
                maxWorkspaceFiles?: number | undefined;
                showRooIgnoredFiles?: boolean | undefined;
                enableSubfolderRules?: boolean | undefined;
                maxImageFileSize?: number | undefined;
                maxTotalImageSize?: number | undefined;
                terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
                terminalShellIntegrationTimeout?: number | undefined;
                terminalShellIntegrationDisabled?: boolean | undefined;
                terminalCommandDelay?: number | undefined;
                terminalPowershellCounter?: boolean | undefined;
                terminalZshClearEolMark?: boolean | undefined;
                terminalZshOhMy?: boolean | undefined;
                terminalZshP10k?: boolean | undefined;
                terminalZdotdir?: boolean | undefined;
                execaShellPath?: string | undefined;
                diagnosticsEnabled?: boolean | undefined;
                experiments?: {
                    preventFocusDisruption?: boolean | undefined;
                    imageGeneration?: boolean | undefined;
                    runSlashCommand?: boolean | undefined;
                    customTools?: boolean | undefined;
                    chatSearch?: boolean | undefined;
                    commitReview?: boolean | undefined;
                    useKPTtree?: boolean | undefined;
                    useLitePrompts?: boolean | undefined;
                    smartMistakeDetection?: boolean | undefined;
                } | undefined;
                experimentSettings?: {
                    smartMistakeDetectionConfig?: {
                        autoSwitchModel?: boolean | undefined;
                    } | undefined;
                } | undefined;
                codebaseIndexModels?: {
                    openai?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    ollama?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "openai-compatible"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    gemini?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    mistral?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "vercel-ai-gateway"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    bedrock?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    openrouter?: Record<string, {
                        dimension: number;
                    }> | undefined;
                } | undefined;
                codebaseIndexConfig?: {
                    codebaseIndexEnabled?: boolean | undefined;
                    codebaseIndexQdrantUrl?: string | undefined;
                    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                    codebaseIndexEmbedderBaseUrl?: string | undefined;
                    codebaseIndexEmbedderModelId?: string | undefined;
                    codebaseIndexEmbedderModelDimension?: number | undefined;
                    codebaseIndexSearchMinScore?: number | undefined;
                    codebaseIndexSearchMaxResults?: number | undefined;
                    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                    codebaseIndexBedrockRegion?: string | undefined;
                    codebaseIndexBedrockProfile?: string | undefined;
                    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
                } | undefined;
                telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
                mcpEnabled?: boolean | undefined;
                prevMode?: string | undefined;
                modeApiConfigs?: Record<string, string> | undefined;
                customModePrompts?: Record<string, {
                    description?: string | undefined;
                    roleDefinition?: string | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                } | undefined> | undefined;
                customSupportPrompts?: Record<string, string | undefined> | undefined;
                enhancementApiConfigId?: string | undefined;
                includeTaskHistoryInEnhance?: boolean | undefined;
                historyPreviewCollapsed?: boolean | undefined;
                reasoningBlockCollapsed?: boolean | undefined;
                showSpeedInfo?: boolean | undefined;
                automaticallyFocus?: boolean | undefined;
                collapseMarkdownWithoutScroll?: boolean | undefined;
                enterBehavior?: "send" | "newline" | undefined;
                profileThresholds?: Record<string, number> | undefined;
                hasOpenedModeSelector?: boolean | undefined;
                hasClosedCodeReviewWelcomeTips?: boolean | undefined;
                lastModeExportPath?: string | undefined;
                lastModeImportPath?: string | undefined;
                lastSettingsExportPath?: string | undefined;
                lastTaskExportPath?: string | undefined;
                lastImageSavePath?: string | undefined;
                worktreeAutoOpenPath?: string | undefined;
                showWorktreesInHomeScreen?: boolean | undefined;
                disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
            }>;
            text: z.ZodString;
            images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            newTab: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            configuration: {
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codeIndexOpenAiKey?: string | undefined;
                codeIndexQdrantApiKey?: string | undefined;
                codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
                codebaseIndexGeminiApiKey?: string | undefined;
                codebaseIndexMistralApiKey?: string | undefined;
                codebaseIndexVercelAiGatewayApiKey?: string | undefined;
                codebaseIndexOpenRouterApiKey?: string | undefined;
                reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                includeMaxTokens?: boolean | undefined;
                todoListEnabled?: boolean | undefined;
                modelTemperature?: number | null | undefined;
                rateLimitSeconds?: number | undefined;
                consecutiveMistakeLimit?: number | undefined;
                enableReasoningEffort?: boolean | undefined;
                modelMaxTokens?: number | undefined;
                modelMaxThinkingTokens?: number | undefined;
                verbosity?: "low" | "medium" | "high" | undefined;
                apiModelId?: string | undefined;
                costrictAccessToken?: string | undefined;
                costrictRefreshToken?: string | undefined;
                costrictState?: string | undefined;
                costrictBaseUrl?: string | undefined;
                costrictModelId?: string | undefined;
                costrictApiKeyUpdatedAt?: string | undefined;
                costrictApiKeyExpiredAt?: string | undefined;
                useCostrictCustomConfig?: boolean | undefined;
                costrictAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                apiKey?: string | undefined;
                anthropicBaseUrl?: string | undefined;
                anthropicUseAuthToken?: boolean | undefined;
                anthropicBeta1MContext?: boolean | undefined;
                openRouterApiKey?: string | undefined;
                openRouterModelId?: string | undefined;
                openRouterBaseUrl?: string | undefined;
                openRouterSpecificProvider?: string | undefined;
                awsAccessKey?: string | undefined;
                awsSecretKey?: string | undefined;
                awsSessionToken?: string | undefined;
                awsRegion?: string | undefined;
                awsUseCrossRegionInference?: boolean | undefined;
                awsUseGlobalInference?: boolean | undefined;
                awsUsePromptCache?: boolean | undefined;
                awsProfile?: string | undefined;
                awsUseProfile?: boolean | undefined;
                awsApiKey?: string | undefined;
                awsUseApiKey?: boolean | undefined;
                awsCustomArn?: string | undefined;
                awsModelContextWindow?: number | undefined;
                awsBedrockEndpointEnabled?: boolean | undefined;
                awsBedrockEndpoint?: string | undefined;
                awsBedrock1MContext?: boolean | undefined;
                awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
                vertexKeyFile?: string | undefined;
                vertexJsonCredentials?: string | undefined;
                vertexProjectId?: string | undefined;
                vertexRegion?: string | undefined;
                vertex1MContext?: boolean | undefined;
                openAiBaseUrl?: string | undefined;
                openAiApiKey?: string | undefined;
                openAiR1FormatEnabled?: boolean | undefined;
                openAiModelId?: string | undefined;
                openAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                openAiUseAzure?: boolean | undefined;
                azureApiVersion?: string | undefined;
                openAiStreamingEnabled?: boolean | undefined;
                openAiHostHeader?: string | undefined;
                openAiHeaders?: Record<string, string> | undefined;
                ollamaModelId?: string | undefined;
                ollamaBaseUrl?: string | undefined;
                ollamaApiKey?: string | undefined;
                ollamaNumCtx?: number | undefined;
                vsCodeLmModelSelector?: {
                    id?: string | undefined;
                    family?: string | undefined;
                    version?: string | undefined;
                    vendor?: string | undefined;
                } | undefined;
                lmStudioModelId?: string | undefined;
                lmStudioBaseUrl?: string | undefined;
                lmStudioDraftModelId?: string | undefined;
                lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
                geminiApiKey?: string | undefined;
                googleGeminiBaseUrl?: string | undefined;
                geminiCliOAuthPath?: string | undefined;
                geminiCliProjectId?: string | undefined;
                openAiNativeApiKey?: string | undefined;
                openAiNativeBaseUrl?: string | undefined;
                openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
                mistralApiKey?: string | undefined;
                mistralCodestralUrl?: string | undefined;
                deepSeekBaseUrl?: string | undefined;
                deepSeekApiKey?: string | undefined;
                poeApiKey?: string | undefined;
                poeBaseUrl?: string | undefined;
                moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
                moonshotApiKey?: string | undefined;
                minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
                minimaxApiKey?: string | undefined;
                mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
                mimoApiKey?: string | undefined;
                requestyBaseUrl?: string | undefined;
                requestyApiKey?: string | undefined;
                requestyModelId?: string | undefined;
                unboundApiKey?: string | undefined;
                unboundModelId?: string | undefined;
                fakeAi?: unknown;
                xaiApiKey?: string | undefined;
                basetenApiKey?: string | undefined;
                litellmBaseUrl?: string | undefined;
                litellmApiKey?: string | undefined;
                litellmModelId?: string | undefined;
                litellmUsePromptCache?: boolean | undefined;
                sambaNovaApiKey?: string | undefined;
                zaiApiKey?: string | undefined;
                zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
                fireworksApiKey?: string | undefined;
                qwenCodeOauthPath?: string | undefined;
                rooApiKey?: string | undefined;
                vercelAiGatewayApiKey?: string | undefined;
                vercelAiGatewayModelId?: string | undefined;
                mode?: string | undefined;
                errorCode?: Record<string, Record<string, string>> | undefined;
                customInstructions?: string | undefined;
                customModes?: {
                    name: string;
                    slug: string;
                    roleDefinition: string;
                    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[];
                    description?: string | undefined;
                    apiProvider?: string | undefined;
                    source?: "global" | "project" | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                    overrideSystemPrompt?: boolean | undefined;
                    costrictCodeModeGroup?: string | undefined;
                    subagents?: string[] | undefined;
                    pure?: boolean | undefined;
                    disableSwitchMode?: boolean | undefined;
                    taskMode?: string | undefined;
                }[] | undefined;
                debug?: boolean | undefined;
                currentApiConfigName?: string | undefined;
                listApiConfigMeta?: {
                    id: string;
                    name: string;
                    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                    modelId?: string | undefined;
                }[] | undefined;
                pinnedApiConfigs?: Record<string, boolean> | undefined;
                autoCleanup?: {
                    enabled?: boolean | undefined;
                    strategy?: CleanupStrategy | undefined;
                    retentionDays?: number | undefined;
                    maxHistoryCount?: number | undefined;
                    excludeActive?: boolean | undefined;
                    cleanupOnStartup?: boolean | undefined;
                } | undefined;
                lastShownAnnouncementId?: string | undefined;
                taskHistory?: {
                    number: number;
                    ts: number;
                    totalCost: number;
                    id: string;
                    task: string;
                    tokensIn: number;
                    tokensOut: number;
                    status?: "active" | "completed" | "delegated" | undefined;
                    rootTaskId?: string | undefined;
                    parentTaskId?: string | undefined;
                    cacheWrites?: number | undefined;
                    cacheReads?: number | undefined;
                    size?: number | undefined;
                    workspace?: string | undefined;
                    mode?: string | undefined;
                    apiConfigName?: string | undefined;
                    delegatedToId?: string | undefined;
                    childIds?: string[] | undefined;
                    awaitingChildId?: string | undefined;
                    completedByChildId?: string | undefined;
                    completionResultSummary?: string | undefined;
                }[] | undefined;
                dismissedUpsells?: string[] | undefined;
                clickedOnceNotices?: number[] | undefined;
                imageGenerationProvider?: "openrouter" | "roo" | undefined;
                openRouterImageApiKey?: string | undefined;
                openRouterImageGenerationSelectedModel?: string | undefined;
                customCondensingPrompt?: string | undefined;
                costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
                autoApprovalEnabled?: boolean | undefined;
                alwaysAllowReadOnly?: boolean | undefined;
                alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
                alwaysAllowWrite?: boolean | undefined;
                alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
                alwaysAllowWriteProtected?: boolean | undefined;
                writeDelayMs?: number | undefined;
                requestDelaySeconds?: number | undefined;
                alwaysAllowMcp?: boolean | undefined;
                alwaysAllowModeSwitch?: boolean | undefined;
                alwaysAllowSubtasks?: boolean | undefined;
                alwaysAllowExecute?: boolean | undefined;
                alwaysAllowFollowupQuestions?: boolean | undefined;
                followupAutoApproveTimeoutMs?: number | undefined;
                allowedCommands?: string[] | undefined;
                deniedCommands?: string[] | undefined;
                commandExecutionTimeout?: number | undefined;
                commandTimeoutAllowlist?: string[] | undefined;
                preventCompletionWithOpenTodos?: boolean | undefined;
                allowedMaxRequests?: number | null | undefined;
                allowedMaxCost?: number | null | undefined;
                autoCondenseContext?: boolean | undefined;
                autoCondenseContextPercent?: number | undefined;
                includeCurrentTime?: boolean | undefined;
                includeCurrentCost?: boolean | undefined;
                maxGitStatusFiles?: number | undefined;
                includeDiagnosticMessages?: boolean | undefined;
                maxDiagnosticMessages?: number | undefined;
                customStoragePath?: string | undefined;
                enableCheckpoints?: boolean | undefined;
                checkpointTimeout?: number | undefined;
                ttsEnabled?: boolean | undefined;
                ttsSpeed?: number | undefined;
                soundEnabled?: boolean | undefined;
                soundVolume?: number | undefined;
                maxOpenTabsContext?: number | undefined;
                maxWorkspaceFiles?: number | undefined;
                showRooIgnoredFiles?: boolean | undefined;
                enableSubfolderRules?: boolean | undefined;
                maxImageFileSize?: number | undefined;
                maxTotalImageSize?: number | undefined;
                terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
                terminalShellIntegrationTimeout?: number | undefined;
                terminalShellIntegrationDisabled?: boolean | undefined;
                terminalCommandDelay?: number | undefined;
                terminalPowershellCounter?: boolean | undefined;
                terminalZshClearEolMark?: boolean | undefined;
                terminalZshOhMy?: boolean | undefined;
                terminalZshP10k?: boolean | undefined;
                terminalZdotdir?: boolean | undefined;
                execaShellPath?: string | undefined;
                diagnosticsEnabled?: boolean | undefined;
                experiments?: {
                    preventFocusDisruption?: boolean | undefined;
                    imageGeneration?: boolean | undefined;
                    runSlashCommand?: boolean | undefined;
                    customTools?: boolean | undefined;
                    chatSearch?: boolean | undefined;
                    commitReview?: boolean | undefined;
                    useKPTtree?: boolean | undefined;
                    useLitePrompts?: boolean | undefined;
                    smartMistakeDetection?: boolean | undefined;
                } | undefined;
                experimentSettings?: {
                    smartMistakeDetectionConfig?: {
                        autoSwitchModel?: boolean | undefined;
                    } | undefined;
                } | undefined;
                codebaseIndexModels?: {
                    openai?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    ollama?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "openai-compatible"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    gemini?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    mistral?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "vercel-ai-gateway"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    bedrock?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    openrouter?: Record<string, {
                        dimension: number;
                    }> | undefined;
                } | undefined;
                codebaseIndexConfig?: {
                    codebaseIndexEnabled?: boolean | undefined;
                    codebaseIndexQdrantUrl?: string | undefined;
                    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                    codebaseIndexEmbedderBaseUrl?: string | undefined;
                    codebaseIndexEmbedderModelId?: string | undefined;
                    codebaseIndexEmbedderModelDimension?: number | undefined;
                    codebaseIndexSearchMinScore?: number | undefined;
                    codebaseIndexSearchMaxResults?: number | undefined;
                    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                    codebaseIndexBedrockRegion?: string | undefined;
                    codebaseIndexBedrockProfile?: string | undefined;
                    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
                } | undefined;
                telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
                mcpEnabled?: boolean | undefined;
                prevMode?: string | undefined;
                modeApiConfigs?: Record<string, string> | undefined;
                customModePrompts?: Record<string, {
                    description?: string | undefined;
                    roleDefinition?: string | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                } | undefined> | undefined;
                customSupportPrompts?: Record<string, string | undefined> | undefined;
                enhancementApiConfigId?: string | undefined;
                includeTaskHistoryInEnhance?: boolean | undefined;
                historyPreviewCollapsed?: boolean | undefined;
                reasoningBlockCollapsed?: boolean | undefined;
                showSpeedInfo?: boolean | undefined;
                automaticallyFocus?: boolean | undefined;
                collapseMarkdownWithoutScroll?: boolean | undefined;
                enterBehavior?: "send" | "newline" | undefined;
                profileThresholds?: Record<string, number> | undefined;
                hasOpenedModeSelector?: boolean | undefined;
                hasClosedCodeReviewWelcomeTips?: boolean | undefined;
                lastModeExportPath?: string | undefined;
                lastModeImportPath?: string | undefined;
                lastSettingsExportPath?: string | undefined;
                lastTaskExportPath?: string | undefined;
                lastImageSavePath?: string | undefined;
                worktreeAutoOpenPath?: string | undefined;
                showWorktreesInHomeScreen?: boolean | undefined;
                disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
            };
            images?: string[] | undefined;
            newTab?: boolean | undefined;
        }, {
            text: string;
            configuration: {
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codeIndexOpenAiKey?: string | undefined;
                codeIndexQdrantApiKey?: string | undefined;
                codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
                codebaseIndexGeminiApiKey?: string | undefined;
                codebaseIndexMistralApiKey?: string | undefined;
                codebaseIndexVercelAiGatewayApiKey?: string | undefined;
                codebaseIndexOpenRouterApiKey?: string | undefined;
                reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                includeMaxTokens?: boolean | undefined;
                todoListEnabled?: boolean | undefined;
                modelTemperature?: number | null | undefined;
                rateLimitSeconds?: number | undefined;
                consecutiveMistakeLimit?: number | undefined;
                enableReasoningEffort?: boolean | undefined;
                modelMaxTokens?: number | undefined;
                modelMaxThinkingTokens?: number | undefined;
                verbosity?: "low" | "medium" | "high" | undefined;
                apiModelId?: string | undefined;
                costrictAccessToken?: string | undefined;
                costrictRefreshToken?: string | undefined;
                costrictState?: string | undefined;
                costrictBaseUrl?: string | undefined;
                costrictModelId?: string | undefined;
                costrictApiKeyUpdatedAt?: string | undefined;
                costrictApiKeyExpiredAt?: string | undefined;
                useCostrictCustomConfig?: boolean | undefined;
                costrictAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                apiKey?: string | undefined;
                anthropicBaseUrl?: string | undefined;
                anthropicUseAuthToken?: boolean | undefined;
                anthropicBeta1MContext?: boolean | undefined;
                openRouterApiKey?: string | undefined;
                openRouterModelId?: string | undefined;
                openRouterBaseUrl?: string | undefined;
                openRouterSpecificProvider?: string | undefined;
                awsAccessKey?: string | undefined;
                awsSecretKey?: string | undefined;
                awsSessionToken?: string | undefined;
                awsRegion?: string | undefined;
                awsUseCrossRegionInference?: boolean | undefined;
                awsUseGlobalInference?: boolean | undefined;
                awsUsePromptCache?: boolean | undefined;
                awsProfile?: string | undefined;
                awsUseProfile?: boolean | undefined;
                awsApiKey?: string | undefined;
                awsUseApiKey?: boolean | undefined;
                awsCustomArn?: string | undefined;
                awsModelContextWindow?: number | undefined;
                awsBedrockEndpointEnabled?: boolean | undefined;
                awsBedrockEndpoint?: string | undefined;
                awsBedrock1MContext?: boolean | undefined;
                awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
                vertexKeyFile?: string | undefined;
                vertexJsonCredentials?: string | undefined;
                vertexProjectId?: string | undefined;
                vertexRegion?: string | undefined;
                vertex1MContext?: boolean | undefined;
                openAiBaseUrl?: string | undefined;
                openAiApiKey?: string | undefined;
                openAiR1FormatEnabled?: boolean | undefined;
                openAiModelId?: string | undefined;
                openAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                openAiUseAzure?: boolean | undefined;
                azureApiVersion?: string | undefined;
                openAiStreamingEnabled?: boolean | undefined;
                openAiHostHeader?: string | undefined;
                openAiHeaders?: Record<string, string> | undefined;
                ollamaModelId?: string | undefined;
                ollamaBaseUrl?: string | undefined;
                ollamaApiKey?: string | undefined;
                ollamaNumCtx?: number | undefined;
                vsCodeLmModelSelector?: {
                    id?: string | undefined;
                    family?: string | undefined;
                    version?: string | undefined;
                    vendor?: string | undefined;
                } | undefined;
                lmStudioModelId?: string | undefined;
                lmStudioBaseUrl?: string | undefined;
                lmStudioDraftModelId?: string | undefined;
                lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
                geminiApiKey?: string | undefined;
                googleGeminiBaseUrl?: string | undefined;
                geminiCliOAuthPath?: string | undefined;
                geminiCliProjectId?: string | undefined;
                openAiNativeApiKey?: string | undefined;
                openAiNativeBaseUrl?: string | undefined;
                openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
                mistralApiKey?: string | undefined;
                mistralCodestralUrl?: string | undefined;
                deepSeekBaseUrl?: string | undefined;
                deepSeekApiKey?: string | undefined;
                poeApiKey?: string | undefined;
                poeBaseUrl?: string | undefined;
                moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
                moonshotApiKey?: string | undefined;
                minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
                minimaxApiKey?: string | undefined;
                mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
                mimoApiKey?: string | undefined;
                requestyBaseUrl?: string | undefined;
                requestyApiKey?: string | undefined;
                requestyModelId?: string | undefined;
                unboundApiKey?: string | undefined;
                unboundModelId?: string | undefined;
                fakeAi?: unknown;
                xaiApiKey?: string | undefined;
                basetenApiKey?: string | undefined;
                litellmBaseUrl?: string | undefined;
                litellmApiKey?: string | undefined;
                litellmModelId?: string | undefined;
                litellmUsePromptCache?: boolean | undefined;
                sambaNovaApiKey?: string | undefined;
                zaiApiKey?: string | undefined;
                zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
                fireworksApiKey?: string | undefined;
                qwenCodeOauthPath?: string | undefined;
                rooApiKey?: string | undefined;
                vercelAiGatewayApiKey?: string | undefined;
                vercelAiGatewayModelId?: string | undefined;
                mode?: string | undefined;
                errorCode?: Record<string, Record<string, string>> | undefined;
                customInstructions?: string | undefined;
                customModes?: {
                    name: string;
                    slug: string;
                    roleDefinition: string;
                    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[];
                    description?: string | undefined;
                    apiProvider?: string | undefined;
                    source?: "global" | "project" | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                    overrideSystemPrompt?: boolean | undefined;
                    costrictCodeModeGroup?: string | undefined;
                    subagents?: string[] | undefined;
                    pure?: boolean | undefined;
                    disableSwitchMode?: boolean | undefined;
                    taskMode?: string | undefined;
                }[] | undefined;
                debug?: boolean | undefined;
                currentApiConfigName?: string | undefined;
                listApiConfigMeta?: {
                    id: string;
                    name: string;
                    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                    modelId?: string | undefined;
                }[] | undefined;
                pinnedApiConfigs?: Record<string, boolean> | undefined;
                autoCleanup?: {
                    enabled?: boolean | undefined;
                    strategy?: CleanupStrategy | undefined;
                    retentionDays?: number | undefined;
                    maxHistoryCount?: number | undefined;
                    excludeActive?: boolean | undefined;
                    cleanupOnStartup?: boolean | undefined;
                } | undefined;
                lastShownAnnouncementId?: string | undefined;
                taskHistory?: {
                    number: number;
                    ts: number;
                    totalCost: number;
                    id: string;
                    task: string;
                    tokensIn: number;
                    tokensOut: number;
                    status?: "active" | "completed" | "delegated" | undefined;
                    rootTaskId?: string | undefined;
                    parentTaskId?: string | undefined;
                    cacheWrites?: number | undefined;
                    cacheReads?: number | undefined;
                    size?: number | undefined;
                    workspace?: string | undefined;
                    mode?: string | undefined;
                    apiConfigName?: string | undefined;
                    delegatedToId?: string | undefined;
                    childIds?: string[] | undefined;
                    awaitingChildId?: string | undefined;
                    completedByChildId?: string | undefined;
                    completionResultSummary?: string | undefined;
                }[] | undefined;
                dismissedUpsells?: string[] | undefined;
                clickedOnceNotices?: number[] | undefined;
                imageGenerationProvider?: "openrouter" | "roo" | undefined;
                openRouterImageApiKey?: string | undefined;
                openRouterImageGenerationSelectedModel?: string | undefined;
                customCondensingPrompt?: string | undefined;
                costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
                autoApprovalEnabled?: boolean | undefined;
                alwaysAllowReadOnly?: boolean | undefined;
                alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
                alwaysAllowWrite?: boolean | undefined;
                alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
                alwaysAllowWriteProtected?: boolean | undefined;
                writeDelayMs?: number | undefined;
                requestDelaySeconds?: number | undefined;
                alwaysAllowMcp?: boolean | undefined;
                alwaysAllowModeSwitch?: boolean | undefined;
                alwaysAllowSubtasks?: boolean | undefined;
                alwaysAllowExecute?: boolean | undefined;
                alwaysAllowFollowupQuestions?: boolean | undefined;
                followupAutoApproveTimeoutMs?: number | undefined;
                allowedCommands?: string[] | undefined;
                deniedCommands?: string[] | undefined;
                commandExecutionTimeout?: number | undefined;
                commandTimeoutAllowlist?: string[] | undefined;
                preventCompletionWithOpenTodos?: boolean | undefined;
                allowedMaxRequests?: number | null | undefined;
                allowedMaxCost?: number | null | undefined;
                autoCondenseContext?: boolean | undefined;
                autoCondenseContextPercent?: number | undefined;
                includeCurrentTime?: boolean | undefined;
                includeCurrentCost?: boolean | undefined;
                maxGitStatusFiles?: number | undefined;
                includeDiagnosticMessages?: boolean | undefined;
                maxDiagnosticMessages?: number | undefined;
                customStoragePath?: string | undefined;
                enableCheckpoints?: boolean | undefined;
                checkpointTimeout?: number | undefined;
                ttsEnabled?: boolean | undefined;
                ttsSpeed?: number | undefined;
                soundEnabled?: boolean | undefined;
                soundVolume?: number | undefined;
                maxOpenTabsContext?: number | undefined;
                maxWorkspaceFiles?: number | undefined;
                showRooIgnoredFiles?: boolean | undefined;
                enableSubfolderRules?: boolean | undefined;
                maxImageFileSize?: number | undefined;
                maxTotalImageSize?: number | undefined;
                terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
                terminalShellIntegrationTimeout?: number | undefined;
                terminalShellIntegrationDisabled?: boolean | undefined;
                terminalCommandDelay?: number | undefined;
                terminalPowershellCounter?: boolean | undefined;
                terminalZshClearEolMark?: boolean | undefined;
                terminalZshOhMy?: boolean | undefined;
                terminalZshP10k?: boolean | undefined;
                terminalZdotdir?: boolean | undefined;
                execaShellPath?: string | undefined;
                diagnosticsEnabled?: boolean | undefined;
                experiments?: {
                    preventFocusDisruption?: boolean | undefined;
                    imageGeneration?: boolean | undefined;
                    runSlashCommand?: boolean | undefined;
                    customTools?: boolean | undefined;
                    chatSearch?: boolean | undefined;
                    commitReview?: boolean | undefined;
                    useKPTtree?: boolean | undefined;
                    useLitePrompts?: boolean | undefined;
                    smartMistakeDetection?: boolean | undefined;
                } | undefined;
                experimentSettings?: {
                    smartMistakeDetectionConfig?: {
                        autoSwitchModel?: boolean | undefined;
                    } | undefined;
                } | undefined;
                codebaseIndexModels?: {
                    openai?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    ollama?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "openai-compatible"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    gemini?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    mistral?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "vercel-ai-gateway"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    bedrock?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    openrouter?: Record<string, {
                        dimension: number;
                    }> | undefined;
                } | undefined;
                codebaseIndexConfig?: {
                    codebaseIndexEnabled?: boolean | undefined;
                    codebaseIndexQdrantUrl?: string | undefined;
                    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                    codebaseIndexEmbedderBaseUrl?: string | undefined;
                    codebaseIndexEmbedderModelId?: string | undefined;
                    codebaseIndexEmbedderModelDimension?: number | undefined;
                    codebaseIndexSearchMinScore?: number | undefined;
                    codebaseIndexSearchMaxResults?: number | undefined;
                    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                    codebaseIndexBedrockRegion?: string | undefined;
                    codebaseIndexBedrockProfile?: string | undefined;
                    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
                } | undefined;
                telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
                mcpEnabled?: boolean | undefined;
                prevMode?: string | undefined;
                modeApiConfigs?: Record<string, string> | undefined;
                customModePrompts?: Record<string, {
                    description?: string | undefined;
                    roleDefinition?: string | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                } | undefined> | undefined;
                customSupportPrompts?: Record<string, string | undefined> | undefined;
                enhancementApiConfigId?: string | undefined;
                includeTaskHistoryInEnhance?: boolean | undefined;
                historyPreviewCollapsed?: boolean | undefined;
                reasoningBlockCollapsed?: boolean | undefined;
                showSpeedInfo?: boolean | undefined;
                automaticallyFocus?: boolean | undefined;
                collapseMarkdownWithoutScroll?: boolean | undefined;
                enterBehavior?: "send" | "newline" | undefined;
                profileThresholds?: Record<string, number> | undefined;
                hasOpenedModeSelector?: boolean | undefined;
                hasClosedCodeReviewWelcomeTips?: boolean | undefined;
                lastModeExportPath?: string | undefined;
                lastModeImportPath?: string | undefined;
                lastSettingsExportPath?: string | undefined;
                lastTaskExportPath?: string | undefined;
                lastImageSavePath?: string | undefined;
                worktreeAutoOpenPath?: string | undefined;
                showWorktreesInHomeScreen?: boolean | undefined;
                disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
            };
            images?: string[] | undefined;
            newTab?: boolean | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        data: {
            text: string;
            configuration: {
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codeIndexOpenAiKey?: string | undefined;
                codeIndexQdrantApiKey?: string | undefined;
                codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
                codebaseIndexGeminiApiKey?: string | undefined;
                codebaseIndexMistralApiKey?: string | undefined;
                codebaseIndexVercelAiGatewayApiKey?: string | undefined;
                codebaseIndexOpenRouterApiKey?: string | undefined;
                reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                includeMaxTokens?: boolean | undefined;
                todoListEnabled?: boolean | undefined;
                modelTemperature?: number | null | undefined;
                rateLimitSeconds?: number | undefined;
                consecutiveMistakeLimit?: number | undefined;
                enableReasoningEffort?: boolean | undefined;
                modelMaxTokens?: number | undefined;
                modelMaxThinkingTokens?: number | undefined;
                verbosity?: "low" | "medium" | "high" | undefined;
                apiModelId?: string | undefined;
                costrictAccessToken?: string | undefined;
                costrictRefreshToken?: string | undefined;
                costrictState?: string | undefined;
                costrictBaseUrl?: string | undefined;
                costrictModelId?: string | undefined;
                costrictApiKeyUpdatedAt?: string | undefined;
                costrictApiKeyExpiredAt?: string | undefined;
                useCostrictCustomConfig?: boolean | undefined;
                costrictAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                apiKey?: string | undefined;
                anthropicBaseUrl?: string | undefined;
                anthropicUseAuthToken?: boolean | undefined;
                anthropicBeta1MContext?: boolean | undefined;
                openRouterApiKey?: string | undefined;
                openRouterModelId?: string | undefined;
                openRouterBaseUrl?: string | undefined;
                openRouterSpecificProvider?: string | undefined;
                awsAccessKey?: string | undefined;
                awsSecretKey?: string | undefined;
                awsSessionToken?: string | undefined;
                awsRegion?: string | undefined;
                awsUseCrossRegionInference?: boolean | undefined;
                awsUseGlobalInference?: boolean | undefined;
                awsUsePromptCache?: boolean | undefined;
                awsProfile?: string | undefined;
                awsUseProfile?: boolean | undefined;
                awsApiKey?: string | undefined;
                awsUseApiKey?: boolean | undefined;
                awsCustomArn?: string | undefined;
                awsModelContextWindow?: number | undefined;
                awsBedrockEndpointEnabled?: boolean | undefined;
                awsBedrockEndpoint?: string | undefined;
                awsBedrock1MContext?: boolean | undefined;
                awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
                vertexKeyFile?: string | undefined;
                vertexJsonCredentials?: string | undefined;
                vertexProjectId?: string | undefined;
                vertexRegion?: string | undefined;
                vertex1MContext?: boolean | undefined;
                openAiBaseUrl?: string | undefined;
                openAiApiKey?: string | undefined;
                openAiR1FormatEnabled?: boolean | undefined;
                openAiModelId?: string | undefined;
                openAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                openAiUseAzure?: boolean | undefined;
                azureApiVersion?: string | undefined;
                openAiStreamingEnabled?: boolean | undefined;
                openAiHostHeader?: string | undefined;
                openAiHeaders?: Record<string, string> | undefined;
                ollamaModelId?: string | undefined;
                ollamaBaseUrl?: string | undefined;
                ollamaApiKey?: string | undefined;
                ollamaNumCtx?: number | undefined;
                vsCodeLmModelSelector?: {
                    id?: string | undefined;
                    family?: string | undefined;
                    version?: string | undefined;
                    vendor?: string | undefined;
                } | undefined;
                lmStudioModelId?: string | undefined;
                lmStudioBaseUrl?: string | undefined;
                lmStudioDraftModelId?: string | undefined;
                lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
                geminiApiKey?: string | undefined;
                googleGeminiBaseUrl?: string | undefined;
                geminiCliOAuthPath?: string | undefined;
                geminiCliProjectId?: string | undefined;
                openAiNativeApiKey?: string | undefined;
                openAiNativeBaseUrl?: string | undefined;
                openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
                mistralApiKey?: string | undefined;
                mistralCodestralUrl?: string | undefined;
                deepSeekBaseUrl?: string | undefined;
                deepSeekApiKey?: string | undefined;
                poeApiKey?: string | undefined;
                poeBaseUrl?: string | undefined;
                moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
                moonshotApiKey?: string | undefined;
                minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
                minimaxApiKey?: string | undefined;
                mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
                mimoApiKey?: string | undefined;
                requestyBaseUrl?: string | undefined;
                requestyApiKey?: string | undefined;
                requestyModelId?: string | undefined;
                unboundApiKey?: string | undefined;
                unboundModelId?: string | undefined;
                fakeAi?: unknown;
                xaiApiKey?: string | undefined;
                basetenApiKey?: string | undefined;
                litellmBaseUrl?: string | undefined;
                litellmApiKey?: string | undefined;
                litellmModelId?: string | undefined;
                litellmUsePromptCache?: boolean | undefined;
                sambaNovaApiKey?: string | undefined;
                zaiApiKey?: string | undefined;
                zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
                fireworksApiKey?: string | undefined;
                qwenCodeOauthPath?: string | undefined;
                rooApiKey?: string | undefined;
                vercelAiGatewayApiKey?: string | undefined;
                vercelAiGatewayModelId?: string | undefined;
                mode?: string | undefined;
                errorCode?: Record<string, Record<string, string>> | undefined;
                customInstructions?: string | undefined;
                customModes?: {
                    name: string;
                    slug: string;
                    roleDefinition: string;
                    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[];
                    description?: string | undefined;
                    apiProvider?: string | undefined;
                    source?: "global" | "project" | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                    overrideSystemPrompt?: boolean | undefined;
                    costrictCodeModeGroup?: string | undefined;
                    subagents?: string[] | undefined;
                    pure?: boolean | undefined;
                    disableSwitchMode?: boolean | undefined;
                    taskMode?: string | undefined;
                }[] | undefined;
                debug?: boolean | undefined;
                currentApiConfigName?: string | undefined;
                listApiConfigMeta?: {
                    id: string;
                    name: string;
                    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                    modelId?: string | undefined;
                }[] | undefined;
                pinnedApiConfigs?: Record<string, boolean> | undefined;
                autoCleanup?: {
                    enabled?: boolean | undefined;
                    strategy?: CleanupStrategy | undefined;
                    retentionDays?: number | undefined;
                    maxHistoryCount?: number | undefined;
                    excludeActive?: boolean | undefined;
                    cleanupOnStartup?: boolean | undefined;
                } | undefined;
                lastShownAnnouncementId?: string | undefined;
                taskHistory?: {
                    number: number;
                    ts: number;
                    totalCost: number;
                    id: string;
                    task: string;
                    tokensIn: number;
                    tokensOut: number;
                    status?: "active" | "completed" | "delegated" | undefined;
                    rootTaskId?: string | undefined;
                    parentTaskId?: string | undefined;
                    cacheWrites?: number | undefined;
                    cacheReads?: number | undefined;
                    size?: number | undefined;
                    workspace?: string | undefined;
                    mode?: string | undefined;
                    apiConfigName?: string | undefined;
                    delegatedToId?: string | undefined;
                    childIds?: string[] | undefined;
                    awaitingChildId?: string | undefined;
                    completedByChildId?: string | undefined;
                    completionResultSummary?: string | undefined;
                }[] | undefined;
                dismissedUpsells?: string[] | undefined;
                clickedOnceNotices?: number[] | undefined;
                imageGenerationProvider?: "openrouter" | "roo" | undefined;
                openRouterImageApiKey?: string | undefined;
                openRouterImageGenerationSelectedModel?: string | undefined;
                customCondensingPrompt?: string | undefined;
                costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
                autoApprovalEnabled?: boolean | undefined;
                alwaysAllowReadOnly?: boolean | undefined;
                alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
                alwaysAllowWrite?: boolean | undefined;
                alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
                alwaysAllowWriteProtected?: boolean | undefined;
                writeDelayMs?: number | undefined;
                requestDelaySeconds?: number | undefined;
                alwaysAllowMcp?: boolean | undefined;
                alwaysAllowModeSwitch?: boolean | undefined;
                alwaysAllowSubtasks?: boolean | undefined;
                alwaysAllowExecute?: boolean | undefined;
                alwaysAllowFollowupQuestions?: boolean | undefined;
                followupAutoApproveTimeoutMs?: number | undefined;
                allowedCommands?: string[] | undefined;
                deniedCommands?: string[] | undefined;
                commandExecutionTimeout?: number | undefined;
                commandTimeoutAllowlist?: string[] | undefined;
                preventCompletionWithOpenTodos?: boolean | undefined;
                allowedMaxRequests?: number | null | undefined;
                allowedMaxCost?: number | null | undefined;
                autoCondenseContext?: boolean | undefined;
                autoCondenseContextPercent?: number | undefined;
                includeCurrentTime?: boolean | undefined;
                includeCurrentCost?: boolean | undefined;
                maxGitStatusFiles?: number | undefined;
                includeDiagnosticMessages?: boolean | undefined;
                maxDiagnosticMessages?: number | undefined;
                customStoragePath?: string | undefined;
                enableCheckpoints?: boolean | undefined;
                checkpointTimeout?: number | undefined;
                ttsEnabled?: boolean | undefined;
                ttsSpeed?: number | undefined;
                soundEnabled?: boolean | undefined;
                soundVolume?: number | undefined;
                maxOpenTabsContext?: number | undefined;
                maxWorkspaceFiles?: number | undefined;
                showRooIgnoredFiles?: boolean | undefined;
                enableSubfolderRules?: boolean | undefined;
                maxImageFileSize?: number | undefined;
                maxTotalImageSize?: number | undefined;
                terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
                terminalShellIntegrationTimeout?: number | undefined;
                terminalShellIntegrationDisabled?: boolean | undefined;
                terminalCommandDelay?: number | undefined;
                terminalPowershellCounter?: boolean | undefined;
                terminalZshClearEolMark?: boolean | undefined;
                terminalZshOhMy?: boolean | undefined;
                terminalZshP10k?: boolean | undefined;
                terminalZdotdir?: boolean | undefined;
                execaShellPath?: string | undefined;
                diagnosticsEnabled?: boolean | undefined;
                experiments?: {
                    preventFocusDisruption?: boolean | undefined;
                    imageGeneration?: boolean | undefined;
                    runSlashCommand?: boolean | undefined;
                    customTools?: boolean | undefined;
                    chatSearch?: boolean | undefined;
                    commitReview?: boolean | undefined;
                    useKPTtree?: boolean | undefined;
                    useLitePrompts?: boolean | undefined;
                    smartMistakeDetection?: boolean | undefined;
                } | undefined;
                experimentSettings?: {
                    smartMistakeDetectionConfig?: {
                        autoSwitchModel?: boolean | undefined;
                    } | undefined;
                } | undefined;
                codebaseIndexModels?: {
                    openai?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    ollama?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "openai-compatible"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    gemini?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    mistral?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "vercel-ai-gateway"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    bedrock?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    openrouter?: Record<string, {
                        dimension: number;
                    }> | undefined;
                } | undefined;
                codebaseIndexConfig?: {
                    codebaseIndexEnabled?: boolean | undefined;
                    codebaseIndexQdrantUrl?: string | undefined;
                    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                    codebaseIndexEmbedderBaseUrl?: string | undefined;
                    codebaseIndexEmbedderModelId?: string | undefined;
                    codebaseIndexEmbedderModelDimension?: number | undefined;
                    codebaseIndexSearchMinScore?: number | undefined;
                    codebaseIndexSearchMaxResults?: number | undefined;
                    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                    codebaseIndexBedrockRegion?: string | undefined;
                    codebaseIndexBedrockProfile?: string | undefined;
                    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
                } | undefined;
                telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
                mcpEnabled?: boolean | undefined;
                prevMode?: string | undefined;
                modeApiConfigs?: Record<string, string> | undefined;
                customModePrompts?: Record<string, {
                    description?: string | undefined;
                    roleDefinition?: string | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                } | undefined> | undefined;
                customSupportPrompts?: Record<string, string | undefined> | undefined;
                enhancementApiConfigId?: string | undefined;
                includeTaskHistoryInEnhance?: boolean | undefined;
                historyPreviewCollapsed?: boolean | undefined;
                reasoningBlockCollapsed?: boolean | undefined;
                showSpeedInfo?: boolean | undefined;
                automaticallyFocus?: boolean | undefined;
                collapseMarkdownWithoutScroll?: boolean | undefined;
                enterBehavior?: "send" | "newline" | undefined;
                profileThresholds?: Record<string, number> | undefined;
                hasOpenedModeSelector?: boolean | undefined;
                hasClosedCodeReviewWelcomeTips?: boolean | undefined;
                lastModeExportPath?: string | undefined;
                lastModeImportPath?: string | undefined;
                lastSettingsExportPath?: string | undefined;
                lastTaskExportPath?: string | undefined;
                lastImageSavePath?: string | undefined;
                worktreeAutoOpenPath?: string | undefined;
                showWorktreesInHomeScreen?: boolean | undefined;
                disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
            };
            images?: string[] | undefined;
            newTab?: boolean | undefined;
        };
        commandName: TaskCommandName.StartNewTask;
    }, {
        data: {
            text: string;
            configuration: {
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codeIndexOpenAiKey?: string | undefined;
                codeIndexQdrantApiKey?: string | undefined;
                codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
                codebaseIndexGeminiApiKey?: string | undefined;
                codebaseIndexMistralApiKey?: string | undefined;
                codebaseIndexVercelAiGatewayApiKey?: string | undefined;
                codebaseIndexOpenRouterApiKey?: string | undefined;
                reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                includeMaxTokens?: boolean | undefined;
                todoListEnabled?: boolean | undefined;
                modelTemperature?: number | null | undefined;
                rateLimitSeconds?: number | undefined;
                consecutiveMistakeLimit?: number | undefined;
                enableReasoningEffort?: boolean | undefined;
                modelMaxTokens?: number | undefined;
                modelMaxThinkingTokens?: number | undefined;
                verbosity?: "low" | "medium" | "high" | undefined;
                apiModelId?: string | undefined;
                costrictAccessToken?: string | undefined;
                costrictRefreshToken?: string | undefined;
                costrictState?: string | undefined;
                costrictBaseUrl?: string | undefined;
                costrictModelId?: string | undefined;
                costrictApiKeyUpdatedAt?: string | undefined;
                costrictApiKeyExpiredAt?: string | undefined;
                useCostrictCustomConfig?: boolean | undefined;
                costrictAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                apiKey?: string | undefined;
                anthropicBaseUrl?: string | undefined;
                anthropicUseAuthToken?: boolean | undefined;
                anthropicBeta1MContext?: boolean | undefined;
                openRouterApiKey?: string | undefined;
                openRouterModelId?: string | undefined;
                openRouterBaseUrl?: string | undefined;
                openRouterSpecificProvider?: string | undefined;
                awsAccessKey?: string | undefined;
                awsSecretKey?: string | undefined;
                awsSessionToken?: string | undefined;
                awsRegion?: string | undefined;
                awsUseCrossRegionInference?: boolean | undefined;
                awsUseGlobalInference?: boolean | undefined;
                awsUsePromptCache?: boolean | undefined;
                awsProfile?: string | undefined;
                awsUseProfile?: boolean | undefined;
                awsApiKey?: string | undefined;
                awsUseApiKey?: boolean | undefined;
                awsCustomArn?: string | undefined;
                awsModelContextWindow?: number | undefined;
                awsBedrockEndpointEnabled?: boolean | undefined;
                awsBedrockEndpoint?: string | undefined;
                awsBedrock1MContext?: boolean | undefined;
                awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
                vertexKeyFile?: string | undefined;
                vertexJsonCredentials?: string | undefined;
                vertexProjectId?: string | undefined;
                vertexRegion?: string | undefined;
                vertex1MContext?: boolean | undefined;
                openAiBaseUrl?: string | undefined;
                openAiApiKey?: string | undefined;
                openAiR1FormatEnabled?: boolean | undefined;
                openAiModelId?: string | undefined;
                openAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                openAiUseAzure?: boolean | undefined;
                azureApiVersion?: string | undefined;
                openAiStreamingEnabled?: boolean | undefined;
                openAiHostHeader?: string | undefined;
                openAiHeaders?: Record<string, string> | undefined;
                ollamaModelId?: string | undefined;
                ollamaBaseUrl?: string | undefined;
                ollamaApiKey?: string | undefined;
                ollamaNumCtx?: number | undefined;
                vsCodeLmModelSelector?: {
                    id?: string | undefined;
                    family?: string | undefined;
                    version?: string | undefined;
                    vendor?: string | undefined;
                } | undefined;
                lmStudioModelId?: string | undefined;
                lmStudioBaseUrl?: string | undefined;
                lmStudioDraftModelId?: string | undefined;
                lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
                geminiApiKey?: string | undefined;
                googleGeminiBaseUrl?: string | undefined;
                geminiCliOAuthPath?: string | undefined;
                geminiCliProjectId?: string | undefined;
                openAiNativeApiKey?: string | undefined;
                openAiNativeBaseUrl?: string | undefined;
                openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
                mistralApiKey?: string | undefined;
                mistralCodestralUrl?: string | undefined;
                deepSeekBaseUrl?: string | undefined;
                deepSeekApiKey?: string | undefined;
                poeApiKey?: string | undefined;
                poeBaseUrl?: string | undefined;
                moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
                moonshotApiKey?: string | undefined;
                minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
                minimaxApiKey?: string | undefined;
                mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
                mimoApiKey?: string | undefined;
                requestyBaseUrl?: string | undefined;
                requestyApiKey?: string | undefined;
                requestyModelId?: string | undefined;
                unboundApiKey?: string | undefined;
                unboundModelId?: string | undefined;
                fakeAi?: unknown;
                xaiApiKey?: string | undefined;
                basetenApiKey?: string | undefined;
                litellmBaseUrl?: string | undefined;
                litellmApiKey?: string | undefined;
                litellmModelId?: string | undefined;
                litellmUsePromptCache?: boolean | undefined;
                sambaNovaApiKey?: string | undefined;
                zaiApiKey?: string | undefined;
                zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
                fireworksApiKey?: string | undefined;
                qwenCodeOauthPath?: string | undefined;
                rooApiKey?: string | undefined;
                vercelAiGatewayApiKey?: string | undefined;
                vercelAiGatewayModelId?: string | undefined;
                mode?: string | undefined;
                errorCode?: Record<string, Record<string, string>> | undefined;
                customInstructions?: string | undefined;
                customModes?: {
                    name: string;
                    slug: string;
                    roleDefinition: string;
                    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[];
                    description?: string | undefined;
                    apiProvider?: string | undefined;
                    source?: "global" | "project" | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                    overrideSystemPrompt?: boolean | undefined;
                    costrictCodeModeGroup?: string | undefined;
                    subagents?: string[] | undefined;
                    pure?: boolean | undefined;
                    disableSwitchMode?: boolean | undefined;
                    taskMode?: string | undefined;
                }[] | undefined;
                debug?: boolean | undefined;
                currentApiConfigName?: string | undefined;
                listApiConfigMeta?: {
                    id: string;
                    name: string;
                    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                    modelId?: string | undefined;
                }[] | undefined;
                pinnedApiConfigs?: Record<string, boolean> | undefined;
                autoCleanup?: {
                    enabled?: boolean | undefined;
                    strategy?: CleanupStrategy | undefined;
                    retentionDays?: number | undefined;
                    maxHistoryCount?: number | undefined;
                    excludeActive?: boolean | undefined;
                    cleanupOnStartup?: boolean | undefined;
                } | undefined;
                lastShownAnnouncementId?: string | undefined;
                taskHistory?: {
                    number: number;
                    ts: number;
                    totalCost: number;
                    id: string;
                    task: string;
                    tokensIn: number;
                    tokensOut: number;
                    status?: "active" | "completed" | "delegated" | undefined;
                    rootTaskId?: string | undefined;
                    parentTaskId?: string | undefined;
                    cacheWrites?: number | undefined;
                    cacheReads?: number | undefined;
                    size?: number | undefined;
                    workspace?: string | undefined;
                    mode?: string | undefined;
                    apiConfigName?: string | undefined;
                    delegatedToId?: string | undefined;
                    childIds?: string[] | undefined;
                    awaitingChildId?: string | undefined;
                    completedByChildId?: string | undefined;
                    completionResultSummary?: string | undefined;
                }[] | undefined;
                dismissedUpsells?: string[] | undefined;
                clickedOnceNotices?: number[] | undefined;
                imageGenerationProvider?: "openrouter" | "roo" | undefined;
                openRouterImageApiKey?: string | undefined;
                openRouterImageGenerationSelectedModel?: string | undefined;
                customCondensingPrompt?: string | undefined;
                costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
                autoApprovalEnabled?: boolean | undefined;
                alwaysAllowReadOnly?: boolean | undefined;
                alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
                alwaysAllowWrite?: boolean | undefined;
                alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
                alwaysAllowWriteProtected?: boolean | undefined;
                writeDelayMs?: number | undefined;
                requestDelaySeconds?: number | undefined;
                alwaysAllowMcp?: boolean | undefined;
                alwaysAllowModeSwitch?: boolean | undefined;
                alwaysAllowSubtasks?: boolean | undefined;
                alwaysAllowExecute?: boolean | undefined;
                alwaysAllowFollowupQuestions?: boolean | undefined;
                followupAutoApproveTimeoutMs?: number | undefined;
                allowedCommands?: string[] | undefined;
                deniedCommands?: string[] | undefined;
                commandExecutionTimeout?: number | undefined;
                commandTimeoutAllowlist?: string[] | undefined;
                preventCompletionWithOpenTodos?: boolean | undefined;
                allowedMaxRequests?: number | null | undefined;
                allowedMaxCost?: number | null | undefined;
                autoCondenseContext?: boolean | undefined;
                autoCondenseContextPercent?: number | undefined;
                includeCurrentTime?: boolean | undefined;
                includeCurrentCost?: boolean | undefined;
                maxGitStatusFiles?: number | undefined;
                includeDiagnosticMessages?: boolean | undefined;
                maxDiagnosticMessages?: number | undefined;
                customStoragePath?: string | undefined;
                enableCheckpoints?: boolean | undefined;
                checkpointTimeout?: number | undefined;
                ttsEnabled?: boolean | undefined;
                ttsSpeed?: number | undefined;
                soundEnabled?: boolean | undefined;
                soundVolume?: number | undefined;
                maxOpenTabsContext?: number | undefined;
                maxWorkspaceFiles?: number | undefined;
                showRooIgnoredFiles?: boolean | undefined;
                enableSubfolderRules?: boolean | undefined;
                maxImageFileSize?: number | undefined;
                maxTotalImageSize?: number | undefined;
                terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
                terminalShellIntegrationTimeout?: number | undefined;
                terminalShellIntegrationDisabled?: boolean | undefined;
                terminalCommandDelay?: number | undefined;
                terminalPowershellCounter?: boolean | undefined;
                terminalZshClearEolMark?: boolean | undefined;
                terminalZshOhMy?: boolean | undefined;
                terminalZshP10k?: boolean | undefined;
                terminalZdotdir?: boolean | undefined;
                execaShellPath?: string | undefined;
                diagnosticsEnabled?: boolean | undefined;
                experiments?: {
                    preventFocusDisruption?: boolean | undefined;
                    imageGeneration?: boolean | undefined;
                    runSlashCommand?: boolean | undefined;
                    customTools?: boolean | undefined;
                    chatSearch?: boolean | undefined;
                    commitReview?: boolean | undefined;
                    useKPTtree?: boolean | undefined;
                    useLitePrompts?: boolean | undefined;
                    smartMistakeDetection?: boolean | undefined;
                } | undefined;
                experimentSettings?: {
                    smartMistakeDetectionConfig?: {
                        autoSwitchModel?: boolean | undefined;
                    } | undefined;
                } | undefined;
                codebaseIndexModels?: {
                    openai?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    ollama?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "openai-compatible"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    gemini?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    mistral?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "vercel-ai-gateway"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    bedrock?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    openrouter?: Record<string, {
                        dimension: number;
                    }> | undefined;
                } | undefined;
                codebaseIndexConfig?: {
                    codebaseIndexEnabled?: boolean | undefined;
                    codebaseIndexQdrantUrl?: string | undefined;
                    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                    codebaseIndexEmbedderBaseUrl?: string | undefined;
                    codebaseIndexEmbedderModelId?: string | undefined;
                    codebaseIndexEmbedderModelDimension?: number | undefined;
                    codebaseIndexSearchMinScore?: number | undefined;
                    codebaseIndexSearchMaxResults?: number | undefined;
                    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                    codebaseIndexBedrockRegion?: string | undefined;
                    codebaseIndexBedrockProfile?: string | undefined;
                    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
                } | undefined;
                telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
                mcpEnabled?: boolean | undefined;
                prevMode?: string | undefined;
                modeApiConfigs?: Record<string, string> | undefined;
                customModePrompts?: Record<string, {
                    description?: string | undefined;
                    roleDefinition?: string | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                } | undefined> | undefined;
                customSupportPrompts?: Record<string, string | undefined> | undefined;
                enhancementApiConfigId?: string | undefined;
                includeTaskHistoryInEnhance?: boolean | undefined;
                historyPreviewCollapsed?: boolean | undefined;
                reasoningBlockCollapsed?: boolean | undefined;
                showSpeedInfo?: boolean | undefined;
                automaticallyFocus?: boolean | undefined;
                collapseMarkdownWithoutScroll?: boolean | undefined;
                enterBehavior?: "send" | "newline" | undefined;
                profileThresholds?: Record<string, number> | undefined;
                hasOpenedModeSelector?: boolean | undefined;
                hasClosedCodeReviewWelcomeTips?: boolean | undefined;
                lastModeExportPath?: string | undefined;
                lastModeImportPath?: string | undefined;
                lastSettingsExportPath?: string | undefined;
                lastTaskExportPath?: string | undefined;
                lastImageSavePath?: string | undefined;
                worktreeAutoOpenPath?: string | undefined;
                showWorktreesInHomeScreen?: boolean | undefined;
                disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
            };
            images?: string[] | undefined;
            newTab?: boolean | undefined;
        };
        commandName: TaskCommandName.StartNewTask;
    }>, z.ZodObject<{
        commandName: z.ZodLiteral<TaskCommandName.CancelTask>;
    }, "strip", z.ZodTypeAny, {
        commandName: TaskCommandName.CancelTask;
    }, {
        commandName: TaskCommandName.CancelTask;
    }>, z.ZodObject<{
        commandName: z.ZodLiteral<TaskCommandName.CloseTask>;
    }, "strip", z.ZodTypeAny, {
        commandName: TaskCommandName.CloseTask;
    }, {
        commandName: TaskCommandName.CloseTask;
    }>, z.ZodObject<{
        commandName: z.ZodLiteral<TaskCommandName.ResumeTask>;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        data: string;
        commandName: TaskCommandName.ResumeTask;
    }, {
        data: string;
        commandName: TaskCommandName.ResumeTask;
    }>, z.ZodObject<{
        commandName: z.ZodLiteral<TaskCommandName.SendMessage>;
        data: z.ZodObject<{
            text: z.ZodOptional<z.ZodString>;
            images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            images?: string[] | undefined;
        }, {
            text?: string | undefined;
            images?: string[] | undefined;
        }>;
    }, "strip", z.ZodTypeAny, {
        data: {
            text?: string | undefined;
            images?: string[] | undefined;
        };
        commandName: TaskCommandName.SendMessage;
    }, {
        data: {
            text?: string | undefined;
            images?: string[] | undefined;
        };
        commandName: TaskCommandName.SendMessage;
    }>, z.ZodObject<{
        commandName: z.ZodLiteral<TaskCommandName.GetCommands>;
    }, "strip", z.ZodTypeAny, {
        commandName: TaskCommandName.GetCommands;
    }, {
        commandName: TaskCommandName.GetCommands;
    }>, z.ZodObject<{
        commandName: z.ZodLiteral<TaskCommandName.GetModes>;
    }, "strip", z.ZodTypeAny, {
        commandName: TaskCommandName.GetModes;
    }, {
        commandName: TaskCommandName.GetModes;
    }>, z.ZodObject<{
        commandName: z.ZodLiteral<TaskCommandName.GetModels>;
    }, "strip", z.ZodTypeAny, {
        commandName: TaskCommandName.GetModels;
    }, {
        commandName: TaskCommandName.GetModels;
    }>, z.ZodObject<{
        commandName: z.ZodLiteral<TaskCommandName.DeleteQueuedMessage>;
        data: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        data: string;
        commandName: TaskCommandName.DeleteQueuedMessage;
    }, {
        data: string;
        commandName: TaskCommandName.DeleteQueuedMessage;
    }>]>;
}, "strip", z.ZodTypeAny, {
    type: IpcMessageType.TaskCommand;
    data: {
        data: {
            text: string;
            configuration: {
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codeIndexOpenAiKey?: string | undefined;
                codeIndexQdrantApiKey?: string | undefined;
                codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
                codebaseIndexGeminiApiKey?: string | undefined;
                codebaseIndexMistralApiKey?: string | undefined;
                codebaseIndexVercelAiGatewayApiKey?: string | undefined;
                codebaseIndexOpenRouterApiKey?: string | undefined;
                reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                includeMaxTokens?: boolean | undefined;
                todoListEnabled?: boolean | undefined;
                modelTemperature?: number | null | undefined;
                rateLimitSeconds?: number | undefined;
                consecutiveMistakeLimit?: number | undefined;
                enableReasoningEffort?: boolean | undefined;
                modelMaxTokens?: number | undefined;
                modelMaxThinkingTokens?: number | undefined;
                verbosity?: "low" | "medium" | "high" | undefined;
                apiModelId?: string | undefined;
                costrictAccessToken?: string | undefined;
                costrictRefreshToken?: string | undefined;
                costrictState?: string | undefined;
                costrictBaseUrl?: string | undefined;
                costrictModelId?: string | undefined;
                costrictApiKeyUpdatedAt?: string | undefined;
                costrictApiKeyExpiredAt?: string | undefined;
                useCostrictCustomConfig?: boolean | undefined;
                costrictAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                apiKey?: string | undefined;
                anthropicBaseUrl?: string | undefined;
                anthropicUseAuthToken?: boolean | undefined;
                anthropicBeta1MContext?: boolean | undefined;
                openRouterApiKey?: string | undefined;
                openRouterModelId?: string | undefined;
                openRouterBaseUrl?: string | undefined;
                openRouterSpecificProvider?: string | undefined;
                awsAccessKey?: string | undefined;
                awsSecretKey?: string | undefined;
                awsSessionToken?: string | undefined;
                awsRegion?: string | undefined;
                awsUseCrossRegionInference?: boolean | undefined;
                awsUseGlobalInference?: boolean | undefined;
                awsUsePromptCache?: boolean | undefined;
                awsProfile?: string | undefined;
                awsUseProfile?: boolean | undefined;
                awsApiKey?: string | undefined;
                awsUseApiKey?: boolean | undefined;
                awsCustomArn?: string | undefined;
                awsModelContextWindow?: number | undefined;
                awsBedrockEndpointEnabled?: boolean | undefined;
                awsBedrockEndpoint?: string | undefined;
                awsBedrock1MContext?: boolean | undefined;
                awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
                vertexKeyFile?: string | undefined;
                vertexJsonCredentials?: string | undefined;
                vertexProjectId?: string | undefined;
                vertexRegion?: string | undefined;
                vertex1MContext?: boolean | undefined;
                openAiBaseUrl?: string | undefined;
                openAiApiKey?: string | undefined;
                openAiR1FormatEnabled?: boolean | undefined;
                openAiModelId?: string | undefined;
                openAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                openAiUseAzure?: boolean | undefined;
                azureApiVersion?: string | undefined;
                openAiStreamingEnabled?: boolean | undefined;
                openAiHostHeader?: string | undefined;
                openAiHeaders?: Record<string, string> | undefined;
                ollamaModelId?: string | undefined;
                ollamaBaseUrl?: string | undefined;
                ollamaApiKey?: string | undefined;
                ollamaNumCtx?: number | undefined;
                vsCodeLmModelSelector?: {
                    id?: string | undefined;
                    family?: string | undefined;
                    version?: string | undefined;
                    vendor?: string | undefined;
                } | undefined;
                lmStudioModelId?: string | undefined;
                lmStudioBaseUrl?: string | undefined;
                lmStudioDraftModelId?: string | undefined;
                lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
                geminiApiKey?: string | undefined;
                googleGeminiBaseUrl?: string | undefined;
                geminiCliOAuthPath?: string | undefined;
                geminiCliProjectId?: string | undefined;
                openAiNativeApiKey?: string | undefined;
                openAiNativeBaseUrl?: string | undefined;
                openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
                mistralApiKey?: string | undefined;
                mistralCodestralUrl?: string | undefined;
                deepSeekBaseUrl?: string | undefined;
                deepSeekApiKey?: string | undefined;
                poeApiKey?: string | undefined;
                poeBaseUrl?: string | undefined;
                moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
                moonshotApiKey?: string | undefined;
                minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
                minimaxApiKey?: string | undefined;
                mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
                mimoApiKey?: string | undefined;
                requestyBaseUrl?: string | undefined;
                requestyApiKey?: string | undefined;
                requestyModelId?: string | undefined;
                unboundApiKey?: string | undefined;
                unboundModelId?: string | undefined;
                fakeAi?: unknown;
                xaiApiKey?: string | undefined;
                basetenApiKey?: string | undefined;
                litellmBaseUrl?: string | undefined;
                litellmApiKey?: string | undefined;
                litellmModelId?: string | undefined;
                litellmUsePromptCache?: boolean | undefined;
                sambaNovaApiKey?: string | undefined;
                zaiApiKey?: string | undefined;
                zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
                fireworksApiKey?: string | undefined;
                qwenCodeOauthPath?: string | undefined;
                rooApiKey?: string | undefined;
                vercelAiGatewayApiKey?: string | undefined;
                vercelAiGatewayModelId?: string | undefined;
                mode?: string | undefined;
                errorCode?: Record<string, Record<string, string>> | undefined;
                customInstructions?: string | undefined;
                customModes?: {
                    name: string;
                    slug: string;
                    roleDefinition: string;
                    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[];
                    description?: string | undefined;
                    apiProvider?: string | undefined;
                    source?: "global" | "project" | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                    overrideSystemPrompt?: boolean | undefined;
                    costrictCodeModeGroup?: string | undefined;
                    subagents?: string[] | undefined;
                    pure?: boolean | undefined;
                    disableSwitchMode?: boolean | undefined;
                    taskMode?: string | undefined;
                }[] | undefined;
                debug?: boolean | undefined;
                currentApiConfigName?: string | undefined;
                listApiConfigMeta?: {
                    id: string;
                    name: string;
                    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                    modelId?: string | undefined;
                }[] | undefined;
                pinnedApiConfigs?: Record<string, boolean> | undefined;
                autoCleanup?: {
                    enabled?: boolean | undefined;
                    strategy?: CleanupStrategy | undefined;
                    retentionDays?: number | undefined;
                    maxHistoryCount?: number | undefined;
                    excludeActive?: boolean | undefined;
                    cleanupOnStartup?: boolean | undefined;
                } | undefined;
                lastShownAnnouncementId?: string | undefined;
                taskHistory?: {
                    number: number;
                    ts: number;
                    totalCost: number;
                    id: string;
                    task: string;
                    tokensIn: number;
                    tokensOut: number;
                    status?: "active" | "completed" | "delegated" | undefined;
                    rootTaskId?: string | undefined;
                    parentTaskId?: string | undefined;
                    cacheWrites?: number | undefined;
                    cacheReads?: number | undefined;
                    size?: number | undefined;
                    workspace?: string | undefined;
                    mode?: string | undefined;
                    apiConfigName?: string | undefined;
                    delegatedToId?: string | undefined;
                    childIds?: string[] | undefined;
                    awaitingChildId?: string | undefined;
                    completedByChildId?: string | undefined;
                    completionResultSummary?: string | undefined;
                }[] | undefined;
                dismissedUpsells?: string[] | undefined;
                clickedOnceNotices?: number[] | undefined;
                imageGenerationProvider?: "openrouter" | "roo" | undefined;
                openRouterImageApiKey?: string | undefined;
                openRouterImageGenerationSelectedModel?: string | undefined;
                customCondensingPrompt?: string | undefined;
                costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
                autoApprovalEnabled?: boolean | undefined;
                alwaysAllowReadOnly?: boolean | undefined;
                alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
                alwaysAllowWrite?: boolean | undefined;
                alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
                alwaysAllowWriteProtected?: boolean | undefined;
                writeDelayMs?: number | undefined;
                requestDelaySeconds?: number | undefined;
                alwaysAllowMcp?: boolean | undefined;
                alwaysAllowModeSwitch?: boolean | undefined;
                alwaysAllowSubtasks?: boolean | undefined;
                alwaysAllowExecute?: boolean | undefined;
                alwaysAllowFollowupQuestions?: boolean | undefined;
                followupAutoApproveTimeoutMs?: number | undefined;
                allowedCommands?: string[] | undefined;
                deniedCommands?: string[] | undefined;
                commandExecutionTimeout?: number | undefined;
                commandTimeoutAllowlist?: string[] | undefined;
                preventCompletionWithOpenTodos?: boolean | undefined;
                allowedMaxRequests?: number | null | undefined;
                allowedMaxCost?: number | null | undefined;
                autoCondenseContext?: boolean | undefined;
                autoCondenseContextPercent?: number | undefined;
                includeCurrentTime?: boolean | undefined;
                includeCurrentCost?: boolean | undefined;
                maxGitStatusFiles?: number | undefined;
                includeDiagnosticMessages?: boolean | undefined;
                maxDiagnosticMessages?: number | undefined;
                customStoragePath?: string | undefined;
                enableCheckpoints?: boolean | undefined;
                checkpointTimeout?: number | undefined;
                ttsEnabled?: boolean | undefined;
                ttsSpeed?: number | undefined;
                soundEnabled?: boolean | undefined;
                soundVolume?: number | undefined;
                maxOpenTabsContext?: number | undefined;
                maxWorkspaceFiles?: number | undefined;
                showRooIgnoredFiles?: boolean | undefined;
                enableSubfolderRules?: boolean | undefined;
                maxImageFileSize?: number | undefined;
                maxTotalImageSize?: number | undefined;
                terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
                terminalShellIntegrationTimeout?: number | undefined;
                terminalShellIntegrationDisabled?: boolean | undefined;
                terminalCommandDelay?: number | undefined;
                terminalPowershellCounter?: boolean | undefined;
                terminalZshClearEolMark?: boolean | undefined;
                terminalZshOhMy?: boolean | undefined;
                terminalZshP10k?: boolean | undefined;
                terminalZdotdir?: boolean | undefined;
                execaShellPath?: string | undefined;
                diagnosticsEnabled?: boolean | undefined;
                experiments?: {
                    preventFocusDisruption?: boolean | undefined;
                    imageGeneration?: boolean | undefined;
                    runSlashCommand?: boolean | undefined;
                    customTools?: boolean | undefined;
                    chatSearch?: boolean | undefined;
                    commitReview?: boolean | undefined;
                    useKPTtree?: boolean | undefined;
                    useLitePrompts?: boolean | undefined;
                    smartMistakeDetection?: boolean | undefined;
                } | undefined;
                experimentSettings?: {
                    smartMistakeDetectionConfig?: {
                        autoSwitchModel?: boolean | undefined;
                    } | undefined;
                } | undefined;
                codebaseIndexModels?: {
                    openai?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    ollama?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "openai-compatible"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    gemini?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    mistral?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "vercel-ai-gateway"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    bedrock?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    openrouter?: Record<string, {
                        dimension: number;
                    }> | undefined;
                } | undefined;
                codebaseIndexConfig?: {
                    codebaseIndexEnabled?: boolean | undefined;
                    codebaseIndexQdrantUrl?: string | undefined;
                    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                    codebaseIndexEmbedderBaseUrl?: string | undefined;
                    codebaseIndexEmbedderModelId?: string | undefined;
                    codebaseIndexEmbedderModelDimension?: number | undefined;
                    codebaseIndexSearchMinScore?: number | undefined;
                    codebaseIndexSearchMaxResults?: number | undefined;
                    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                    codebaseIndexBedrockRegion?: string | undefined;
                    codebaseIndexBedrockProfile?: string | undefined;
                    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
                } | undefined;
                telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
                mcpEnabled?: boolean | undefined;
                prevMode?: string | undefined;
                modeApiConfigs?: Record<string, string> | undefined;
                customModePrompts?: Record<string, {
                    description?: string | undefined;
                    roleDefinition?: string | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                } | undefined> | undefined;
                customSupportPrompts?: Record<string, string | undefined> | undefined;
                enhancementApiConfigId?: string | undefined;
                includeTaskHistoryInEnhance?: boolean | undefined;
                historyPreviewCollapsed?: boolean | undefined;
                reasoningBlockCollapsed?: boolean | undefined;
                showSpeedInfo?: boolean | undefined;
                automaticallyFocus?: boolean | undefined;
                collapseMarkdownWithoutScroll?: boolean | undefined;
                enterBehavior?: "send" | "newline" | undefined;
                profileThresholds?: Record<string, number> | undefined;
                hasOpenedModeSelector?: boolean | undefined;
                hasClosedCodeReviewWelcomeTips?: boolean | undefined;
                lastModeExportPath?: string | undefined;
                lastModeImportPath?: string | undefined;
                lastSettingsExportPath?: string | undefined;
                lastTaskExportPath?: string | undefined;
                lastImageSavePath?: string | undefined;
                worktreeAutoOpenPath?: string | undefined;
                showWorktreesInHomeScreen?: boolean | undefined;
                disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
            };
            images?: string[] | undefined;
            newTab?: boolean | undefined;
        };
        commandName: TaskCommandName.StartNewTask;
    } | {
        commandName: TaskCommandName.CancelTask;
    } | {
        commandName: TaskCommandName.CloseTask;
    } | {
        data: string;
        commandName: TaskCommandName.ResumeTask;
    } | {
        data: {
            text?: string | undefined;
            images?: string[] | undefined;
        };
        commandName: TaskCommandName.SendMessage;
    } | {
        commandName: TaskCommandName.GetCommands;
    } | {
        commandName: TaskCommandName.GetModes;
    } | {
        commandName: TaskCommandName.GetModels;
    } | {
        data: string;
        commandName: TaskCommandName.DeleteQueuedMessage;
    };
    clientId: string;
    origin: IpcOrigin.Client;
}, {
    type: IpcMessageType.TaskCommand;
    data: {
        data: {
            text: string;
            configuration: {
                codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                codeIndexOpenAiKey?: string | undefined;
                codeIndexQdrantApiKey?: string | undefined;
                codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
                codebaseIndexGeminiApiKey?: string | undefined;
                codebaseIndexMistralApiKey?: string | undefined;
                codebaseIndexVercelAiGatewayApiKey?: string | undefined;
                codebaseIndexOpenRouterApiKey?: string | undefined;
                reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
                apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                includeMaxTokens?: boolean | undefined;
                todoListEnabled?: boolean | undefined;
                modelTemperature?: number | null | undefined;
                rateLimitSeconds?: number | undefined;
                consecutiveMistakeLimit?: number | undefined;
                enableReasoningEffort?: boolean | undefined;
                modelMaxTokens?: number | undefined;
                modelMaxThinkingTokens?: number | undefined;
                verbosity?: "low" | "medium" | "high" | undefined;
                apiModelId?: string | undefined;
                costrictAccessToken?: string | undefined;
                costrictRefreshToken?: string | undefined;
                costrictState?: string | undefined;
                costrictBaseUrl?: string | undefined;
                costrictModelId?: string | undefined;
                costrictApiKeyUpdatedAt?: string | undefined;
                costrictApiKeyExpiredAt?: string | undefined;
                useCostrictCustomConfig?: boolean | undefined;
                costrictAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                apiKey?: string | undefined;
                anthropicBaseUrl?: string | undefined;
                anthropicUseAuthToken?: boolean | undefined;
                anthropicBeta1MContext?: boolean | undefined;
                openRouterApiKey?: string | undefined;
                openRouterModelId?: string | undefined;
                openRouterBaseUrl?: string | undefined;
                openRouterSpecificProvider?: string | undefined;
                awsAccessKey?: string | undefined;
                awsSecretKey?: string | undefined;
                awsSessionToken?: string | undefined;
                awsRegion?: string | undefined;
                awsUseCrossRegionInference?: boolean | undefined;
                awsUseGlobalInference?: boolean | undefined;
                awsUsePromptCache?: boolean | undefined;
                awsProfile?: string | undefined;
                awsUseProfile?: boolean | undefined;
                awsApiKey?: string | undefined;
                awsUseApiKey?: boolean | undefined;
                awsCustomArn?: string | undefined;
                awsModelContextWindow?: number | undefined;
                awsBedrockEndpointEnabled?: boolean | undefined;
                awsBedrockEndpoint?: string | undefined;
                awsBedrock1MContext?: boolean | undefined;
                awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
                vertexKeyFile?: string | undefined;
                vertexJsonCredentials?: string | undefined;
                vertexProjectId?: string | undefined;
                vertexRegion?: string | undefined;
                vertex1MContext?: boolean | undefined;
                openAiBaseUrl?: string | undefined;
                openAiApiKey?: string | undefined;
                openAiR1FormatEnabled?: boolean | undefined;
                openAiModelId?: string | undefined;
                openAiCustomModelInfo?: {
                    contextWindow: number;
                    supportsPromptCache: boolean;
                    id?: string | undefined;
                    maxTokens?: number | null | undefined;
                    maxThinkingTokens?: number | null | undefined;
                    supportsImages?: boolean | undefined;
                    maxTokensKey?: string | undefined;
                    creditConsumption?: number | undefined;
                    creditDiscount?: number | undefined;
                    promptCacheRetention?: "in_memory" | "24h" | undefined;
                    supportsVerbosity?: boolean | undefined;
                    supportsReasoningBudget?: boolean | undefined;
                    supportsReasoningBinary?: boolean | undefined;
                    supportsTemperature?: boolean | undefined;
                    defaultTemperature?: number | undefined;
                    requiredReasoningBudget?: boolean | undefined;
                    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
                    requiredReasoningEffort?: boolean | undefined;
                    preserveReasoning?: boolean | undefined;
                    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
                    inputPrice?: number | undefined;
                    outputPrice?: number | undefined;
                    cacheWritesPrice?: number | undefined;
                    cacheReadsPrice?: number | undefined;
                    longContextPricing?: {
                        thresholdTokens: number;
                        inputPriceMultiplier?: number | undefined;
                        outputPriceMultiplier?: number | undefined;
                        cacheWritesPriceMultiplier?: number | undefined;
                        cacheReadsPriceMultiplier?: number | undefined;
                        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
                    } | undefined;
                    description?: string | undefined;
                    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
                    minTokensPerCachePoint?: number | undefined;
                    maxCachePoints?: number | undefined;
                    cachableFields?: string[] | undefined;
                    deprecated?: boolean | undefined;
                    isStealthModel?: boolean | undefined;
                    isFree?: boolean | undefined;
                    excludedTools?: string[] | undefined;
                    includedTools?: string[] | undefined;
                    tiers?: {
                        contextWindow: number;
                        inputPrice?: number | undefined;
                        outputPrice?: number | undefined;
                        cacheWritesPrice?: number | undefined;
                        cacheReadsPrice?: number | undefined;
                        name?: "default" | "flex" | "priority" | undefined;
                    }[] | undefined;
                } | null | undefined;
                openAiUseAzure?: boolean | undefined;
                azureApiVersion?: string | undefined;
                openAiStreamingEnabled?: boolean | undefined;
                openAiHostHeader?: string | undefined;
                openAiHeaders?: Record<string, string> | undefined;
                ollamaModelId?: string | undefined;
                ollamaBaseUrl?: string | undefined;
                ollamaApiKey?: string | undefined;
                ollamaNumCtx?: number | undefined;
                vsCodeLmModelSelector?: {
                    id?: string | undefined;
                    family?: string | undefined;
                    version?: string | undefined;
                    vendor?: string | undefined;
                } | undefined;
                lmStudioModelId?: string | undefined;
                lmStudioBaseUrl?: string | undefined;
                lmStudioDraftModelId?: string | undefined;
                lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
                geminiApiKey?: string | undefined;
                googleGeminiBaseUrl?: string | undefined;
                geminiCliOAuthPath?: string | undefined;
                geminiCliProjectId?: string | undefined;
                openAiNativeApiKey?: string | undefined;
                openAiNativeBaseUrl?: string | undefined;
                openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
                mistralApiKey?: string | undefined;
                mistralCodestralUrl?: string | undefined;
                deepSeekBaseUrl?: string | undefined;
                deepSeekApiKey?: string | undefined;
                poeApiKey?: string | undefined;
                poeBaseUrl?: string | undefined;
                moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
                moonshotApiKey?: string | undefined;
                minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
                minimaxApiKey?: string | undefined;
                mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
                mimoApiKey?: string | undefined;
                requestyBaseUrl?: string | undefined;
                requestyApiKey?: string | undefined;
                requestyModelId?: string | undefined;
                unboundApiKey?: string | undefined;
                unboundModelId?: string | undefined;
                fakeAi?: unknown;
                xaiApiKey?: string | undefined;
                basetenApiKey?: string | undefined;
                litellmBaseUrl?: string | undefined;
                litellmApiKey?: string | undefined;
                litellmModelId?: string | undefined;
                litellmUsePromptCache?: boolean | undefined;
                sambaNovaApiKey?: string | undefined;
                zaiApiKey?: string | undefined;
                zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
                fireworksApiKey?: string | undefined;
                qwenCodeOauthPath?: string | undefined;
                rooApiKey?: string | undefined;
                vercelAiGatewayApiKey?: string | undefined;
                vercelAiGatewayModelId?: string | undefined;
                mode?: string | undefined;
                errorCode?: Record<string, Record<string, string>> | undefined;
                customInstructions?: string | undefined;
                customModes?: {
                    name: string;
                    slug: string;
                    roleDefinition: string;
                    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                        description?: string | undefined;
                        fileRegex?: string | undefined;
                    }])[];
                    description?: string | undefined;
                    apiProvider?: string | undefined;
                    source?: "global" | "project" | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                    overrideSystemPrompt?: boolean | undefined;
                    costrictCodeModeGroup?: string | undefined;
                    subagents?: string[] | undefined;
                    pure?: boolean | undefined;
                    disableSwitchMode?: boolean | undefined;
                    taskMode?: string | undefined;
                }[] | undefined;
                debug?: boolean | undefined;
                currentApiConfigName?: string | undefined;
                listApiConfigMeta?: {
                    id: string;
                    name: string;
                    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
                    modelId?: string | undefined;
                }[] | undefined;
                pinnedApiConfigs?: Record<string, boolean> | undefined;
                autoCleanup?: {
                    enabled?: boolean | undefined;
                    strategy?: CleanupStrategy | undefined;
                    retentionDays?: number | undefined;
                    maxHistoryCount?: number | undefined;
                    excludeActive?: boolean | undefined;
                    cleanupOnStartup?: boolean | undefined;
                } | undefined;
                lastShownAnnouncementId?: string | undefined;
                taskHistory?: {
                    number: number;
                    ts: number;
                    totalCost: number;
                    id: string;
                    task: string;
                    tokensIn: number;
                    tokensOut: number;
                    status?: "active" | "completed" | "delegated" | undefined;
                    rootTaskId?: string | undefined;
                    parentTaskId?: string | undefined;
                    cacheWrites?: number | undefined;
                    cacheReads?: number | undefined;
                    size?: number | undefined;
                    workspace?: string | undefined;
                    mode?: string | undefined;
                    apiConfigName?: string | undefined;
                    delegatedToId?: string | undefined;
                    childIds?: string[] | undefined;
                    awaitingChildId?: string | undefined;
                    completedByChildId?: string | undefined;
                    completionResultSummary?: string | undefined;
                }[] | undefined;
                dismissedUpsells?: string[] | undefined;
                clickedOnceNotices?: number[] | undefined;
                imageGenerationProvider?: "openrouter" | "roo" | undefined;
                openRouterImageApiKey?: string | undefined;
                openRouterImageGenerationSelectedModel?: string | undefined;
                customCondensingPrompt?: string | undefined;
                costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
                autoApprovalEnabled?: boolean | undefined;
                alwaysAllowReadOnly?: boolean | undefined;
                alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
                alwaysAllowWrite?: boolean | undefined;
                alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
                alwaysAllowWriteProtected?: boolean | undefined;
                writeDelayMs?: number | undefined;
                requestDelaySeconds?: number | undefined;
                alwaysAllowMcp?: boolean | undefined;
                alwaysAllowModeSwitch?: boolean | undefined;
                alwaysAllowSubtasks?: boolean | undefined;
                alwaysAllowExecute?: boolean | undefined;
                alwaysAllowFollowupQuestions?: boolean | undefined;
                followupAutoApproveTimeoutMs?: number | undefined;
                allowedCommands?: string[] | undefined;
                deniedCommands?: string[] | undefined;
                commandExecutionTimeout?: number | undefined;
                commandTimeoutAllowlist?: string[] | undefined;
                preventCompletionWithOpenTodos?: boolean | undefined;
                allowedMaxRequests?: number | null | undefined;
                allowedMaxCost?: number | null | undefined;
                autoCondenseContext?: boolean | undefined;
                autoCondenseContextPercent?: number | undefined;
                includeCurrentTime?: boolean | undefined;
                includeCurrentCost?: boolean | undefined;
                maxGitStatusFiles?: number | undefined;
                includeDiagnosticMessages?: boolean | undefined;
                maxDiagnosticMessages?: number | undefined;
                customStoragePath?: string | undefined;
                enableCheckpoints?: boolean | undefined;
                checkpointTimeout?: number | undefined;
                ttsEnabled?: boolean | undefined;
                ttsSpeed?: number | undefined;
                soundEnabled?: boolean | undefined;
                soundVolume?: number | undefined;
                maxOpenTabsContext?: number | undefined;
                maxWorkspaceFiles?: number | undefined;
                showRooIgnoredFiles?: boolean | undefined;
                enableSubfolderRules?: boolean | undefined;
                maxImageFileSize?: number | undefined;
                maxTotalImageSize?: number | undefined;
                terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
                terminalShellIntegrationTimeout?: number | undefined;
                terminalShellIntegrationDisabled?: boolean | undefined;
                terminalCommandDelay?: number | undefined;
                terminalPowershellCounter?: boolean | undefined;
                terminalZshClearEolMark?: boolean | undefined;
                terminalZshOhMy?: boolean | undefined;
                terminalZshP10k?: boolean | undefined;
                terminalZdotdir?: boolean | undefined;
                execaShellPath?: string | undefined;
                diagnosticsEnabled?: boolean | undefined;
                experiments?: {
                    preventFocusDisruption?: boolean | undefined;
                    imageGeneration?: boolean | undefined;
                    runSlashCommand?: boolean | undefined;
                    customTools?: boolean | undefined;
                    chatSearch?: boolean | undefined;
                    commitReview?: boolean | undefined;
                    useKPTtree?: boolean | undefined;
                    useLitePrompts?: boolean | undefined;
                    smartMistakeDetection?: boolean | undefined;
                } | undefined;
                experimentSettings?: {
                    smartMistakeDetectionConfig?: {
                        autoSwitchModel?: boolean | undefined;
                    } | undefined;
                } | undefined;
                codebaseIndexModels?: {
                    openai?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    ollama?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "openai-compatible"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    gemini?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    mistral?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    "vercel-ai-gateway"?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    bedrock?: Record<string, {
                        dimension: number;
                    }> | undefined;
                    openrouter?: Record<string, {
                        dimension: number;
                    }> | undefined;
                } | undefined;
                codebaseIndexConfig?: {
                    codebaseIndexEnabled?: boolean | undefined;
                    codebaseIndexQdrantUrl?: string | undefined;
                    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
                    codebaseIndexEmbedderBaseUrl?: string | undefined;
                    codebaseIndexEmbedderModelId?: string | undefined;
                    codebaseIndexEmbedderModelDimension?: number | undefined;
                    codebaseIndexSearchMinScore?: number | undefined;
                    codebaseIndexSearchMaxResults?: number | undefined;
                    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
                    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
                    codebaseIndexBedrockRegion?: string | undefined;
                    codebaseIndexBedrockProfile?: string | undefined;
                    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
                } | undefined;
                telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
                mcpEnabled?: boolean | undefined;
                prevMode?: string | undefined;
                modeApiConfigs?: Record<string, string> | undefined;
                customModePrompts?: Record<string, {
                    description?: string | undefined;
                    roleDefinition?: string | undefined;
                    whenToUse?: string | undefined;
                    customInstructions?: string | undefined;
                } | undefined> | undefined;
                customSupportPrompts?: Record<string, string | undefined> | undefined;
                enhancementApiConfigId?: string | undefined;
                includeTaskHistoryInEnhance?: boolean | undefined;
                historyPreviewCollapsed?: boolean | undefined;
                reasoningBlockCollapsed?: boolean | undefined;
                showSpeedInfo?: boolean | undefined;
                automaticallyFocus?: boolean | undefined;
                collapseMarkdownWithoutScroll?: boolean | undefined;
                enterBehavior?: "send" | "newline" | undefined;
                profileThresholds?: Record<string, number> | undefined;
                hasOpenedModeSelector?: boolean | undefined;
                hasClosedCodeReviewWelcomeTips?: boolean | undefined;
                lastModeExportPath?: string | undefined;
                lastModeImportPath?: string | undefined;
                lastSettingsExportPath?: string | undefined;
                lastTaskExportPath?: string | undefined;
                lastImageSavePath?: string | undefined;
                worktreeAutoOpenPath?: string | undefined;
                showWorktreesInHomeScreen?: boolean | undefined;
                disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
            };
            images?: string[] | undefined;
            newTab?: boolean | undefined;
        };
        commandName: TaskCommandName.StartNewTask;
    } | {
        commandName: TaskCommandName.CancelTask;
    } | {
        commandName: TaskCommandName.CloseTask;
    } | {
        data: string;
        commandName: TaskCommandName.ResumeTask;
    } | {
        data: {
            text?: string | undefined;
            images?: string[] | undefined;
        };
        commandName: TaskCommandName.SendMessage;
    } | {
        commandName: TaskCommandName.GetCommands;
    } | {
        commandName: TaskCommandName.GetModes;
    } | {
        commandName: TaskCommandName.GetModels;
    } | {
        data: string;
        commandName: TaskCommandName.DeleteQueuedMessage;
    };
    clientId: string;
    origin: IpcOrigin.Client;
}>, z.ZodObject<{
    type: z.ZodLiteral<IpcMessageType.TaskEvent>;
    origin: z.ZodLiteral<IpcOrigin.Server>;
    relayClientId: z.ZodOptional<z.ZodString>;
    data: z.ZodDiscriminatedUnion<"eventName", [z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskCreated>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskCreated;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskCreated;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskStarted>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskStarted;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskStarted;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskCompleted>;
        payload: z.ZodTuple<[z.ZodString, z.ZodObject<{
            totalTokensIn: z.ZodNumber;
            totalTokensOut: z.ZodNumber;
            totalCacheWrites: z.ZodOptional<z.ZodNumber>;
            totalCacheReads: z.ZodOptional<z.ZodNumber>;
            totalCost: z.ZodNumber;
            contextTokens: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }>, z.ZodRecord<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, z.ZodObject<{
            attempts: z.ZodNumber;
            failures: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            attempts: number;
            failures: number;
        }, {
            attempts: number;
            failures: number;
        }>>, z.ZodObject<{
            isSubtask: z.ZodBoolean;
        }, "strip", z.ZodTypeAny, {
            isSubtask: boolean;
        }, {
            isSubtask: boolean;
        }>], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskCompleted;
        payload: [string, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
            attempts: number;
            failures: number;
        }>>, {
            isSubtask: boolean;
        }];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskCompleted;
        payload: [string, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
            attempts: number;
            failures: number;
        }>>, {
            isSubtask: boolean;
        }];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskAborted>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskAborted;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskAborted;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskFocused>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskFocused;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskFocused;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskUnfocused>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskUnfocused;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskUnfocused;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskActive>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskActive;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskActive;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskInteractive>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskInteractive;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskInteractive;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskResumable>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskResumable;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskResumable;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskIdle>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskIdle;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskIdle;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskPaused>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskPaused;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskPaused;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskUnpaused>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskUnpaused;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskUnpaused;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskSpawned>;
        payload: z.ZodTuple<[z.ZodString, z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskSpawned;
        payload: [string, string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskSpawned;
        payload: [string, string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskDelegated>;
        payload: z.ZodTuple<[z.ZodString, z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskDelegated;
        payload: [string, string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskDelegated;
        payload: [string, string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskDelegationCompleted>;
        payload: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskDelegationCompleted;
        payload: [string, string, string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskDelegationCompleted;
        payload: [string, string, string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskDelegationResumed>;
        payload: z.ZodTuple<[z.ZodString, z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskDelegationResumed;
        payload: [string, string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskDelegationResumed;
        payload: [string, string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.Message>;
        payload: z.ZodTuple<[z.ZodObject<{
            taskId: z.ZodString;
            action: z.ZodUnion<[z.ZodLiteral<"created">, z.ZodLiteral<"updated">]>;
            message: z.ZodObject<{
                ts: z.ZodNumber;
                type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
                ask: z.ZodOptional<z.ZodEnum<["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"]>>;
                say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"]>>;
                text: z.ZodOptional<z.ZodString>;
                subtaskId: z.ZodOptional<z.ZodString>;
                images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
                partial: z.ZodOptional<z.ZodBoolean>;
                reasoning: z.ZodOptional<z.ZodString>;
                conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
                checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                progressStatus: z.ZodOptional<z.ZodObject<{
                    icon: z.ZodOptional<z.ZodString>;
                    text: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    text?: string | undefined;
                    icon?: string | undefined;
                }, {
                    text?: string | undefined;
                    icon?: string | undefined;
                }>>;
                contextCondense: z.ZodOptional<z.ZodObject<{
                    cost: z.ZodNumber;
                    prevContextTokens: z.ZodNumber;
                    newContextTokens: z.ZodNumber;
                    summary: z.ZodString;
                    condenseId: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    cost: number;
                    prevContextTokens: number;
                    newContextTokens: number;
                    summary: string;
                    condenseId?: string | undefined;
                }, {
                    cost: number;
                    prevContextTokens: number;
                    newContextTokens: number;
                    summary: string;
                    condenseId?: string | undefined;
                }>>;
                contextTruncation: z.ZodOptional<z.ZodObject<{
                    truncationId: z.ZodString;
                    messagesRemoved: z.ZodNumber;
                    prevContextTokens: z.ZodNumber;
                    newContextTokens: z.ZodNumber;
                }, "strip", z.ZodTypeAny, {
                    prevContextTokens: number;
                    newContextTokens: number;
                    truncationId: string;
                    messagesRemoved: number;
                }, {
                    prevContextTokens: number;
                    newContextTokens: number;
                    truncationId: string;
                    messagesRemoved: number;
                }>>;
                isProtected: z.ZodOptional<z.ZodBoolean>;
                apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
                isAnswered: z.ZodOptional<z.ZodBoolean>;
                userResponse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                metadata: z.ZodOptional<z.ZodObject<{
                    isRateLimit: z.ZodOptional<z.ZodBoolean>;
                    isRateLimitRetry: z.ZodOptional<z.ZodBoolean>;
                    gpt5: z.ZodOptional<z.ZodObject<{
                        previous_response_id: z.ZodOptional<z.ZodString>;
                    }, "strip", z.ZodTypeAny, {
                        previous_response_id?: string | undefined;
                    }, {
                        previous_response_id?: string | undefined;
                    }>>;
                }, "strip", z.ZodTypeAny, {
                    isRateLimit?: boolean | undefined;
                    isRateLimitRetry?: boolean | undefined;
                    gpt5?: {
                        previous_response_id?: string | undefined;
                    } | undefined;
                }, {
                    isRateLimit?: boolean | undefined;
                    isRateLimitRetry?: boolean | undefined;
                    gpt5?: {
                        previous_response_id?: string | undefined;
                    } | undefined;
                }>>;
            }, "strip", z.ZodTypeAny, {
                type: "ask" | "say";
                ts: number;
                text?: string | undefined;
                reasoning?: string | undefined;
                ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
                say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
                subtaskId?: string | undefined;
                images?: string[] | undefined;
                partial?: boolean | undefined;
                conversationHistoryIndex?: number | undefined;
                checkpoint?: Record<string, unknown> | undefined;
                progressStatus?: {
                    text?: string | undefined;
                    icon?: string | undefined;
                } | undefined;
                contextCondense?: {
                    cost: number;
                    prevContextTokens: number;
                    newContextTokens: number;
                    summary: string;
                    condenseId?: string | undefined;
                } | undefined;
                contextTruncation?: {
                    prevContextTokens: number;
                    newContextTokens: number;
                    truncationId: string;
                    messagesRemoved: number;
                } | undefined;
                isProtected?: boolean | undefined;
                apiProtocol?: "openai" | "anthropic" | undefined;
                isAnswered?: boolean | undefined;
                userResponse?: Record<string, unknown> | undefined;
                metadata?: {
                    isRateLimit?: boolean | undefined;
                    isRateLimitRetry?: boolean | undefined;
                    gpt5?: {
                        previous_response_id?: string | undefined;
                    } | undefined;
                } | undefined;
            }, {
                type: "ask" | "say";
                ts: number;
                text?: string | undefined;
                reasoning?: string | undefined;
                ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
                say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
                subtaskId?: string | undefined;
                images?: string[] | undefined;
                partial?: boolean | undefined;
                conversationHistoryIndex?: number | undefined;
                checkpoint?: Record<string, unknown> | undefined;
                progressStatus?: {
                    text?: string | undefined;
                    icon?: string | undefined;
                } | undefined;
                contextCondense?: {
                    cost: number;
                    prevContextTokens: number;
                    newContextTokens: number;
                    summary: string;
                    condenseId?: string | undefined;
                } | undefined;
                contextTruncation?: {
                    prevContextTokens: number;
                    newContextTokens: number;
                    truncationId: string;
                    messagesRemoved: number;
                } | undefined;
                isProtected?: boolean | undefined;
                apiProtocol?: "openai" | "anthropic" | undefined;
                isAnswered?: boolean | undefined;
                userResponse?: Record<string, unknown> | undefined;
                metadata?: {
                    isRateLimit?: boolean | undefined;
                    isRateLimitRetry?: boolean | undefined;
                    gpt5?: {
                        previous_response_id?: string | undefined;
                    } | undefined;
                } | undefined;
            }>;
        }, "strip", z.ZodTypeAny, {
            message: {
                type: "ask" | "say";
                ts: number;
                text?: string | undefined;
                reasoning?: string | undefined;
                ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
                say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
                subtaskId?: string | undefined;
                images?: string[] | undefined;
                partial?: boolean | undefined;
                conversationHistoryIndex?: number | undefined;
                checkpoint?: Record<string, unknown> | undefined;
                progressStatus?: {
                    text?: string | undefined;
                    icon?: string | undefined;
                } | undefined;
                contextCondense?: {
                    cost: number;
                    prevContextTokens: number;
                    newContextTokens: number;
                    summary: string;
                    condenseId?: string | undefined;
                } | undefined;
                contextTruncation?: {
                    prevContextTokens: number;
                    newContextTokens: number;
                    truncationId: string;
                    messagesRemoved: number;
                } | undefined;
                isProtected?: boolean | undefined;
                apiProtocol?: "openai" | "anthropic" | undefined;
                isAnswered?: boolean | undefined;
                userResponse?: Record<string, unknown> | undefined;
                metadata?: {
                    isRateLimit?: boolean | undefined;
                    isRateLimitRetry?: boolean | undefined;
                    gpt5?: {
                        previous_response_id?: string | undefined;
                    } | undefined;
                } | undefined;
            };
            taskId: string;
            action: "created" | "updated";
        }, {
            message: {
                type: "ask" | "say";
                ts: number;
                text?: string | undefined;
                reasoning?: string | undefined;
                ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
                say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
                subtaskId?: string | undefined;
                images?: string[] | undefined;
                partial?: boolean | undefined;
                conversationHistoryIndex?: number | undefined;
                checkpoint?: Record<string, unknown> | undefined;
                progressStatus?: {
                    text?: string | undefined;
                    icon?: string | undefined;
                } | undefined;
                contextCondense?: {
                    cost: number;
                    prevContextTokens: number;
                    newContextTokens: number;
                    summary: string;
                    condenseId?: string | undefined;
                } | undefined;
                contextTruncation?: {
                    prevContextTokens: number;
                    newContextTokens: number;
                    truncationId: string;
                    messagesRemoved: number;
                } | undefined;
                isProtected?: boolean | undefined;
                apiProtocol?: "openai" | "anthropic" | undefined;
                isAnswered?: boolean | undefined;
                userResponse?: Record<string, unknown> | undefined;
                metadata?: {
                    isRateLimit?: boolean | undefined;
                    isRateLimitRetry?: boolean | undefined;
                    gpt5?: {
                        previous_response_id?: string | undefined;
                    } | undefined;
                } | undefined;
            };
            taskId: string;
            action: "created" | "updated";
        }>], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.Message;
        payload: [{
            message: {
                type: "ask" | "say";
                ts: number;
                text?: string | undefined;
                reasoning?: string | undefined;
                ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
                say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
                subtaskId?: string | undefined;
                images?: string[] | undefined;
                partial?: boolean | undefined;
                conversationHistoryIndex?: number | undefined;
                checkpoint?: Record<string, unknown> | undefined;
                progressStatus?: {
                    text?: string | undefined;
                    icon?: string | undefined;
                } | undefined;
                contextCondense?: {
                    cost: number;
                    prevContextTokens: number;
                    newContextTokens: number;
                    summary: string;
                    condenseId?: string | undefined;
                } | undefined;
                contextTruncation?: {
                    prevContextTokens: number;
                    newContextTokens: number;
                    truncationId: string;
                    messagesRemoved: number;
                } | undefined;
                isProtected?: boolean | undefined;
                apiProtocol?: "openai" | "anthropic" | undefined;
                isAnswered?: boolean | undefined;
                userResponse?: Record<string, unknown> | undefined;
                metadata?: {
                    isRateLimit?: boolean | undefined;
                    isRateLimitRetry?: boolean | undefined;
                    gpt5?: {
                        previous_response_id?: string | undefined;
                    } | undefined;
                } | undefined;
            };
            taskId: string;
            action: "created" | "updated";
        }];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.Message;
        payload: [{
            message: {
                type: "ask" | "say";
                ts: number;
                text?: string | undefined;
                reasoning?: string | undefined;
                ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
                say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
                subtaskId?: string | undefined;
                images?: string[] | undefined;
                partial?: boolean | undefined;
                conversationHistoryIndex?: number | undefined;
                checkpoint?: Record<string, unknown> | undefined;
                progressStatus?: {
                    text?: string | undefined;
                    icon?: string | undefined;
                } | undefined;
                contextCondense?: {
                    cost: number;
                    prevContextTokens: number;
                    newContextTokens: number;
                    summary: string;
                    condenseId?: string | undefined;
                } | undefined;
                contextTruncation?: {
                    prevContextTokens: number;
                    newContextTokens: number;
                    truncationId: string;
                    messagesRemoved: number;
                } | undefined;
                isProtected?: boolean | undefined;
                apiProtocol?: "openai" | "anthropic" | undefined;
                isAnswered?: boolean | undefined;
                userResponse?: Record<string, unknown> | undefined;
                metadata?: {
                    isRateLimit?: boolean | undefined;
                    isRateLimitRetry?: boolean | undefined;
                    gpt5?: {
                        previous_response_id?: string | undefined;
                    } | undefined;
                } | undefined;
            };
            taskId: string;
            action: "created" | "updated";
        }];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskModeSwitched>;
        payload: z.ZodTuple<[z.ZodString, z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskModeSwitched;
        payload: [string, string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskModeSwitched;
        payload: [string, string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskAskResponded>;
        payload: z.ZodTuple<[z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskAskResponded;
        payload: [string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskAskResponded;
        payload: [string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.QueuedMessagesUpdated>;
        payload: z.ZodTuple<[z.ZodString, z.ZodArray<z.ZodObject<{
            timestamp: z.ZodNumber;
            id: z.ZodString;
            text: z.ZodString;
            images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }, {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }>, "many">], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.QueuedMessagesUpdated;
        payload: [string, {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }[]];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.QueuedMessagesUpdated;
        payload: [string, {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }[]];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskToolFailed>;
        payload: z.ZodTuple<[z.ZodString, z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, z.ZodString], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskToolFailed;
        payload: [string, "apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", string];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskToolFailed;
        payload: [string, "apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", string];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.TaskTokenUsageUpdated>;
        payload: z.ZodTuple<[z.ZodString, z.ZodObject<{
            totalTokensIn: z.ZodNumber;
            totalTokensOut: z.ZodNumber;
            totalCacheWrites: z.ZodOptional<z.ZodNumber>;
            totalCacheReads: z.ZodOptional<z.ZodNumber>;
            totalCost: z.ZodNumber;
            contextTokens: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }>, z.ZodRecord<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, z.ZodObject<{
            attempts: z.ZodNumber;
            failures: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            attempts: number;
            failures: number;
        }, {
            attempts: number;
            failures: number;
        }>>], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.TaskTokenUsageUpdated;
        payload: [string, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
            attempts: number;
            failures: number;
        }>>];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.TaskTokenUsageUpdated;
        payload: [string, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
            attempts: number;
            failures: number;
        }>>];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.CommandsResponse>;
        payload: z.ZodTuple<[z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            source: z.ZodEnum<["global", "project", "built-in"]>;
            filePath: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            argumentHint: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            source: "global" | "project" | "built-in";
            description?: string | undefined;
            filePath?: string | undefined;
            argumentHint?: string | undefined;
        }, {
            name: string;
            source: "global" | "project" | "built-in";
            description?: string | undefined;
            filePath?: string | undefined;
            argumentHint?: string | undefined;
        }>, "many">], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.CommandsResponse;
        payload: [{
            name: string;
            source: "global" | "project" | "built-in";
            description?: string | undefined;
            filePath?: string | undefined;
            argumentHint?: string | undefined;
        }[]];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.CommandsResponse;
        payload: [{
            name: string;
            source: "global" | "project" | "built-in";
            description?: string | undefined;
            filePath?: string | undefined;
            argumentHint?: string | undefined;
        }[]];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.ModesResponse>;
        payload: z.ZodTuple<[z.ZodArray<z.ZodObject<{
            slug: z.ZodString;
            name: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            name: string;
            slug: string;
        }, {
            name: string;
            slug: string;
        }>, "many">], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.ModesResponse;
        payload: [{
            name: string;
            slug: string;
        }[]];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.ModesResponse;
        payload: [{
            name: string;
            slug: string;
        }[]];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.ModelsResponse>;
        payload: z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodObject<{
            maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            contextWindow: z.ZodNumber;
            supportsImages: z.ZodOptional<z.ZodBoolean>;
            id: z.ZodOptional<z.ZodString>;
            maxTokensKey: z.ZodOptional<z.ZodString>;
            creditConsumption: z.ZodOptional<z.ZodNumber>;
            creditDiscount: z.ZodOptional<z.ZodNumber>;
            supportsPromptCache: z.ZodBoolean;
            promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
            supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
            supportsTemperature: z.ZodOptional<z.ZodBoolean>;
            defaultTemperature: z.ZodOptional<z.ZodNumber>;
            requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
            requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
            preserveReasoning: z.ZodOptional<z.ZodBoolean>;
            supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            longContextPricing: z.ZodOptional<z.ZodObject<{
                thresholdTokens: z.ZodNumber;
                inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
            }, "strip", z.ZodTypeAny, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }>>;
            description: z.ZodOptional<z.ZodString>;
            reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
            minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
            maxCachePoints: z.ZodOptional<z.ZodNumber>;
            cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            deprecated: z.ZodOptional<z.ZodBoolean>;
            isStealthModel: z.ZodOptional<z.ZodBoolean>;
            isFree: z.ZodOptional<z.ZodBoolean>;
            excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                contextWindow: z.ZodNumber;
                inputPrice: z.ZodOptional<z.ZodNumber>;
                outputPrice: z.ZodOptional<z.ZodNumber>;
                cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            }, "strip", z.ZodTypeAny, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>>], null>;
        taskId: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        eventName: RooCodeEventName.ModelsResponse;
        payload: [Record<string, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>];
        taskId?: number | undefined;
    }, {
        eventName: RooCodeEventName.ModelsResponse;
        payload: [Record<string, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>];
        taskId?: number | undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.EvalPass>;
        payload: z.ZodUndefined;
        taskId: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        taskId: number;
        eventName: RooCodeEventName.EvalPass;
        payload?: undefined;
    }, {
        taskId: number;
        eventName: RooCodeEventName.EvalPass;
        payload?: undefined;
    }>, z.ZodObject<{
        eventName: z.ZodLiteral<RooCodeEventName.EvalFail>;
        payload: z.ZodUndefined;
        taskId: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        taskId: number;
        eventName: RooCodeEventName.EvalFail;
        payload?: undefined;
    }, {
        taskId: number;
        eventName: RooCodeEventName.EvalFail;
        payload?: undefined;
    }>]>;
}, "strip", z.ZodTypeAny, {
    type: IpcMessageType.TaskEvent;
    data: {
        eventName: RooCodeEventName.TaskCreated;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskStarted;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskCompleted;
        payload: [string, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
            attempts: number;
            failures: number;
        }>>, {
            isSubtask: boolean;
        }];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskAborted;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskFocused;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskUnfocused;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskActive;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskInteractive;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskResumable;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskIdle;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskPaused;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskUnpaused;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskSpawned;
        payload: [string, string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskDelegated;
        payload: [string, string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskDelegationCompleted;
        payload: [string, string, string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskDelegationResumed;
        payload: [string, string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.Message;
        payload: [{
            message: {
                type: "ask" | "say";
                ts: number;
                text?: string | undefined;
                reasoning?: string | undefined;
                ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
                say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
                subtaskId?: string | undefined;
                images?: string[] | undefined;
                partial?: boolean | undefined;
                conversationHistoryIndex?: number | undefined;
                checkpoint?: Record<string, unknown> | undefined;
                progressStatus?: {
                    text?: string | undefined;
                    icon?: string | undefined;
                } | undefined;
                contextCondense?: {
                    cost: number;
                    prevContextTokens: number;
                    newContextTokens: number;
                    summary: string;
                    condenseId?: string | undefined;
                } | undefined;
                contextTruncation?: {
                    prevContextTokens: number;
                    newContextTokens: number;
                    truncationId: string;
                    messagesRemoved: number;
                } | undefined;
                isProtected?: boolean | undefined;
                apiProtocol?: "openai" | "anthropic" | undefined;
                isAnswered?: boolean | undefined;
                userResponse?: Record<string, unknown> | undefined;
                metadata?: {
                    isRateLimit?: boolean | undefined;
                    isRateLimitRetry?: boolean | undefined;
                    gpt5?: {
                        previous_response_id?: string | undefined;
                    } | undefined;
                } | undefined;
            };
            taskId: string;
            action: "created" | "updated";
        }];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskModeSwitched;
        payload: [string, string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskAskResponded;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.QueuedMessagesUpdated;
        payload: [string, {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }[]];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskToolFailed;
        payload: [string, "apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskTokenUsageUpdated;
        payload: [string, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
            attempts: number;
            failures: number;
        }>>];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.CommandsResponse;
        payload: [{
            name: string;
            source: "global" | "project" | "built-in";
            description?: string | undefined;
            filePath?: string | undefined;
            argumentHint?: string | undefined;
        }[]];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.ModesResponse;
        payload: [{
            name: string;
            slug: string;
        }[]];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.ModelsResponse;
        payload: [Record<string, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>];
        taskId?: number | undefined;
    } | {
        taskId: number;
        eventName: RooCodeEventName.EvalPass;
        payload?: undefined;
    } | {
        taskId: number;
        eventName: RooCodeEventName.EvalFail;
        payload?: undefined;
    };
    origin: IpcOrigin.Server;
    relayClientId?: string | undefined;
}, {
    type: IpcMessageType.TaskEvent;
    data: {
        eventName: RooCodeEventName.TaskCreated;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskStarted;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskCompleted;
        payload: [string, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
            attempts: number;
            failures: number;
        }>>, {
            isSubtask: boolean;
        }];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskAborted;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskFocused;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskUnfocused;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskActive;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskInteractive;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskResumable;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskIdle;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskPaused;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskUnpaused;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskSpawned;
        payload: [string, string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskDelegated;
        payload: [string, string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskDelegationCompleted;
        payload: [string, string, string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskDelegationResumed;
        payload: [string, string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.Message;
        payload: [{
            message: {
                type: "ask" | "say";
                ts: number;
                text?: string | undefined;
                reasoning?: string | undefined;
                ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
                say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
                subtaskId?: string | undefined;
                images?: string[] | undefined;
                partial?: boolean | undefined;
                conversationHistoryIndex?: number | undefined;
                checkpoint?: Record<string, unknown> | undefined;
                progressStatus?: {
                    text?: string | undefined;
                    icon?: string | undefined;
                } | undefined;
                contextCondense?: {
                    cost: number;
                    prevContextTokens: number;
                    newContextTokens: number;
                    summary: string;
                    condenseId?: string | undefined;
                } | undefined;
                contextTruncation?: {
                    prevContextTokens: number;
                    newContextTokens: number;
                    truncationId: string;
                    messagesRemoved: number;
                } | undefined;
                isProtected?: boolean | undefined;
                apiProtocol?: "openai" | "anthropic" | undefined;
                isAnswered?: boolean | undefined;
                userResponse?: Record<string, unknown> | undefined;
                metadata?: {
                    isRateLimit?: boolean | undefined;
                    isRateLimitRetry?: boolean | undefined;
                    gpt5?: {
                        previous_response_id?: string | undefined;
                    } | undefined;
                } | undefined;
            };
            taskId: string;
            action: "created" | "updated";
        }];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskModeSwitched;
        payload: [string, string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskAskResponded;
        payload: [string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.QueuedMessagesUpdated;
        payload: [string, {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }[]];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskToolFailed;
        payload: [string, "apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", string];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.TaskTokenUsageUpdated;
        payload: [string, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, Partial<Record<"apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint", {
            attempts: number;
            failures: number;
        }>>];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.CommandsResponse;
        payload: [{
            name: string;
            source: "global" | "project" | "built-in";
            description?: string | undefined;
            filePath?: string | undefined;
            argumentHint?: string | undefined;
        }[]];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.ModesResponse;
        payload: [{
            name: string;
            slug: string;
        }[]];
        taskId?: number | undefined;
    } | {
        eventName: RooCodeEventName.ModelsResponse;
        payload: [Record<string, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>];
        taskId?: number | undefined;
    } | {
        taskId: number;
        eventName: RooCodeEventName.EvalPass;
        payload?: undefined;
    } | {
        taskId: number;
        eventName: RooCodeEventName.EvalFail;
        payload?: undefined;
    };
    origin: IpcOrigin.Server;
    relayClientId?: string | undefined;
}>]>;
type IpcMessage = z.infer<typeof ipcMessageSchema>;
/**
 * IpcClientEvents
 */
type IpcClientEvents = {
    [IpcMessageType.Connect]: [];
    [IpcMessageType.Disconnect]: [];
    [IpcMessageType.Ack]: [data: Ack];
    [IpcMessageType.TaskCommand]: [data: TaskCommand];
    [IpcMessageType.TaskEvent]: [data: TaskEvent];
};
/**
 * IpcServerEvents
 */
type IpcServerEvents = {
    [IpcMessageType.Connect]: [clientId: string];
    [IpcMessageType.Disconnect]: [clientId: string];
    [IpcMessageType.TaskCommand]: [clientId: string, data: TaskCommand];
    [IpcMessageType.TaskEvent]: [relayClientId: string | undefined, data: TaskEvent];
};

type RooCodeAPIEvents = RooCodeEvents;
interface RooCodeAPI extends EventEmitter<RooCodeAPIEvents> {
    /**
     * Starts a new task with an optional initial message and images.
     * @param task Optional initial task message.
     * @param images Optional array of image data URIs (e.g., "data:image/webp;base64,...").
     * @returns The ID of the new task.
     */
    startNewTask({ configuration, text, images, newTab, }: {
        configuration?: RooCodeSettings;
        text?: string;
        images?: string[];
        newTab?: boolean;
    }): Promise<string>;
    /**
     * Resumes a task with the given ID.
     * @param taskId The ID of the task to resume.
     * @throws Error if the task is not found in the task history.
     */
    resumeTask(taskId: string): Promise<void>;
    /**
     * Checks if a task with the given ID is in the task history.
     * @param taskId The ID of the task to check.
     * @returns True if the task is in the task history, false otherwise.
     */
    isTaskInHistory(taskId: string): Promise<boolean>;
    /**
     * Returns the current task stack.
     * @returns An array of task IDs.
     */
    getCurrentTaskStack(): string[];
    /**
     * Clears the current task.
     */
    clearCurrentTask(lastMessage?: string): Promise<void>;
    /**
     * Cancels the current task.
     */
    cancelCurrentTask(): Promise<void>;
    /**
     * Sends a message to the current task.
     * @param message Optional message to send.
     * @param images Optional array of image data URIs (e.g., "data:image/webp;base64,...").
     */
    sendMessage(message?: string, images?: string[]): Promise<void>;
    /**
     * Simulates pressing the primary button in the chat interface.
     */
    pressPrimaryButton(): Promise<void>;
    /**
     * Simulates pressing the secondary button in the chat interface.
     */
    pressSecondaryButton(): Promise<void>;
    /**
     * Returns true if the API is ready to use.
     */
    isReady(): boolean;
    /**
     * Returns the current configuration.
     * @returns The current configuration.
     */
    getConfiguration(): RooCodeSettings;
    /**
     * Sets the configuration for the current task.
     * @param values An object containing key-value pairs to set.
     */
    setConfiguration(values: RooCodeSettings): Promise<void>;
    /**
     * Returns a list of all configured profile names
     * @returns Array of profile names
     */
    getProfiles(): string[];
    /**
     * Returns the profile entry for a given name
     * @param name The name of the profile
     * @returns The profile entry, or undefined if the profile does not exist
     */
    getProfileEntry(name: string): ProviderSettingsEntry | undefined;
    /**
     * Creates a new API configuration profile
     * @param name The name of the profile
     * @param profile The profile to create; defaults to an empty object
     * @param activate Whether to activate the profile after creation; defaults to true
     * @returns The ID of the created profile
     * @throws Error if the profile already exists
     */
    createProfile(name: string, profile?: ProviderSettings, activate?: boolean): Promise<string>;
    /**
     * Updates an existing API configuration profile
     * @param name The name of the profile
     * @param profile The profile to update
     * @param activate Whether to activate the profile after update; defaults to true
     * @returns The ID of the updated profile
     * @throws Error if the profile does not exist
     */
    updateProfile(name: string, profile: ProviderSettings, activate?: boolean): Promise<string | undefined>;
    /**
     * Creates a new API configuration profile or updates an existing one
     * @param name The name of the profile
     * @param profile The profile to create or update; defaults to an empty object
     * @param activate Whether to activate the profile after upsert; defaults to true
     * @returns The ID of the upserted profile
     */
    upsertProfile(name: string, profile: ProviderSettings, activate?: boolean): Promise<string | undefined>;
    /**
     * Deletes a profile by name
     * @param name The name of the profile to delete
     * @throws Error if the profile does not exist
     */
    deleteProfile(name: string): Promise<void>;
    /**
     * Returns the name of the currently active profile
     * @returns The profile name, or undefined if no profile is active
     */
    getActiveProfile(): string | undefined;
    /**
     * Changes the active API configuration profile
     * @param name The name of the profile to activate
     * @throws Error if the profile does not exist
     */
    setActiveProfile(name: string): Promise<string | undefined>;
}
interface RooCodeIpcServer extends EventEmitter<IpcServerEvents> {
    listen(): void;
    broadcast(message: IpcMessage): void;
    send(client: string | Socket, message: IpcMessage): void;
    get socketPath(): string;
    get isListening(): boolean;
}

/**
 * Roo CLI stdin commands
 */
declare const rooCliCommandNames: readonly ["start", "message", "cancel", "ping", "shutdown"];
declare const rooCliCommandNameSchema: z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>;
type RooCliCommandName = z.infer<typeof rooCliCommandNameSchema>;
declare const rooCliCommandBaseSchema: z.ZodObject<{
    command: z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>;
    requestId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    command: "message" | "start" | "cancel" | "ping" | "shutdown";
    requestId: string;
}, {
    command: "message" | "start" | "cancel" | "ping" | "shutdown";
    requestId: string;
}>;
type RooCliCommandBase = z.infer<typeof rooCliCommandBaseSchema>;
declare const rooCliStartCommandSchema: z.ZodObject<{
    requestId: z.ZodString;
} & {
    command: z.ZodLiteral<"start">;
    prompt: z.ZodString;
    taskId: z.ZodOptional<z.ZodString>;
    images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    configuration: z.ZodOptional<z.ZodObject<{
        codeIndexOpenAiKey: z.ZodOptional<z.ZodString>;
        codeIndexQdrantApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
        codebaseIndexGeminiApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexMistralApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexVercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenRouterApiKey: z.ZodOptional<z.ZodString>;
        includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
        todoListEnabled: z.ZodOptional<z.ZodBoolean>;
        modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
        enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
        modelMaxTokens: z.ZodOptional<z.ZodNumber>;
        modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
        verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
        vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
        vercelAiGatewayModelId: z.ZodOptional<z.ZodString>;
        apiModelId: z.ZodOptional<z.ZodString>;
        rooApiKey: z.ZodOptional<z.ZodString>;
        qwenCodeOauthPath: z.ZodOptional<z.ZodString>;
        fireworksApiKey: z.ZodOptional<z.ZodString>;
        zaiApiKey: z.ZodOptional<z.ZodString>;
        zaiApiLine: z.ZodOptional<z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>>;
        sambaNovaApiKey: z.ZodOptional<z.ZodString>;
        litellmBaseUrl: z.ZodOptional<z.ZodString>;
        litellmApiKey: z.ZodOptional<z.ZodString>;
        litellmModelId: z.ZodOptional<z.ZodString>;
        litellmUsePromptCache: z.ZodOptional<z.ZodBoolean>;
        basetenApiKey: z.ZodOptional<z.ZodString>;
        xaiApiKey: z.ZodOptional<z.ZodString>;
        fakeAi: z.ZodOptional<z.ZodUnknown>;
        unboundApiKey: z.ZodOptional<z.ZodString>;
        unboundModelId: z.ZodOptional<z.ZodString>;
        requestyBaseUrl: z.ZodOptional<z.ZodString>;
        requestyApiKey: z.ZodOptional<z.ZodString>;
        requestyModelId: z.ZodOptional<z.ZodString>;
        mimoBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-cn.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-sgp.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-ams.xiaomimimo.com/v1">]>>;
        mimoApiKey: z.ZodOptional<z.ZodString>;
        minimaxBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.minimax.io/v1">, z.ZodLiteral<"https://api.minimaxi.com/v1">]>>;
        minimaxApiKey: z.ZodOptional<z.ZodString>;
        moonshotBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.moonshot.ai/v1">, z.ZodLiteral<"https://api.moonshot.cn/v1">]>>;
        moonshotApiKey: z.ZodOptional<z.ZodString>;
        poeApiKey: z.ZodOptional<z.ZodString>;
        poeBaseUrl: z.ZodOptional<z.ZodString>;
        deepSeekBaseUrl: z.ZodOptional<z.ZodString>;
        deepSeekApiKey: z.ZodOptional<z.ZodString>;
        mistralApiKey: z.ZodOptional<z.ZodString>;
        mistralCodestralUrl: z.ZodOptional<z.ZodString>;
        openAiNativeApiKey: z.ZodOptional<z.ZodString>;
        openAiNativeBaseUrl: z.ZodOptional<z.ZodString>;
        openAiNativeServiceTier: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
        geminiCliOAuthPath: z.ZodOptional<z.ZodString>;
        geminiCliProjectId: z.ZodOptional<z.ZodString>;
        geminiApiKey: z.ZodOptional<z.ZodString>;
        googleGeminiBaseUrl: z.ZodOptional<z.ZodString>;
        lmStudioModelId: z.ZodOptional<z.ZodString>;
        lmStudioBaseUrl: z.ZodOptional<z.ZodString>;
        lmStudioDraftModelId: z.ZodOptional<z.ZodString>;
        lmStudioSpeculativeDecodingEnabled: z.ZodOptional<z.ZodBoolean>;
        vsCodeLmModelSelector: z.ZodOptional<z.ZodObject<{
            vendor: z.ZodOptional<z.ZodString>;
            family: z.ZodOptional<z.ZodString>;
            version: z.ZodOptional<z.ZodString>;
            id: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        }, {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        }>>;
        ollamaModelId: z.ZodOptional<z.ZodString>;
        ollamaBaseUrl: z.ZodOptional<z.ZodString>;
        ollamaApiKey: z.ZodOptional<z.ZodString>;
        ollamaNumCtx: z.ZodOptional<z.ZodNumber>;
        openAiBaseUrl: z.ZodOptional<z.ZodString>;
        openAiApiKey: z.ZodOptional<z.ZodString>;
        openAiR1FormatEnabled: z.ZodOptional<z.ZodBoolean>;
        openAiModelId: z.ZodOptional<z.ZodString>;
        openAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
            maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            contextWindow: z.ZodNumber;
            supportsImages: z.ZodOptional<z.ZodBoolean>;
            id: z.ZodOptional<z.ZodString>;
            maxTokensKey: z.ZodOptional<z.ZodString>;
            creditConsumption: z.ZodOptional<z.ZodNumber>;
            creditDiscount: z.ZodOptional<z.ZodNumber>;
            supportsPromptCache: z.ZodBoolean;
            promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
            supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
            supportsTemperature: z.ZodOptional<z.ZodBoolean>;
            defaultTemperature: z.ZodOptional<z.ZodNumber>;
            requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
            requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
            preserveReasoning: z.ZodOptional<z.ZodBoolean>;
            supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            longContextPricing: z.ZodOptional<z.ZodObject<{
                thresholdTokens: z.ZodNumber;
                inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
            }, "strip", z.ZodTypeAny, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }>>;
            description: z.ZodOptional<z.ZodString>;
            reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
            minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
            maxCachePoints: z.ZodOptional<z.ZodNumber>;
            cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            deprecated: z.ZodOptional<z.ZodBoolean>;
            isStealthModel: z.ZodOptional<z.ZodBoolean>;
            isFree: z.ZodOptional<z.ZodBoolean>;
            excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                contextWindow: z.ZodNumber;
                inputPrice: z.ZodOptional<z.ZodNumber>;
                outputPrice: z.ZodOptional<z.ZodNumber>;
                cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            }, "strip", z.ZodTypeAny, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>>>;
        openAiUseAzure: z.ZodOptional<z.ZodBoolean>;
        azureApiVersion: z.ZodOptional<z.ZodString>;
        openAiStreamingEnabled: z.ZodOptional<z.ZodBoolean>;
        openAiHostHeader: z.ZodOptional<z.ZodString>;
        openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        vertexKeyFile: z.ZodOptional<z.ZodString>;
        vertexJsonCredentials: z.ZodOptional<z.ZodString>;
        vertexProjectId: z.ZodOptional<z.ZodString>;
        vertexRegion: z.ZodOptional<z.ZodString>;
        vertex1MContext: z.ZodOptional<z.ZodBoolean>;
        awsAccessKey: z.ZodOptional<z.ZodString>;
        awsSecretKey: z.ZodOptional<z.ZodString>;
        awsSessionToken: z.ZodOptional<z.ZodString>;
        awsRegion: z.ZodOptional<z.ZodString>;
        awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
        awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
        awsUsePromptCache: z.ZodOptional<z.ZodBoolean>;
        awsProfile: z.ZodOptional<z.ZodString>;
        awsUseProfile: z.ZodOptional<z.ZodBoolean>;
        awsApiKey: z.ZodOptional<z.ZodString>;
        awsUseApiKey: z.ZodOptional<z.ZodBoolean>;
        awsCustomArn: z.ZodOptional<z.ZodString>;
        awsModelContextWindow: z.ZodOptional<z.ZodNumber>;
        awsBedrockEndpointEnabled: z.ZodOptional<z.ZodBoolean>;
        awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
        awsBedrock1MContext: z.ZodOptional<z.ZodBoolean>;
        awsBedrockServiceTier: z.ZodOptional<z.ZodEnum<["STANDARD", "FLEX", "PRIORITY"]>>;
        openRouterApiKey: z.ZodOptional<z.ZodString>;
        openRouterModelId: z.ZodOptional<z.ZodString>;
        openRouterBaseUrl: z.ZodOptional<z.ZodString>;
        openRouterSpecificProvider: z.ZodOptional<z.ZodString>;
        apiKey: z.ZodOptional<z.ZodString>;
        anthropicBaseUrl: z.ZodOptional<z.ZodString>;
        anthropicUseAuthToken: z.ZodOptional<z.ZodBoolean>;
        anthropicBeta1MContext: z.ZodOptional<z.ZodBoolean>;
        costrictAccessToken: z.ZodOptional<z.ZodString>;
        costrictRefreshToken: z.ZodOptional<z.ZodString>;
        costrictState: z.ZodOptional<z.ZodString>;
        costrictBaseUrl: z.ZodOptional<z.ZodString>;
        costrictModelId: z.ZodOptional<z.ZodString>;
        costrictApiKeyUpdatedAt: z.ZodOptional<z.ZodString>;
        costrictApiKeyExpiredAt: z.ZodOptional<z.ZodString>;
        costrictAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
            maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            contextWindow: z.ZodNumber;
            supportsImages: z.ZodOptional<z.ZodBoolean>;
            id: z.ZodOptional<z.ZodString>;
            maxTokensKey: z.ZodOptional<z.ZodString>;
            creditConsumption: z.ZodOptional<z.ZodNumber>;
            creditDiscount: z.ZodOptional<z.ZodNumber>;
            supportsPromptCache: z.ZodBoolean;
            promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
            supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
            supportsTemperature: z.ZodOptional<z.ZodBoolean>;
            defaultTemperature: z.ZodOptional<z.ZodNumber>;
            requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
            requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
            preserveReasoning: z.ZodOptional<z.ZodBoolean>;
            supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            longContextPricing: z.ZodOptional<z.ZodObject<{
                thresholdTokens: z.ZodNumber;
                inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
            }, "strip", z.ZodTypeAny, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }>>;
            description: z.ZodOptional<z.ZodString>;
            reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
            minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
            maxCachePoints: z.ZodOptional<z.ZodNumber>;
            cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            deprecated: z.ZodOptional<z.ZodBoolean>;
            isStealthModel: z.ZodOptional<z.ZodBoolean>;
            isFree: z.ZodOptional<z.ZodBoolean>;
            excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                contextWindow: z.ZodNumber;
                inputPrice: z.ZodOptional<z.ZodNumber>;
                outputPrice: z.ZodOptional<z.ZodNumber>;
                cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            }, "strip", z.ZodTypeAny, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>>>;
        apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
    } & {
        currentApiConfigName: z.ZodOptional<z.ZodString>;
        listApiConfigMeta: z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            name: z.ZodString;
            apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
            modelId: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }, {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }>, "many">>;
        pinnedApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
        debug: z.ZodOptional<z.ZodBoolean>;
        autoCleanup: z.ZodOptional<z.ZodObject<{
            enabled: z.ZodOptional<z.ZodBoolean>;
            strategy: z.ZodOptional<z.ZodNativeEnum<typeof CleanupStrategy>>;
            retentionDays: z.ZodOptional<z.ZodNumber>;
            maxHistoryCount: z.ZodOptional<z.ZodNumber>;
            excludeActive: z.ZodOptional<z.ZodBoolean>;
            cleanupOnStartup: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        }, {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        }>>;
        lastShownAnnouncementId: z.ZodOptional<z.ZodString>;
        customInstructions: z.ZodOptional<z.ZodString>;
        taskHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            rootTaskId: z.ZodOptional<z.ZodString>;
            parentTaskId: z.ZodOptional<z.ZodString>;
            number: z.ZodNumber;
            ts: z.ZodNumber;
            task: z.ZodString;
            tokensIn: z.ZodNumber;
            tokensOut: z.ZodNumber;
            cacheWrites: z.ZodOptional<z.ZodNumber>;
            cacheReads: z.ZodOptional<z.ZodNumber>;
            totalCost: z.ZodNumber;
            size: z.ZodOptional<z.ZodNumber>;
            workspace: z.ZodOptional<z.ZodString>;
            mode: z.ZodOptional<z.ZodString>;
            apiConfigName: z.ZodOptional<z.ZodString>;
            status: z.ZodOptional<z.ZodEnum<["active", "completed", "delegated"]>>;
            delegatedToId: z.ZodOptional<z.ZodString>;
            childIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            awaitingChildId: z.ZodOptional<z.ZodString>;
            completedByChildId: z.ZodOptional<z.ZodString>;
            completionResultSummary: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }, {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }>, "many">>;
        dismissedUpsells: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        clickedOnceNotices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        imageGenerationProvider: z.ZodOptional<z.ZodEnum<["openrouter", "roo"]>>;
        openRouterImageApiKey: z.ZodOptional<z.ZodString>;
        openRouterImageGenerationSelectedModel: z.ZodOptional<z.ZodString>;
        customCondensingPrompt: z.ZodOptional<z.ZodString>;
        useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
        costrictCodeMode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"vibe">, z.ZodLiteral<"strict">, z.ZodLiteral<"raw">, z.ZodLiteral<"plan">]>>;
        autoApprovalEnabled: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowReadOnly: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowReadOnlyOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowWrite: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowWriteOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowWriteProtected: z.ZodOptional<z.ZodBoolean>;
        writeDelayMs: z.ZodOptional<z.ZodNumber>;
        requestDelaySeconds: z.ZodOptional<z.ZodNumber>;
        alwaysAllowMcp: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowModeSwitch: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowSubtasks: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowExecute: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowFollowupQuestions: z.ZodOptional<z.ZodBoolean>;
        followupAutoApproveTimeoutMs: z.ZodOptional<z.ZodNumber>;
        allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
        commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
        allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        allowedMaxCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
        autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
        includeCurrentTime: z.ZodOptional<z.ZodBoolean>;
        includeCurrentCost: z.ZodOptional<z.ZodBoolean>;
        maxGitStatusFiles: z.ZodOptional<z.ZodNumber>;
        includeDiagnosticMessages: z.ZodOptional<z.ZodBoolean>;
        maxDiagnosticMessages: z.ZodOptional<z.ZodNumber>;
        customStoragePath: z.ZodOptional<z.ZodString>;
        enableCheckpoints: z.ZodOptional<z.ZodBoolean>;
        checkpointTimeout: z.ZodOptional<z.ZodNumber>;
        ttsEnabled: z.ZodOptional<z.ZodBoolean>;
        ttsSpeed: z.ZodOptional<z.ZodNumber>;
        soundEnabled: z.ZodOptional<z.ZodBoolean>;
        soundVolume: z.ZodOptional<z.ZodNumber>;
        maxOpenTabsContext: z.ZodOptional<z.ZodNumber>;
        maxWorkspaceFiles: z.ZodOptional<z.ZodNumber>;
        showRooIgnoredFiles: z.ZodOptional<z.ZodBoolean>;
        enableSubfolderRules: z.ZodOptional<z.ZodBoolean>;
        maxImageFileSize: z.ZodOptional<z.ZodNumber>;
        maxTotalImageSize: z.ZodOptional<z.ZodNumber>;
        terminalOutputPreviewSize: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
        terminalShellIntegrationTimeout: z.ZodOptional<z.ZodNumber>;
        terminalShellIntegrationDisabled: z.ZodOptional<z.ZodBoolean>;
        terminalCommandDelay: z.ZodOptional<z.ZodNumber>;
        terminalPowershellCounter: z.ZodOptional<z.ZodBoolean>;
        terminalZshClearEolMark: z.ZodOptional<z.ZodBoolean>;
        terminalZshOhMy: z.ZodOptional<z.ZodBoolean>;
        terminalZshP10k: z.ZodOptional<z.ZodBoolean>;
        terminalZdotdir: z.ZodOptional<z.ZodBoolean>;
        execaShellPath: z.ZodOptional<z.ZodString>;
        diagnosticsEnabled: z.ZodOptional<z.ZodBoolean>;
        rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
        experiments: z.ZodOptional<z.ZodObject<{
            chatSearch: z.ZodOptional<z.ZodBoolean>;
            useKPTtree: z.ZodOptional<z.ZodBoolean>;
            commitReview: z.ZodOptional<z.ZodBoolean>;
            useLitePrompts: z.ZodOptional<z.ZodBoolean>;
            preventFocusDisruption: z.ZodOptional<z.ZodBoolean>;
            imageGeneration: z.ZodOptional<z.ZodBoolean>;
            runSlashCommand: z.ZodOptional<z.ZodBoolean>;
            customTools: z.ZodOptional<z.ZodBoolean>;
            smartMistakeDetection: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        }, {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        }>>;
        experimentSettings: z.ZodOptional<z.ZodObject<{
            smartMistakeDetectionConfig: z.ZodOptional<z.ZodObject<{
                autoSwitchModel: z.ZodOptional<z.ZodBoolean>;
            }, "strip", z.ZodTypeAny, {
                autoSwitchModel?: boolean | undefined;
            }, {
                autoSwitchModel?: boolean | undefined;
            }>>;
        }, "strip", z.ZodTypeAny, {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        }, {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        }>>;
        codebaseIndexModels: z.ZodOptional<z.ZodObject<{
            openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            ollama: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            "openai-compatible": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            gemini: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            mistral: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            "vercel-ai-gateway": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            openrouter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            bedrock: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
        }, "strip", z.ZodTypeAny, {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        }, {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        }>>;
        codebaseIndexConfig: z.ZodOptional<z.ZodObject<{
            codebaseIndexEnabled: z.ZodOptional<z.ZodBoolean>;
            codebaseIndexQdrantUrl: z.ZodOptional<z.ZodString>;
            codebaseIndexEmbedderProvider: z.ZodOptional<z.ZodEnum<["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway", "bedrock", "openrouter"]>>;
            codebaseIndexEmbedderBaseUrl: z.ZodOptional<z.ZodString>;
            codebaseIndexEmbedderModelId: z.ZodOptional<z.ZodString>;
            codebaseIndexEmbedderModelDimension: z.ZodOptional<z.ZodNumber>;
            codebaseIndexSearchMinScore: z.ZodOptional<z.ZodNumber>;
            codebaseIndexSearchMaxResults: z.ZodOptional<z.ZodNumber>;
            codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
            codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
            codebaseIndexBedrockRegion: z.ZodOptional<z.ZodString>;
            codebaseIndexBedrockProfile: z.ZodOptional<z.ZodString>;
            codebaseIndexOpenRouterSpecificProvider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        }, {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        }>>;
        language: z.ZodOptional<z.ZodEnum<["ca", "de", "en", "es", "fr", "hi", "id", "it", "ja", "ko", "nl", "pl", "pt-BR", "ru", "tr", "vi", "zh-CN", "zh-TW"]>>;
        telemetrySetting: z.ZodOptional<z.ZodEnum<["unset", "enabled", "disabled"]>>;
        mcpEnabled: z.ZodOptional<z.ZodBoolean>;
        mode: z.ZodOptional<z.ZodString>;
        prevMode: z.ZodOptional<z.ZodString>;
        modeApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        customModes: z.ZodOptional<z.ZodArray<z.ZodObject<{
            slug: z.ZodString;
            name: z.ZodString;
            roleDefinition: z.ZodString;
            whenToUse: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            customInstructions: z.ZodOptional<z.ZodString>;
            groups: z.ZodType<("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[], z.ZodTypeDef, ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[]>;
            overrideSystemPrompt: z.ZodOptional<z.ZodBoolean>;
            source: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
            costrictCodeModeGroup: z.ZodOptional<z.ZodDefault<z.ZodString>>;
            apiProvider: z.ZodOptional<z.ZodString>;
            subagents: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
            pure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
            disableSwitchMode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
            taskMode: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }, {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }>, "many">>;
        customModePrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
            roleDefinition: z.ZodOptional<z.ZodString>;
            whenToUse: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            customInstructions: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        }, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        }>>>>;
        customSupportPrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
        enhancementApiConfigId: z.ZodOptional<z.ZodString>;
        includeTaskHistoryInEnhance: z.ZodOptional<z.ZodBoolean>;
        historyPreviewCollapsed: z.ZodOptional<z.ZodBoolean>;
        reasoningBlockCollapsed: z.ZodOptional<z.ZodBoolean>;
        showSpeedInfo: z.ZodOptional<z.ZodBoolean>;
        automaticallyFocus: z.ZodOptional<z.ZodBoolean>;
        collapseMarkdownWithoutScroll: z.ZodOptional<z.ZodBoolean>;
        enterBehavior: z.ZodOptional<z.ZodEnum<["send", "newline"]>>;
        profileThresholds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
        hasOpenedModeSelector: z.ZodOptional<z.ZodBoolean>;
        hasClosedCodeReviewWelcomeTips: z.ZodOptional<z.ZodBoolean>;
        lastModeExportPath: z.ZodOptional<z.ZodString>;
        lastModeImportPath: z.ZodOptional<z.ZodString>;
        lastSettingsExportPath: z.ZodOptional<z.ZodString>;
        lastTaskExportPath: z.ZodOptional<z.ZodString>;
        lastImageSavePath: z.ZodOptional<z.ZodString>;
        errorCode: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
        worktreeAutoOpenPath: z.ZodOptional<z.ZodString>;
        showWorktreesInHomeScreen: z.ZodOptional<z.ZodBoolean>;
        disabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, "many">>;
    }, "strip", z.ZodTypeAny, {
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
        mode?: string | undefined;
        errorCode?: Record<string, Record<string, string>> | undefined;
        customInstructions?: string | undefined;
        customModes?: {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }[] | undefined;
        debug?: boolean | undefined;
        currentApiConfigName?: string | undefined;
        listApiConfigMeta?: {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }[] | undefined;
        pinnedApiConfigs?: Record<string, boolean> | undefined;
        autoCleanup?: {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        } | undefined;
        lastShownAnnouncementId?: string | undefined;
        taskHistory?: {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }[] | undefined;
        dismissedUpsells?: string[] | undefined;
        clickedOnceNotices?: number[] | undefined;
        imageGenerationProvider?: "openrouter" | "roo" | undefined;
        openRouterImageApiKey?: string | undefined;
        openRouterImageGenerationSelectedModel?: string | undefined;
        customCondensingPrompt?: string | undefined;
        costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
        autoApprovalEnabled?: boolean | undefined;
        alwaysAllowReadOnly?: boolean | undefined;
        alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
        alwaysAllowWrite?: boolean | undefined;
        alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
        alwaysAllowWriteProtected?: boolean | undefined;
        writeDelayMs?: number | undefined;
        requestDelaySeconds?: number | undefined;
        alwaysAllowMcp?: boolean | undefined;
        alwaysAllowModeSwitch?: boolean | undefined;
        alwaysAllowSubtasks?: boolean | undefined;
        alwaysAllowExecute?: boolean | undefined;
        alwaysAllowFollowupQuestions?: boolean | undefined;
        followupAutoApproveTimeoutMs?: number | undefined;
        allowedCommands?: string[] | undefined;
        deniedCommands?: string[] | undefined;
        commandExecutionTimeout?: number | undefined;
        commandTimeoutAllowlist?: string[] | undefined;
        preventCompletionWithOpenTodos?: boolean | undefined;
        allowedMaxRequests?: number | null | undefined;
        allowedMaxCost?: number | null | undefined;
        autoCondenseContext?: boolean | undefined;
        autoCondenseContextPercent?: number | undefined;
        includeCurrentTime?: boolean | undefined;
        includeCurrentCost?: boolean | undefined;
        maxGitStatusFiles?: number | undefined;
        includeDiagnosticMessages?: boolean | undefined;
        maxDiagnosticMessages?: number | undefined;
        customStoragePath?: string | undefined;
        enableCheckpoints?: boolean | undefined;
        checkpointTimeout?: number | undefined;
        ttsEnabled?: boolean | undefined;
        ttsSpeed?: number | undefined;
        soundEnabled?: boolean | undefined;
        soundVolume?: number | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        enableSubfolderRules?: boolean | undefined;
        maxImageFileSize?: number | undefined;
        maxTotalImageSize?: number | undefined;
        terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalPowershellCounter?: boolean | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        terminalZshOhMy?: boolean | undefined;
        terminalZshP10k?: boolean | undefined;
        terminalZdotdir?: boolean | undefined;
        execaShellPath?: string | undefined;
        diagnosticsEnabled?: boolean | undefined;
        experiments?: {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        } | undefined;
        experimentSettings?: {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        } | undefined;
        codebaseIndexModels?: {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        } | undefined;
        codebaseIndexConfig?: {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        } | undefined;
        telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
        mcpEnabled?: boolean | undefined;
        prevMode?: string | undefined;
        modeApiConfigs?: Record<string, string> | undefined;
        customModePrompts?: Record<string, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        } | undefined> | undefined;
        customSupportPrompts?: Record<string, string | undefined> | undefined;
        enhancementApiConfigId?: string | undefined;
        includeTaskHistoryInEnhance?: boolean | undefined;
        historyPreviewCollapsed?: boolean | undefined;
        reasoningBlockCollapsed?: boolean | undefined;
        showSpeedInfo?: boolean | undefined;
        automaticallyFocus?: boolean | undefined;
        collapseMarkdownWithoutScroll?: boolean | undefined;
        enterBehavior?: "send" | "newline" | undefined;
        profileThresholds?: Record<string, number> | undefined;
        hasOpenedModeSelector?: boolean | undefined;
        hasClosedCodeReviewWelcomeTips?: boolean | undefined;
        lastModeExportPath?: string | undefined;
        lastModeImportPath?: string | undefined;
        lastSettingsExportPath?: string | undefined;
        lastTaskExportPath?: string | undefined;
        lastImageSavePath?: string | undefined;
        worktreeAutoOpenPath?: string | undefined;
        showWorktreesInHomeScreen?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    }, {
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
        mode?: string | undefined;
        errorCode?: Record<string, Record<string, string>> | undefined;
        customInstructions?: string | undefined;
        customModes?: {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }[] | undefined;
        debug?: boolean | undefined;
        currentApiConfigName?: string | undefined;
        listApiConfigMeta?: {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }[] | undefined;
        pinnedApiConfigs?: Record<string, boolean> | undefined;
        autoCleanup?: {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        } | undefined;
        lastShownAnnouncementId?: string | undefined;
        taskHistory?: {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }[] | undefined;
        dismissedUpsells?: string[] | undefined;
        clickedOnceNotices?: number[] | undefined;
        imageGenerationProvider?: "openrouter" | "roo" | undefined;
        openRouterImageApiKey?: string | undefined;
        openRouterImageGenerationSelectedModel?: string | undefined;
        customCondensingPrompt?: string | undefined;
        costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
        autoApprovalEnabled?: boolean | undefined;
        alwaysAllowReadOnly?: boolean | undefined;
        alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
        alwaysAllowWrite?: boolean | undefined;
        alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
        alwaysAllowWriteProtected?: boolean | undefined;
        writeDelayMs?: number | undefined;
        requestDelaySeconds?: number | undefined;
        alwaysAllowMcp?: boolean | undefined;
        alwaysAllowModeSwitch?: boolean | undefined;
        alwaysAllowSubtasks?: boolean | undefined;
        alwaysAllowExecute?: boolean | undefined;
        alwaysAllowFollowupQuestions?: boolean | undefined;
        followupAutoApproveTimeoutMs?: number | undefined;
        allowedCommands?: string[] | undefined;
        deniedCommands?: string[] | undefined;
        commandExecutionTimeout?: number | undefined;
        commandTimeoutAllowlist?: string[] | undefined;
        preventCompletionWithOpenTodos?: boolean | undefined;
        allowedMaxRequests?: number | null | undefined;
        allowedMaxCost?: number | null | undefined;
        autoCondenseContext?: boolean | undefined;
        autoCondenseContextPercent?: number | undefined;
        includeCurrentTime?: boolean | undefined;
        includeCurrentCost?: boolean | undefined;
        maxGitStatusFiles?: number | undefined;
        includeDiagnosticMessages?: boolean | undefined;
        maxDiagnosticMessages?: number | undefined;
        customStoragePath?: string | undefined;
        enableCheckpoints?: boolean | undefined;
        checkpointTimeout?: number | undefined;
        ttsEnabled?: boolean | undefined;
        ttsSpeed?: number | undefined;
        soundEnabled?: boolean | undefined;
        soundVolume?: number | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        enableSubfolderRules?: boolean | undefined;
        maxImageFileSize?: number | undefined;
        maxTotalImageSize?: number | undefined;
        terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalPowershellCounter?: boolean | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        terminalZshOhMy?: boolean | undefined;
        terminalZshP10k?: boolean | undefined;
        terminalZdotdir?: boolean | undefined;
        execaShellPath?: string | undefined;
        diagnosticsEnabled?: boolean | undefined;
        experiments?: {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        } | undefined;
        experimentSettings?: {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        } | undefined;
        codebaseIndexModels?: {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        } | undefined;
        codebaseIndexConfig?: {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        } | undefined;
        telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
        mcpEnabled?: boolean | undefined;
        prevMode?: string | undefined;
        modeApiConfigs?: Record<string, string> | undefined;
        customModePrompts?: Record<string, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        } | undefined> | undefined;
        customSupportPrompts?: Record<string, string | undefined> | undefined;
        enhancementApiConfigId?: string | undefined;
        includeTaskHistoryInEnhance?: boolean | undefined;
        historyPreviewCollapsed?: boolean | undefined;
        reasoningBlockCollapsed?: boolean | undefined;
        showSpeedInfo?: boolean | undefined;
        automaticallyFocus?: boolean | undefined;
        collapseMarkdownWithoutScroll?: boolean | undefined;
        enterBehavior?: "send" | "newline" | undefined;
        profileThresholds?: Record<string, number> | undefined;
        hasOpenedModeSelector?: boolean | undefined;
        hasClosedCodeReviewWelcomeTips?: boolean | undefined;
        lastModeExportPath?: string | undefined;
        lastModeImportPath?: string | undefined;
        lastSettingsExportPath?: string | undefined;
        lastTaskExportPath?: string | undefined;
        lastImageSavePath?: string | undefined;
        worktreeAutoOpenPath?: string | undefined;
        showWorktreesInHomeScreen?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    }>>;
}, "strip", z.ZodTypeAny, {
    command: "start";
    requestId: string;
    prompt: string;
    images?: string[] | undefined;
    taskId?: string | undefined;
    configuration?: {
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
        mode?: string | undefined;
        errorCode?: Record<string, Record<string, string>> | undefined;
        customInstructions?: string | undefined;
        customModes?: {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }[] | undefined;
        debug?: boolean | undefined;
        currentApiConfigName?: string | undefined;
        listApiConfigMeta?: {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }[] | undefined;
        pinnedApiConfigs?: Record<string, boolean> | undefined;
        autoCleanup?: {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        } | undefined;
        lastShownAnnouncementId?: string | undefined;
        taskHistory?: {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }[] | undefined;
        dismissedUpsells?: string[] | undefined;
        clickedOnceNotices?: number[] | undefined;
        imageGenerationProvider?: "openrouter" | "roo" | undefined;
        openRouterImageApiKey?: string | undefined;
        openRouterImageGenerationSelectedModel?: string | undefined;
        customCondensingPrompt?: string | undefined;
        costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
        autoApprovalEnabled?: boolean | undefined;
        alwaysAllowReadOnly?: boolean | undefined;
        alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
        alwaysAllowWrite?: boolean | undefined;
        alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
        alwaysAllowWriteProtected?: boolean | undefined;
        writeDelayMs?: number | undefined;
        requestDelaySeconds?: number | undefined;
        alwaysAllowMcp?: boolean | undefined;
        alwaysAllowModeSwitch?: boolean | undefined;
        alwaysAllowSubtasks?: boolean | undefined;
        alwaysAllowExecute?: boolean | undefined;
        alwaysAllowFollowupQuestions?: boolean | undefined;
        followupAutoApproveTimeoutMs?: number | undefined;
        allowedCommands?: string[] | undefined;
        deniedCommands?: string[] | undefined;
        commandExecutionTimeout?: number | undefined;
        commandTimeoutAllowlist?: string[] | undefined;
        preventCompletionWithOpenTodos?: boolean | undefined;
        allowedMaxRequests?: number | null | undefined;
        allowedMaxCost?: number | null | undefined;
        autoCondenseContext?: boolean | undefined;
        autoCondenseContextPercent?: number | undefined;
        includeCurrentTime?: boolean | undefined;
        includeCurrentCost?: boolean | undefined;
        maxGitStatusFiles?: number | undefined;
        includeDiagnosticMessages?: boolean | undefined;
        maxDiagnosticMessages?: number | undefined;
        customStoragePath?: string | undefined;
        enableCheckpoints?: boolean | undefined;
        checkpointTimeout?: number | undefined;
        ttsEnabled?: boolean | undefined;
        ttsSpeed?: number | undefined;
        soundEnabled?: boolean | undefined;
        soundVolume?: number | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        enableSubfolderRules?: boolean | undefined;
        maxImageFileSize?: number | undefined;
        maxTotalImageSize?: number | undefined;
        terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalPowershellCounter?: boolean | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        terminalZshOhMy?: boolean | undefined;
        terminalZshP10k?: boolean | undefined;
        terminalZdotdir?: boolean | undefined;
        execaShellPath?: string | undefined;
        diagnosticsEnabled?: boolean | undefined;
        experiments?: {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        } | undefined;
        experimentSettings?: {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        } | undefined;
        codebaseIndexModels?: {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        } | undefined;
        codebaseIndexConfig?: {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        } | undefined;
        telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
        mcpEnabled?: boolean | undefined;
        prevMode?: string | undefined;
        modeApiConfigs?: Record<string, string> | undefined;
        customModePrompts?: Record<string, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        } | undefined> | undefined;
        customSupportPrompts?: Record<string, string | undefined> | undefined;
        enhancementApiConfigId?: string | undefined;
        includeTaskHistoryInEnhance?: boolean | undefined;
        historyPreviewCollapsed?: boolean | undefined;
        reasoningBlockCollapsed?: boolean | undefined;
        showSpeedInfo?: boolean | undefined;
        automaticallyFocus?: boolean | undefined;
        collapseMarkdownWithoutScroll?: boolean | undefined;
        enterBehavior?: "send" | "newline" | undefined;
        profileThresholds?: Record<string, number> | undefined;
        hasOpenedModeSelector?: boolean | undefined;
        hasClosedCodeReviewWelcomeTips?: boolean | undefined;
        lastModeExportPath?: string | undefined;
        lastModeImportPath?: string | undefined;
        lastSettingsExportPath?: string | undefined;
        lastTaskExportPath?: string | undefined;
        lastImageSavePath?: string | undefined;
        worktreeAutoOpenPath?: string | undefined;
        showWorktreesInHomeScreen?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    } | undefined;
}, {
    command: "start";
    requestId: string;
    prompt: string;
    images?: string[] | undefined;
    taskId?: string | undefined;
    configuration?: {
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
        mode?: string | undefined;
        errorCode?: Record<string, Record<string, string>> | undefined;
        customInstructions?: string | undefined;
        customModes?: {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }[] | undefined;
        debug?: boolean | undefined;
        currentApiConfigName?: string | undefined;
        listApiConfigMeta?: {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }[] | undefined;
        pinnedApiConfigs?: Record<string, boolean> | undefined;
        autoCleanup?: {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        } | undefined;
        lastShownAnnouncementId?: string | undefined;
        taskHistory?: {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }[] | undefined;
        dismissedUpsells?: string[] | undefined;
        clickedOnceNotices?: number[] | undefined;
        imageGenerationProvider?: "openrouter" | "roo" | undefined;
        openRouterImageApiKey?: string | undefined;
        openRouterImageGenerationSelectedModel?: string | undefined;
        customCondensingPrompt?: string | undefined;
        costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
        autoApprovalEnabled?: boolean | undefined;
        alwaysAllowReadOnly?: boolean | undefined;
        alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
        alwaysAllowWrite?: boolean | undefined;
        alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
        alwaysAllowWriteProtected?: boolean | undefined;
        writeDelayMs?: number | undefined;
        requestDelaySeconds?: number | undefined;
        alwaysAllowMcp?: boolean | undefined;
        alwaysAllowModeSwitch?: boolean | undefined;
        alwaysAllowSubtasks?: boolean | undefined;
        alwaysAllowExecute?: boolean | undefined;
        alwaysAllowFollowupQuestions?: boolean | undefined;
        followupAutoApproveTimeoutMs?: number | undefined;
        allowedCommands?: string[] | undefined;
        deniedCommands?: string[] | undefined;
        commandExecutionTimeout?: number | undefined;
        commandTimeoutAllowlist?: string[] | undefined;
        preventCompletionWithOpenTodos?: boolean | undefined;
        allowedMaxRequests?: number | null | undefined;
        allowedMaxCost?: number | null | undefined;
        autoCondenseContext?: boolean | undefined;
        autoCondenseContextPercent?: number | undefined;
        includeCurrentTime?: boolean | undefined;
        includeCurrentCost?: boolean | undefined;
        maxGitStatusFiles?: number | undefined;
        includeDiagnosticMessages?: boolean | undefined;
        maxDiagnosticMessages?: number | undefined;
        customStoragePath?: string | undefined;
        enableCheckpoints?: boolean | undefined;
        checkpointTimeout?: number | undefined;
        ttsEnabled?: boolean | undefined;
        ttsSpeed?: number | undefined;
        soundEnabled?: boolean | undefined;
        soundVolume?: number | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        enableSubfolderRules?: boolean | undefined;
        maxImageFileSize?: number | undefined;
        maxTotalImageSize?: number | undefined;
        terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalPowershellCounter?: boolean | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        terminalZshOhMy?: boolean | undefined;
        terminalZshP10k?: boolean | undefined;
        terminalZdotdir?: boolean | undefined;
        execaShellPath?: string | undefined;
        diagnosticsEnabled?: boolean | undefined;
        experiments?: {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        } | undefined;
        experimentSettings?: {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        } | undefined;
        codebaseIndexModels?: {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        } | undefined;
        codebaseIndexConfig?: {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        } | undefined;
        telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
        mcpEnabled?: boolean | undefined;
        prevMode?: string | undefined;
        modeApiConfigs?: Record<string, string> | undefined;
        customModePrompts?: Record<string, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        } | undefined> | undefined;
        customSupportPrompts?: Record<string, string | undefined> | undefined;
        enhancementApiConfigId?: string | undefined;
        includeTaskHistoryInEnhance?: boolean | undefined;
        historyPreviewCollapsed?: boolean | undefined;
        reasoningBlockCollapsed?: boolean | undefined;
        showSpeedInfo?: boolean | undefined;
        automaticallyFocus?: boolean | undefined;
        collapseMarkdownWithoutScroll?: boolean | undefined;
        enterBehavior?: "send" | "newline" | undefined;
        profileThresholds?: Record<string, number> | undefined;
        hasOpenedModeSelector?: boolean | undefined;
        hasClosedCodeReviewWelcomeTips?: boolean | undefined;
        lastModeExportPath?: string | undefined;
        lastModeImportPath?: string | undefined;
        lastSettingsExportPath?: string | undefined;
        lastTaskExportPath?: string | undefined;
        lastImageSavePath?: string | undefined;
        worktreeAutoOpenPath?: string | undefined;
        showWorktreesInHomeScreen?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    } | undefined;
}>;
type RooCliStartCommand = z.infer<typeof rooCliStartCommandSchema>;
declare const rooCliMessageCommandSchema: z.ZodObject<{
    requestId: z.ZodString;
} & {
    command: z.ZodLiteral<"message">;
    prompt: z.ZodString;
    images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
    command: "message";
    requestId: string;
    prompt: string;
    images?: string[] | undefined;
}, {
    command: "message";
    requestId: string;
    prompt: string;
    images?: string[] | undefined;
}>;
type RooCliMessageCommand = z.infer<typeof rooCliMessageCommandSchema>;
declare const rooCliCancelCommandSchema: z.ZodObject<{
    requestId: z.ZodString;
} & {
    command: z.ZodLiteral<"cancel">;
}, "strip", z.ZodTypeAny, {
    command: "cancel";
    requestId: string;
}, {
    command: "cancel";
    requestId: string;
}>;
type RooCliCancelCommand = z.infer<typeof rooCliCancelCommandSchema>;
declare const rooCliPingCommandSchema: z.ZodObject<{
    requestId: z.ZodString;
} & {
    command: z.ZodLiteral<"ping">;
}, "strip", z.ZodTypeAny, {
    command: "ping";
    requestId: string;
}, {
    command: "ping";
    requestId: string;
}>;
type RooCliPingCommand = z.infer<typeof rooCliPingCommandSchema>;
declare const rooCliShutdownCommandSchema: z.ZodObject<{
    requestId: z.ZodString;
} & {
    command: z.ZodLiteral<"shutdown">;
}, "strip", z.ZodTypeAny, {
    command: "shutdown";
    requestId: string;
}, {
    command: "shutdown";
    requestId: string;
}>;
type RooCliShutdownCommand = z.infer<typeof rooCliShutdownCommandSchema>;
declare const rooCliInputCommandSchema: z.ZodDiscriminatedUnion<"command", [z.ZodObject<{
    requestId: z.ZodString;
} & {
    command: z.ZodLiteral<"start">;
    prompt: z.ZodString;
    taskId: z.ZodOptional<z.ZodString>;
    images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    configuration: z.ZodOptional<z.ZodObject<{
        codeIndexOpenAiKey: z.ZodOptional<z.ZodString>;
        codeIndexQdrantApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
        codebaseIndexGeminiApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexMistralApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexVercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenRouterApiKey: z.ZodOptional<z.ZodString>;
        includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
        todoListEnabled: z.ZodOptional<z.ZodBoolean>;
        modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
        enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
        modelMaxTokens: z.ZodOptional<z.ZodNumber>;
        modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
        verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
        vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
        vercelAiGatewayModelId: z.ZodOptional<z.ZodString>;
        apiModelId: z.ZodOptional<z.ZodString>;
        rooApiKey: z.ZodOptional<z.ZodString>;
        qwenCodeOauthPath: z.ZodOptional<z.ZodString>;
        fireworksApiKey: z.ZodOptional<z.ZodString>;
        zaiApiKey: z.ZodOptional<z.ZodString>;
        zaiApiLine: z.ZodOptional<z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>>;
        sambaNovaApiKey: z.ZodOptional<z.ZodString>;
        litellmBaseUrl: z.ZodOptional<z.ZodString>;
        litellmApiKey: z.ZodOptional<z.ZodString>;
        litellmModelId: z.ZodOptional<z.ZodString>;
        litellmUsePromptCache: z.ZodOptional<z.ZodBoolean>;
        basetenApiKey: z.ZodOptional<z.ZodString>;
        xaiApiKey: z.ZodOptional<z.ZodString>;
        fakeAi: z.ZodOptional<z.ZodUnknown>;
        unboundApiKey: z.ZodOptional<z.ZodString>;
        unboundModelId: z.ZodOptional<z.ZodString>;
        requestyBaseUrl: z.ZodOptional<z.ZodString>;
        requestyApiKey: z.ZodOptional<z.ZodString>;
        requestyModelId: z.ZodOptional<z.ZodString>;
        mimoBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-cn.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-sgp.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-ams.xiaomimimo.com/v1">]>>;
        mimoApiKey: z.ZodOptional<z.ZodString>;
        minimaxBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.minimax.io/v1">, z.ZodLiteral<"https://api.minimaxi.com/v1">]>>;
        minimaxApiKey: z.ZodOptional<z.ZodString>;
        moonshotBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.moonshot.ai/v1">, z.ZodLiteral<"https://api.moonshot.cn/v1">]>>;
        moonshotApiKey: z.ZodOptional<z.ZodString>;
        poeApiKey: z.ZodOptional<z.ZodString>;
        poeBaseUrl: z.ZodOptional<z.ZodString>;
        deepSeekBaseUrl: z.ZodOptional<z.ZodString>;
        deepSeekApiKey: z.ZodOptional<z.ZodString>;
        mistralApiKey: z.ZodOptional<z.ZodString>;
        mistralCodestralUrl: z.ZodOptional<z.ZodString>;
        openAiNativeApiKey: z.ZodOptional<z.ZodString>;
        openAiNativeBaseUrl: z.ZodOptional<z.ZodString>;
        openAiNativeServiceTier: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
        geminiCliOAuthPath: z.ZodOptional<z.ZodString>;
        geminiCliProjectId: z.ZodOptional<z.ZodString>;
        geminiApiKey: z.ZodOptional<z.ZodString>;
        googleGeminiBaseUrl: z.ZodOptional<z.ZodString>;
        lmStudioModelId: z.ZodOptional<z.ZodString>;
        lmStudioBaseUrl: z.ZodOptional<z.ZodString>;
        lmStudioDraftModelId: z.ZodOptional<z.ZodString>;
        lmStudioSpeculativeDecodingEnabled: z.ZodOptional<z.ZodBoolean>;
        vsCodeLmModelSelector: z.ZodOptional<z.ZodObject<{
            vendor: z.ZodOptional<z.ZodString>;
            family: z.ZodOptional<z.ZodString>;
            version: z.ZodOptional<z.ZodString>;
            id: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        }, {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        }>>;
        ollamaModelId: z.ZodOptional<z.ZodString>;
        ollamaBaseUrl: z.ZodOptional<z.ZodString>;
        ollamaApiKey: z.ZodOptional<z.ZodString>;
        ollamaNumCtx: z.ZodOptional<z.ZodNumber>;
        openAiBaseUrl: z.ZodOptional<z.ZodString>;
        openAiApiKey: z.ZodOptional<z.ZodString>;
        openAiR1FormatEnabled: z.ZodOptional<z.ZodBoolean>;
        openAiModelId: z.ZodOptional<z.ZodString>;
        openAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
            maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            contextWindow: z.ZodNumber;
            supportsImages: z.ZodOptional<z.ZodBoolean>;
            id: z.ZodOptional<z.ZodString>;
            maxTokensKey: z.ZodOptional<z.ZodString>;
            creditConsumption: z.ZodOptional<z.ZodNumber>;
            creditDiscount: z.ZodOptional<z.ZodNumber>;
            supportsPromptCache: z.ZodBoolean;
            promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
            supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
            supportsTemperature: z.ZodOptional<z.ZodBoolean>;
            defaultTemperature: z.ZodOptional<z.ZodNumber>;
            requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
            requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
            preserveReasoning: z.ZodOptional<z.ZodBoolean>;
            supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            longContextPricing: z.ZodOptional<z.ZodObject<{
                thresholdTokens: z.ZodNumber;
                inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
            }, "strip", z.ZodTypeAny, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }>>;
            description: z.ZodOptional<z.ZodString>;
            reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
            minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
            maxCachePoints: z.ZodOptional<z.ZodNumber>;
            cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            deprecated: z.ZodOptional<z.ZodBoolean>;
            isStealthModel: z.ZodOptional<z.ZodBoolean>;
            isFree: z.ZodOptional<z.ZodBoolean>;
            excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                contextWindow: z.ZodNumber;
                inputPrice: z.ZodOptional<z.ZodNumber>;
                outputPrice: z.ZodOptional<z.ZodNumber>;
                cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            }, "strip", z.ZodTypeAny, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>>>;
        openAiUseAzure: z.ZodOptional<z.ZodBoolean>;
        azureApiVersion: z.ZodOptional<z.ZodString>;
        openAiStreamingEnabled: z.ZodOptional<z.ZodBoolean>;
        openAiHostHeader: z.ZodOptional<z.ZodString>;
        openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        vertexKeyFile: z.ZodOptional<z.ZodString>;
        vertexJsonCredentials: z.ZodOptional<z.ZodString>;
        vertexProjectId: z.ZodOptional<z.ZodString>;
        vertexRegion: z.ZodOptional<z.ZodString>;
        vertex1MContext: z.ZodOptional<z.ZodBoolean>;
        awsAccessKey: z.ZodOptional<z.ZodString>;
        awsSecretKey: z.ZodOptional<z.ZodString>;
        awsSessionToken: z.ZodOptional<z.ZodString>;
        awsRegion: z.ZodOptional<z.ZodString>;
        awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
        awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
        awsUsePromptCache: z.ZodOptional<z.ZodBoolean>;
        awsProfile: z.ZodOptional<z.ZodString>;
        awsUseProfile: z.ZodOptional<z.ZodBoolean>;
        awsApiKey: z.ZodOptional<z.ZodString>;
        awsUseApiKey: z.ZodOptional<z.ZodBoolean>;
        awsCustomArn: z.ZodOptional<z.ZodString>;
        awsModelContextWindow: z.ZodOptional<z.ZodNumber>;
        awsBedrockEndpointEnabled: z.ZodOptional<z.ZodBoolean>;
        awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
        awsBedrock1MContext: z.ZodOptional<z.ZodBoolean>;
        awsBedrockServiceTier: z.ZodOptional<z.ZodEnum<["STANDARD", "FLEX", "PRIORITY"]>>;
        openRouterApiKey: z.ZodOptional<z.ZodString>;
        openRouterModelId: z.ZodOptional<z.ZodString>;
        openRouterBaseUrl: z.ZodOptional<z.ZodString>;
        openRouterSpecificProvider: z.ZodOptional<z.ZodString>;
        apiKey: z.ZodOptional<z.ZodString>;
        anthropicBaseUrl: z.ZodOptional<z.ZodString>;
        anthropicUseAuthToken: z.ZodOptional<z.ZodBoolean>;
        anthropicBeta1MContext: z.ZodOptional<z.ZodBoolean>;
        costrictAccessToken: z.ZodOptional<z.ZodString>;
        costrictRefreshToken: z.ZodOptional<z.ZodString>;
        costrictState: z.ZodOptional<z.ZodString>;
        costrictBaseUrl: z.ZodOptional<z.ZodString>;
        costrictModelId: z.ZodOptional<z.ZodString>;
        costrictApiKeyUpdatedAt: z.ZodOptional<z.ZodString>;
        costrictApiKeyExpiredAt: z.ZodOptional<z.ZodString>;
        costrictAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
            maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            contextWindow: z.ZodNumber;
            supportsImages: z.ZodOptional<z.ZodBoolean>;
            id: z.ZodOptional<z.ZodString>;
            maxTokensKey: z.ZodOptional<z.ZodString>;
            creditConsumption: z.ZodOptional<z.ZodNumber>;
            creditDiscount: z.ZodOptional<z.ZodNumber>;
            supportsPromptCache: z.ZodBoolean;
            promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
            supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
            supportsTemperature: z.ZodOptional<z.ZodBoolean>;
            defaultTemperature: z.ZodOptional<z.ZodNumber>;
            requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
            requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
            preserveReasoning: z.ZodOptional<z.ZodBoolean>;
            supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            longContextPricing: z.ZodOptional<z.ZodObject<{
                thresholdTokens: z.ZodNumber;
                inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
            }, "strip", z.ZodTypeAny, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }>>;
            description: z.ZodOptional<z.ZodString>;
            reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
            minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
            maxCachePoints: z.ZodOptional<z.ZodNumber>;
            cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            deprecated: z.ZodOptional<z.ZodBoolean>;
            isStealthModel: z.ZodOptional<z.ZodBoolean>;
            isFree: z.ZodOptional<z.ZodBoolean>;
            excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                contextWindow: z.ZodNumber;
                inputPrice: z.ZodOptional<z.ZodNumber>;
                outputPrice: z.ZodOptional<z.ZodNumber>;
                cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            }, "strip", z.ZodTypeAny, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>>>;
        apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
    } & {
        currentApiConfigName: z.ZodOptional<z.ZodString>;
        listApiConfigMeta: z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            name: z.ZodString;
            apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
            modelId: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }, {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }>, "many">>;
        pinnedApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
        debug: z.ZodOptional<z.ZodBoolean>;
        autoCleanup: z.ZodOptional<z.ZodObject<{
            enabled: z.ZodOptional<z.ZodBoolean>;
            strategy: z.ZodOptional<z.ZodNativeEnum<typeof CleanupStrategy>>;
            retentionDays: z.ZodOptional<z.ZodNumber>;
            maxHistoryCount: z.ZodOptional<z.ZodNumber>;
            excludeActive: z.ZodOptional<z.ZodBoolean>;
            cleanupOnStartup: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        }, {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        }>>;
        lastShownAnnouncementId: z.ZodOptional<z.ZodString>;
        customInstructions: z.ZodOptional<z.ZodString>;
        taskHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            rootTaskId: z.ZodOptional<z.ZodString>;
            parentTaskId: z.ZodOptional<z.ZodString>;
            number: z.ZodNumber;
            ts: z.ZodNumber;
            task: z.ZodString;
            tokensIn: z.ZodNumber;
            tokensOut: z.ZodNumber;
            cacheWrites: z.ZodOptional<z.ZodNumber>;
            cacheReads: z.ZodOptional<z.ZodNumber>;
            totalCost: z.ZodNumber;
            size: z.ZodOptional<z.ZodNumber>;
            workspace: z.ZodOptional<z.ZodString>;
            mode: z.ZodOptional<z.ZodString>;
            apiConfigName: z.ZodOptional<z.ZodString>;
            status: z.ZodOptional<z.ZodEnum<["active", "completed", "delegated"]>>;
            delegatedToId: z.ZodOptional<z.ZodString>;
            childIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            awaitingChildId: z.ZodOptional<z.ZodString>;
            completedByChildId: z.ZodOptional<z.ZodString>;
            completionResultSummary: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }, {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }>, "many">>;
        dismissedUpsells: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        clickedOnceNotices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
        imageGenerationProvider: z.ZodOptional<z.ZodEnum<["openrouter", "roo"]>>;
        openRouterImageApiKey: z.ZodOptional<z.ZodString>;
        openRouterImageGenerationSelectedModel: z.ZodOptional<z.ZodString>;
        customCondensingPrompt: z.ZodOptional<z.ZodString>;
        useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
        costrictCodeMode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"vibe">, z.ZodLiteral<"strict">, z.ZodLiteral<"raw">, z.ZodLiteral<"plan">]>>;
        autoApprovalEnabled: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowReadOnly: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowReadOnlyOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowWrite: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowWriteOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowWriteProtected: z.ZodOptional<z.ZodBoolean>;
        writeDelayMs: z.ZodOptional<z.ZodNumber>;
        requestDelaySeconds: z.ZodOptional<z.ZodNumber>;
        alwaysAllowMcp: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowModeSwitch: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowSubtasks: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowExecute: z.ZodOptional<z.ZodBoolean>;
        alwaysAllowFollowupQuestions: z.ZodOptional<z.ZodBoolean>;
        followupAutoApproveTimeoutMs: z.ZodOptional<z.ZodNumber>;
        allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
        commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
        allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        allowedMaxCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
        autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
        includeCurrentTime: z.ZodOptional<z.ZodBoolean>;
        includeCurrentCost: z.ZodOptional<z.ZodBoolean>;
        maxGitStatusFiles: z.ZodOptional<z.ZodNumber>;
        includeDiagnosticMessages: z.ZodOptional<z.ZodBoolean>;
        maxDiagnosticMessages: z.ZodOptional<z.ZodNumber>;
        customStoragePath: z.ZodOptional<z.ZodString>;
        enableCheckpoints: z.ZodOptional<z.ZodBoolean>;
        checkpointTimeout: z.ZodOptional<z.ZodNumber>;
        ttsEnabled: z.ZodOptional<z.ZodBoolean>;
        ttsSpeed: z.ZodOptional<z.ZodNumber>;
        soundEnabled: z.ZodOptional<z.ZodBoolean>;
        soundVolume: z.ZodOptional<z.ZodNumber>;
        maxOpenTabsContext: z.ZodOptional<z.ZodNumber>;
        maxWorkspaceFiles: z.ZodOptional<z.ZodNumber>;
        showRooIgnoredFiles: z.ZodOptional<z.ZodBoolean>;
        enableSubfolderRules: z.ZodOptional<z.ZodBoolean>;
        maxImageFileSize: z.ZodOptional<z.ZodNumber>;
        maxTotalImageSize: z.ZodOptional<z.ZodNumber>;
        terminalOutputPreviewSize: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
        terminalShellIntegrationTimeout: z.ZodOptional<z.ZodNumber>;
        terminalShellIntegrationDisabled: z.ZodOptional<z.ZodBoolean>;
        terminalCommandDelay: z.ZodOptional<z.ZodNumber>;
        terminalPowershellCounter: z.ZodOptional<z.ZodBoolean>;
        terminalZshClearEolMark: z.ZodOptional<z.ZodBoolean>;
        terminalZshOhMy: z.ZodOptional<z.ZodBoolean>;
        terminalZshP10k: z.ZodOptional<z.ZodBoolean>;
        terminalZdotdir: z.ZodOptional<z.ZodBoolean>;
        execaShellPath: z.ZodOptional<z.ZodString>;
        diagnosticsEnabled: z.ZodOptional<z.ZodBoolean>;
        rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
        experiments: z.ZodOptional<z.ZodObject<{
            chatSearch: z.ZodOptional<z.ZodBoolean>;
            useKPTtree: z.ZodOptional<z.ZodBoolean>;
            commitReview: z.ZodOptional<z.ZodBoolean>;
            useLitePrompts: z.ZodOptional<z.ZodBoolean>;
            preventFocusDisruption: z.ZodOptional<z.ZodBoolean>;
            imageGeneration: z.ZodOptional<z.ZodBoolean>;
            runSlashCommand: z.ZodOptional<z.ZodBoolean>;
            customTools: z.ZodOptional<z.ZodBoolean>;
            smartMistakeDetection: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        }, {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        }>>;
        experimentSettings: z.ZodOptional<z.ZodObject<{
            smartMistakeDetectionConfig: z.ZodOptional<z.ZodObject<{
                autoSwitchModel: z.ZodOptional<z.ZodBoolean>;
            }, "strip", z.ZodTypeAny, {
                autoSwitchModel?: boolean | undefined;
            }, {
                autoSwitchModel?: boolean | undefined;
            }>>;
        }, "strip", z.ZodTypeAny, {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        }, {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        }>>;
        codebaseIndexModels: z.ZodOptional<z.ZodObject<{
            openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            ollama: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            "openai-compatible": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            gemini: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            mistral: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            "vercel-ai-gateway": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            openrouter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
            bedrock: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
                dimension: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                dimension: number;
            }, {
                dimension: number;
            }>>>;
        }, "strip", z.ZodTypeAny, {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        }, {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        }>>;
        codebaseIndexConfig: z.ZodOptional<z.ZodObject<{
            codebaseIndexEnabled: z.ZodOptional<z.ZodBoolean>;
            codebaseIndexQdrantUrl: z.ZodOptional<z.ZodString>;
            codebaseIndexEmbedderProvider: z.ZodOptional<z.ZodEnum<["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway", "bedrock", "openrouter"]>>;
            codebaseIndexEmbedderBaseUrl: z.ZodOptional<z.ZodString>;
            codebaseIndexEmbedderModelId: z.ZodOptional<z.ZodString>;
            codebaseIndexEmbedderModelDimension: z.ZodOptional<z.ZodNumber>;
            codebaseIndexSearchMinScore: z.ZodOptional<z.ZodNumber>;
            codebaseIndexSearchMaxResults: z.ZodOptional<z.ZodNumber>;
            codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
            codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
            codebaseIndexBedrockRegion: z.ZodOptional<z.ZodString>;
            codebaseIndexBedrockProfile: z.ZodOptional<z.ZodString>;
            codebaseIndexOpenRouterSpecificProvider: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        }, {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        }>>;
        language: z.ZodOptional<z.ZodEnum<["ca", "de", "en", "es", "fr", "hi", "id", "it", "ja", "ko", "nl", "pl", "pt-BR", "ru", "tr", "vi", "zh-CN", "zh-TW"]>>;
        telemetrySetting: z.ZodOptional<z.ZodEnum<["unset", "enabled", "disabled"]>>;
        mcpEnabled: z.ZodOptional<z.ZodBoolean>;
        mode: z.ZodOptional<z.ZodString>;
        prevMode: z.ZodOptional<z.ZodString>;
        modeApiConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        customModes: z.ZodOptional<z.ZodArray<z.ZodObject<{
            slug: z.ZodString;
            name: z.ZodString;
            roleDefinition: z.ZodString;
            whenToUse: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            customInstructions: z.ZodOptional<z.ZodString>;
            groups: z.ZodType<("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[], z.ZodTypeDef, ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[]>;
            overrideSystemPrompt: z.ZodOptional<z.ZodBoolean>;
            source: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
            costrictCodeModeGroup: z.ZodOptional<z.ZodDefault<z.ZodString>>;
            apiProvider: z.ZodOptional<z.ZodString>;
            subagents: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
            pure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
            disableSwitchMode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
            taskMode: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }, {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }>, "many">>;
        customModePrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
            roleDefinition: z.ZodOptional<z.ZodString>;
            whenToUse: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            customInstructions: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        }, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        }>>>>;
        customSupportPrompts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
        enhancementApiConfigId: z.ZodOptional<z.ZodString>;
        includeTaskHistoryInEnhance: z.ZodOptional<z.ZodBoolean>;
        historyPreviewCollapsed: z.ZodOptional<z.ZodBoolean>;
        reasoningBlockCollapsed: z.ZodOptional<z.ZodBoolean>;
        showSpeedInfo: z.ZodOptional<z.ZodBoolean>;
        automaticallyFocus: z.ZodOptional<z.ZodBoolean>;
        collapseMarkdownWithoutScroll: z.ZodOptional<z.ZodBoolean>;
        enterBehavior: z.ZodOptional<z.ZodEnum<["send", "newline"]>>;
        profileThresholds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
        hasOpenedModeSelector: z.ZodOptional<z.ZodBoolean>;
        hasClosedCodeReviewWelcomeTips: z.ZodOptional<z.ZodBoolean>;
        lastModeExportPath: z.ZodOptional<z.ZodString>;
        lastModeImportPath: z.ZodOptional<z.ZodString>;
        lastSettingsExportPath: z.ZodOptional<z.ZodString>;
        lastTaskExportPath: z.ZodOptional<z.ZodString>;
        lastImageSavePath: z.ZodOptional<z.ZodString>;
        errorCode: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
        worktreeAutoOpenPath: z.ZodOptional<z.ZodString>;
        showWorktreesInHomeScreen: z.ZodOptional<z.ZodBoolean>;
        disabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, "many">>;
    }, "strip", z.ZodTypeAny, {
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
        mode?: string | undefined;
        errorCode?: Record<string, Record<string, string>> | undefined;
        customInstructions?: string | undefined;
        customModes?: {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }[] | undefined;
        debug?: boolean | undefined;
        currentApiConfigName?: string | undefined;
        listApiConfigMeta?: {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }[] | undefined;
        pinnedApiConfigs?: Record<string, boolean> | undefined;
        autoCleanup?: {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        } | undefined;
        lastShownAnnouncementId?: string | undefined;
        taskHistory?: {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }[] | undefined;
        dismissedUpsells?: string[] | undefined;
        clickedOnceNotices?: number[] | undefined;
        imageGenerationProvider?: "openrouter" | "roo" | undefined;
        openRouterImageApiKey?: string | undefined;
        openRouterImageGenerationSelectedModel?: string | undefined;
        customCondensingPrompt?: string | undefined;
        costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
        autoApprovalEnabled?: boolean | undefined;
        alwaysAllowReadOnly?: boolean | undefined;
        alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
        alwaysAllowWrite?: boolean | undefined;
        alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
        alwaysAllowWriteProtected?: boolean | undefined;
        writeDelayMs?: number | undefined;
        requestDelaySeconds?: number | undefined;
        alwaysAllowMcp?: boolean | undefined;
        alwaysAllowModeSwitch?: boolean | undefined;
        alwaysAllowSubtasks?: boolean | undefined;
        alwaysAllowExecute?: boolean | undefined;
        alwaysAllowFollowupQuestions?: boolean | undefined;
        followupAutoApproveTimeoutMs?: number | undefined;
        allowedCommands?: string[] | undefined;
        deniedCommands?: string[] | undefined;
        commandExecutionTimeout?: number | undefined;
        commandTimeoutAllowlist?: string[] | undefined;
        preventCompletionWithOpenTodos?: boolean | undefined;
        allowedMaxRequests?: number | null | undefined;
        allowedMaxCost?: number | null | undefined;
        autoCondenseContext?: boolean | undefined;
        autoCondenseContextPercent?: number | undefined;
        includeCurrentTime?: boolean | undefined;
        includeCurrentCost?: boolean | undefined;
        maxGitStatusFiles?: number | undefined;
        includeDiagnosticMessages?: boolean | undefined;
        maxDiagnosticMessages?: number | undefined;
        customStoragePath?: string | undefined;
        enableCheckpoints?: boolean | undefined;
        checkpointTimeout?: number | undefined;
        ttsEnabled?: boolean | undefined;
        ttsSpeed?: number | undefined;
        soundEnabled?: boolean | undefined;
        soundVolume?: number | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        enableSubfolderRules?: boolean | undefined;
        maxImageFileSize?: number | undefined;
        maxTotalImageSize?: number | undefined;
        terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalPowershellCounter?: boolean | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        terminalZshOhMy?: boolean | undefined;
        terminalZshP10k?: boolean | undefined;
        terminalZdotdir?: boolean | undefined;
        execaShellPath?: string | undefined;
        diagnosticsEnabled?: boolean | undefined;
        experiments?: {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        } | undefined;
        experimentSettings?: {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        } | undefined;
        codebaseIndexModels?: {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        } | undefined;
        codebaseIndexConfig?: {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        } | undefined;
        telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
        mcpEnabled?: boolean | undefined;
        prevMode?: string | undefined;
        modeApiConfigs?: Record<string, string> | undefined;
        customModePrompts?: Record<string, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        } | undefined> | undefined;
        customSupportPrompts?: Record<string, string | undefined> | undefined;
        enhancementApiConfigId?: string | undefined;
        includeTaskHistoryInEnhance?: boolean | undefined;
        historyPreviewCollapsed?: boolean | undefined;
        reasoningBlockCollapsed?: boolean | undefined;
        showSpeedInfo?: boolean | undefined;
        automaticallyFocus?: boolean | undefined;
        collapseMarkdownWithoutScroll?: boolean | undefined;
        enterBehavior?: "send" | "newline" | undefined;
        profileThresholds?: Record<string, number> | undefined;
        hasOpenedModeSelector?: boolean | undefined;
        hasClosedCodeReviewWelcomeTips?: boolean | undefined;
        lastModeExportPath?: string | undefined;
        lastModeImportPath?: string | undefined;
        lastSettingsExportPath?: string | undefined;
        lastTaskExportPath?: string | undefined;
        lastImageSavePath?: string | undefined;
        worktreeAutoOpenPath?: string | undefined;
        showWorktreesInHomeScreen?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    }, {
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
        mode?: string | undefined;
        errorCode?: Record<string, Record<string, string>> | undefined;
        customInstructions?: string | undefined;
        customModes?: {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }[] | undefined;
        debug?: boolean | undefined;
        currentApiConfigName?: string | undefined;
        listApiConfigMeta?: {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }[] | undefined;
        pinnedApiConfigs?: Record<string, boolean> | undefined;
        autoCleanup?: {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        } | undefined;
        lastShownAnnouncementId?: string | undefined;
        taskHistory?: {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }[] | undefined;
        dismissedUpsells?: string[] | undefined;
        clickedOnceNotices?: number[] | undefined;
        imageGenerationProvider?: "openrouter" | "roo" | undefined;
        openRouterImageApiKey?: string | undefined;
        openRouterImageGenerationSelectedModel?: string | undefined;
        customCondensingPrompt?: string | undefined;
        costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
        autoApprovalEnabled?: boolean | undefined;
        alwaysAllowReadOnly?: boolean | undefined;
        alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
        alwaysAllowWrite?: boolean | undefined;
        alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
        alwaysAllowWriteProtected?: boolean | undefined;
        writeDelayMs?: number | undefined;
        requestDelaySeconds?: number | undefined;
        alwaysAllowMcp?: boolean | undefined;
        alwaysAllowModeSwitch?: boolean | undefined;
        alwaysAllowSubtasks?: boolean | undefined;
        alwaysAllowExecute?: boolean | undefined;
        alwaysAllowFollowupQuestions?: boolean | undefined;
        followupAutoApproveTimeoutMs?: number | undefined;
        allowedCommands?: string[] | undefined;
        deniedCommands?: string[] | undefined;
        commandExecutionTimeout?: number | undefined;
        commandTimeoutAllowlist?: string[] | undefined;
        preventCompletionWithOpenTodos?: boolean | undefined;
        allowedMaxRequests?: number | null | undefined;
        allowedMaxCost?: number | null | undefined;
        autoCondenseContext?: boolean | undefined;
        autoCondenseContextPercent?: number | undefined;
        includeCurrentTime?: boolean | undefined;
        includeCurrentCost?: boolean | undefined;
        maxGitStatusFiles?: number | undefined;
        includeDiagnosticMessages?: boolean | undefined;
        maxDiagnosticMessages?: number | undefined;
        customStoragePath?: string | undefined;
        enableCheckpoints?: boolean | undefined;
        checkpointTimeout?: number | undefined;
        ttsEnabled?: boolean | undefined;
        ttsSpeed?: number | undefined;
        soundEnabled?: boolean | undefined;
        soundVolume?: number | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        enableSubfolderRules?: boolean | undefined;
        maxImageFileSize?: number | undefined;
        maxTotalImageSize?: number | undefined;
        terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalPowershellCounter?: boolean | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        terminalZshOhMy?: boolean | undefined;
        terminalZshP10k?: boolean | undefined;
        terminalZdotdir?: boolean | undefined;
        execaShellPath?: string | undefined;
        diagnosticsEnabled?: boolean | undefined;
        experiments?: {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        } | undefined;
        experimentSettings?: {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        } | undefined;
        codebaseIndexModels?: {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        } | undefined;
        codebaseIndexConfig?: {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        } | undefined;
        telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
        mcpEnabled?: boolean | undefined;
        prevMode?: string | undefined;
        modeApiConfigs?: Record<string, string> | undefined;
        customModePrompts?: Record<string, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        } | undefined> | undefined;
        customSupportPrompts?: Record<string, string | undefined> | undefined;
        enhancementApiConfigId?: string | undefined;
        includeTaskHistoryInEnhance?: boolean | undefined;
        historyPreviewCollapsed?: boolean | undefined;
        reasoningBlockCollapsed?: boolean | undefined;
        showSpeedInfo?: boolean | undefined;
        automaticallyFocus?: boolean | undefined;
        collapseMarkdownWithoutScroll?: boolean | undefined;
        enterBehavior?: "send" | "newline" | undefined;
        profileThresholds?: Record<string, number> | undefined;
        hasOpenedModeSelector?: boolean | undefined;
        hasClosedCodeReviewWelcomeTips?: boolean | undefined;
        lastModeExportPath?: string | undefined;
        lastModeImportPath?: string | undefined;
        lastSettingsExportPath?: string | undefined;
        lastTaskExportPath?: string | undefined;
        lastImageSavePath?: string | undefined;
        worktreeAutoOpenPath?: string | undefined;
        showWorktreesInHomeScreen?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    }>>;
}, "strip", z.ZodTypeAny, {
    command: "start";
    requestId: string;
    prompt: string;
    images?: string[] | undefined;
    taskId?: string | undefined;
    configuration?: {
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
        mode?: string | undefined;
        errorCode?: Record<string, Record<string, string>> | undefined;
        customInstructions?: string | undefined;
        customModes?: {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }[] | undefined;
        debug?: boolean | undefined;
        currentApiConfigName?: string | undefined;
        listApiConfigMeta?: {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }[] | undefined;
        pinnedApiConfigs?: Record<string, boolean> | undefined;
        autoCleanup?: {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        } | undefined;
        lastShownAnnouncementId?: string | undefined;
        taskHistory?: {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }[] | undefined;
        dismissedUpsells?: string[] | undefined;
        clickedOnceNotices?: number[] | undefined;
        imageGenerationProvider?: "openrouter" | "roo" | undefined;
        openRouterImageApiKey?: string | undefined;
        openRouterImageGenerationSelectedModel?: string | undefined;
        customCondensingPrompt?: string | undefined;
        costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
        autoApprovalEnabled?: boolean | undefined;
        alwaysAllowReadOnly?: boolean | undefined;
        alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
        alwaysAllowWrite?: boolean | undefined;
        alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
        alwaysAllowWriteProtected?: boolean | undefined;
        writeDelayMs?: number | undefined;
        requestDelaySeconds?: number | undefined;
        alwaysAllowMcp?: boolean | undefined;
        alwaysAllowModeSwitch?: boolean | undefined;
        alwaysAllowSubtasks?: boolean | undefined;
        alwaysAllowExecute?: boolean | undefined;
        alwaysAllowFollowupQuestions?: boolean | undefined;
        followupAutoApproveTimeoutMs?: number | undefined;
        allowedCommands?: string[] | undefined;
        deniedCommands?: string[] | undefined;
        commandExecutionTimeout?: number | undefined;
        commandTimeoutAllowlist?: string[] | undefined;
        preventCompletionWithOpenTodos?: boolean | undefined;
        allowedMaxRequests?: number | null | undefined;
        allowedMaxCost?: number | null | undefined;
        autoCondenseContext?: boolean | undefined;
        autoCondenseContextPercent?: number | undefined;
        includeCurrentTime?: boolean | undefined;
        includeCurrentCost?: boolean | undefined;
        maxGitStatusFiles?: number | undefined;
        includeDiagnosticMessages?: boolean | undefined;
        maxDiagnosticMessages?: number | undefined;
        customStoragePath?: string | undefined;
        enableCheckpoints?: boolean | undefined;
        checkpointTimeout?: number | undefined;
        ttsEnabled?: boolean | undefined;
        ttsSpeed?: number | undefined;
        soundEnabled?: boolean | undefined;
        soundVolume?: number | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        enableSubfolderRules?: boolean | undefined;
        maxImageFileSize?: number | undefined;
        maxTotalImageSize?: number | undefined;
        terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalPowershellCounter?: boolean | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        terminalZshOhMy?: boolean | undefined;
        terminalZshP10k?: boolean | undefined;
        terminalZdotdir?: boolean | undefined;
        execaShellPath?: string | undefined;
        diagnosticsEnabled?: boolean | undefined;
        experiments?: {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        } | undefined;
        experimentSettings?: {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        } | undefined;
        codebaseIndexModels?: {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        } | undefined;
        codebaseIndexConfig?: {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        } | undefined;
        telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
        mcpEnabled?: boolean | undefined;
        prevMode?: string | undefined;
        modeApiConfigs?: Record<string, string> | undefined;
        customModePrompts?: Record<string, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        } | undefined> | undefined;
        customSupportPrompts?: Record<string, string | undefined> | undefined;
        enhancementApiConfigId?: string | undefined;
        includeTaskHistoryInEnhance?: boolean | undefined;
        historyPreviewCollapsed?: boolean | undefined;
        reasoningBlockCollapsed?: boolean | undefined;
        showSpeedInfo?: boolean | undefined;
        automaticallyFocus?: boolean | undefined;
        collapseMarkdownWithoutScroll?: boolean | undefined;
        enterBehavior?: "send" | "newline" | undefined;
        profileThresholds?: Record<string, number> | undefined;
        hasOpenedModeSelector?: boolean | undefined;
        hasClosedCodeReviewWelcomeTips?: boolean | undefined;
        lastModeExportPath?: string | undefined;
        lastModeImportPath?: string | undefined;
        lastSettingsExportPath?: string | undefined;
        lastTaskExportPath?: string | undefined;
        lastImageSavePath?: string | undefined;
        worktreeAutoOpenPath?: string | undefined;
        showWorktreesInHomeScreen?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    } | undefined;
}, {
    command: "start";
    requestId: string;
    prompt: string;
    images?: string[] | undefined;
    taskId?: string | undefined;
    configuration?: {
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        language?: "id" | "ca" | "de" | "en" | "es" | "fr" | "hi" | "it" | "ja" | "ko" | "nl" | "pl" | "pt-BR" | "ru" | "tr" | "vi" | "zh-CN" | "zh-TW" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
        mode?: string | undefined;
        errorCode?: Record<string, Record<string, string>> | undefined;
        customInstructions?: string | undefined;
        customModes?: {
            name: string;
            slug: string;
            roleDefinition: string;
            groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
                description?: string | undefined;
                fileRegex?: string | undefined;
            }])[];
            description?: string | undefined;
            apiProvider?: string | undefined;
            source?: "global" | "project" | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
            overrideSystemPrompt?: boolean | undefined;
            costrictCodeModeGroup?: string | undefined;
            subagents?: string[] | undefined;
            pure?: boolean | undefined;
            disableSwitchMode?: boolean | undefined;
            taskMode?: string | undefined;
        }[] | undefined;
        debug?: boolean | undefined;
        currentApiConfigName?: string | undefined;
        listApiConfigMeta?: {
            id: string;
            name: string;
            apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
            modelId?: string | undefined;
        }[] | undefined;
        pinnedApiConfigs?: Record<string, boolean> | undefined;
        autoCleanup?: {
            enabled?: boolean | undefined;
            strategy?: CleanupStrategy | undefined;
            retentionDays?: number | undefined;
            maxHistoryCount?: number | undefined;
            excludeActive?: boolean | undefined;
            cleanupOnStartup?: boolean | undefined;
        } | undefined;
        lastShownAnnouncementId?: string | undefined;
        taskHistory?: {
            number: number;
            ts: number;
            totalCost: number;
            id: string;
            task: string;
            tokensIn: number;
            tokensOut: number;
            status?: "active" | "completed" | "delegated" | undefined;
            rootTaskId?: string | undefined;
            parentTaskId?: string | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            size?: number | undefined;
            workspace?: string | undefined;
            mode?: string | undefined;
            apiConfigName?: string | undefined;
            delegatedToId?: string | undefined;
            childIds?: string[] | undefined;
            awaitingChildId?: string | undefined;
            completedByChildId?: string | undefined;
            completionResultSummary?: string | undefined;
        }[] | undefined;
        dismissedUpsells?: string[] | undefined;
        clickedOnceNotices?: number[] | undefined;
        imageGenerationProvider?: "openrouter" | "roo" | undefined;
        openRouterImageApiKey?: string | undefined;
        openRouterImageGenerationSelectedModel?: string | undefined;
        customCondensingPrompt?: string | undefined;
        costrictCodeMode?: "strict" | "vibe" | "plan" | "raw" | undefined;
        autoApprovalEnabled?: boolean | undefined;
        alwaysAllowReadOnly?: boolean | undefined;
        alwaysAllowReadOnlyOutsideWorkspace?: boolean | undefined;
        alwaysAllowWrite?: boolean | undefined;
        alwaysAllowWriteOutsideWorkspace?: boolean | undefined;
        alwaysAllowWriteProtected?: boolean | undefined;
        writeDelayMs?: number | undefined;
        requestDelaySeconds?: number | undefined;
        alwaysAllowMcp?: boolean | undefined;
        alwaysAllowModeSwitch?: boolean | undefined;
        alwaysAllowSubtasks?: boolean | undefined;
        alwaysAllowExecute?: boolean | undefined;
        alwaysAllowFollowupQuestions?: boolean | undefined;
        followupAutoApproveTimeoutMs?: number | undefined;
        allowedCommands?: string[] | undefined;
        deniedCommands?: string[] | undefined;
        commandExecutionTimeout?: number | undefined;
        commandTimeoutAllowlist?: string[] | undefined;
        preventCompletionWithOpenTodos?: boolean | undefined;
        allowedMaxRequests?: number | null | undefined;
        allowedMaxCost?: number | null | undefined;
        autoCondenseContext?: boolean | undefined;
        autoCondenseContextPercent?: number | undefined;
        includeCurrentTime?: boolean | undefined;
        includeCurrentCost?: boolean | undefined;
        maxGitStatusFiles?: number | undefined;
        includeDiagnosticMessages?: boolean | undefined;
        maxDiagnosticMessages?: number | undefined;
        customStoragePath?: string | undefined;
        enableCheckpoints?: boolean | undefined;
        checkpointTimeout?: number | undefined;
        ttsEnabled?: boolean | undefined;
        ttsSpeed?: number | undefined;
        soundEnabled?: boolean | undefined;
        soundVolume?: number | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        enableSubfolderRules?: boolean | undefined;
        maxImageFileSize?: number | undefined;
        maxTotalImageSize?: number | undefined;
        terminalOutputPreviewSize?: "medium" | "small" | "large" | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalPowershellCounter?: boolean | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        terminalZshOhMy?: boolean | undefined;
        terminalZshP10k?: boolean | undefined;
        terminalZdotdir?: boolean | undefined;
        execaShellPath?: string | undefined;
        diagnosticsEnabled?: boolean | undefined;
        experiments?: {
            preventFocusDisruption?: boolean | undefined;
            imageGeneration?: boolean | undefined;
            runSlashCommand?: boolean | undefined;
            customTools?: boolean | undefined;
            chatSearch?: boolean | undefined;
            commitReview?: boolean | undefined;
            useKPTtree?: boolean | undefined;
            useLitePrompts?: boolean | undefined;
            smartMistakeDetection?: boolean | undefined;
        } | undefined;
        experimentSettings?: {
            smartMistakeDetectionConfig?: {
                autoSwitchModel?: boolean | undefined;
            } | undefined;
        } | undefined;
        codebaseIndexModels?: {
            openai?: Record<string, {
                dimension: number;
            }> | undefined;
            ollama?: Record<string, {
                dimension: number;
            }> | undefined;
            "openai-compatible"?: Record<string, {
                dimension: number;
            }> | undefined;
            gemini?: Record<string, {
                dimension: number;
            }> | undefined;
            mistral?: Record<string, {
                dimension: number;
            }> | undefined;
            "vercel-ai-gateway"?: Record<string, {
                dimension: number;
            }> | undefined;
            bedrock?: Record<string, {
                dimension: number;
            }> | undefined;
            openrouter?: Record<string, {
                dimension: number;
            }> | undefined;
        } | undefined;
        codebaseIndexConfig?: {
            codebaseIndexEnabled?: boolean | undefined;
            codebaseIndexQdrantUrl?: string | undefined;
            codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
            codebaseIndexEmbedderBaseUrl?: string | undefined;
            codebaseIndexEmbedderModelId?: string | undefined;
            codebaseIndexEmbedderModelDimension?: number | undefined;
            codebaseIndexSearchMinScore?: number | undefined;
            codebaseIndexSearchMaxResults?: number | undefined;
            codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
            codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
            codebaseIndexBedrockRegion?: string | undefined;
            codebaseIndexBedrockProfile?: string | undefined;
            codebaseIndexOpenRouterSpecificProvider?: string | undefined;
        } | undefined;
        telemetrySetting?: "enabled" | "unset" | "disabled" | undefined;
        mcpEnabled?: boolean | undefined;
        prevMode?: string | undefined;
        modeApiConfigs?: Record<string, string> | undefined;
        customModePrompts?: Record<string, {
            description?: string | undefined;
            roleDefinition?: string | undefined;
            whenToUse?: string | undefined;
            customInstructions?: string | undefined;
        } | undefined> | undefined;
        customSupportPrompts?: Record<string, string | undefined> | undefined;
        enhancementApiConfigId?: string | undefined;
        includeTaskHistoryInEnhance?: boolean | undefined;
        historyPreviewCollapsed?: boolean | undefined;
        reasoningBlockCollapsed?: boolean | undefined;
        showSpeedInfo?: boolean | undefined;
        automaticallyFocus?: boolean | undefined;
        collapseMarkdownWithoutScroll?: boolean | undefined;
        enterBehavior?: "send" | "newline" | undefined;
        profileThresholds?: Record<string, number> | undefined;
        hasOpenedModeSelector?: boolean | undefined;
        hasClosedCodeReviewWelcomeTips?: boolean | undefined;
        lastModeExportPath?: string | undefined;
        lastModeImportPath?: string | undefined;
        lastSettingsExportPath?: string | undefined;
        lastTaskExportPath?: string | undefined;
        lastImageSavePath?: string | undefined;
        worktreeAutoOpenPath?: string | undefined;
        showWorktreesInHomeScreen?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    } | undefined;
}>, z.ZodObject<{
    requestId: z.ZodString;
} & {
    command: z.ZodLiteral<"message">;
    prompt: z.ZodString;
    images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
    command: "message";
    requestId: string;
    prompt: string;
    images?: string[] | undefined;
}, {
    command: "message";
    requestId: string;
    prompt: string;
    images?: string[] | undefined;
}>, z.ZodObject<{
    requestId: z.ZodString;
} & {
    command: z.ZodLiteral<"cancel">;
}, "strip", z.ZodTypeAny, {
    command: "cancel";
    requestId: string;
}, {
    command: "cancel";
    requestId: string;
}>, z.ZodObject<{
    requestId: z.ZodString;
} & {
    command: z.ZodLiteral<"ping">;
}, "strip", z.ZodTypeAny, {
    command: "ping";
    requestId: string;
}, {
    command: "ping";
    requestId: string;
}>, z.ZodObject<{
    requestId: z.ZodString;
} & {
    command: z.ZodLiteral<"shutdown">;
}, "strip", z.ZodTypeAny, {
    command: "shutdown";
    requestId: string;
}, {
    command: "shutdown";
    requestId: string;
}>]>;
type RooCliInputCommand = z.infer<typeof rooCliInputCommandSchema>;
/**
 * Roo CLI stream-json output
 */
declare const rooCliOutputFormats: readonly ["text", "json", "stream-json"];
declare const rooCliOutputFormatSchema: z.ZodEnum<["text", "json", "stream-json"]>;
type RooCliOutputFormat = z.infer<typeof rooCliOutputFormatSchema>;
declare const rooCliEventTypes: readonly ["system", "control", "queue", "assistant", "user", "tool_use", "tool_result", "thinking", "error", "result"];
declare const rooCliEventTypeSchema: z.ZodEnum<["system", "control", "queue", "assistant", "user", "tool_use", "tool_result", "thinking", "error", "result"]>;
type RooCliEventType = z.infer<typeof rooCliEventTypeSchema>;
declare const rooCliControlSubtypes: readonly ["ack", "done", "error"];
declare const rooCliControlSubtypeSchema: z.ZodEnum<["ack", "done", "error"]>;
type RooCliControlSubtype = z.infer<typeof rooCliControlSubtypeSchema>;
declare const rooCliQueueItemSchema: z.ZodObject<{
    id: z.ZodString;
    text: z.ZodOptional<z.ZodString>;
    imageCount: z.ZodOptional<z.ZodNumber>;
    timestamp: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    id: string;
    text?: string | undefined;
    timestamp?: number | undefined;
    imageCount?: number | undefined;
}, {
    id: string;
    text?: string | undefined;
    timestamp?: number | undefined;
    imageCount?: number | undefined;
}>;
type RooCliQueueItem = z.infer<typeof rooCliQueueItemSchema>;
declare const rooCliToolUseSchema: z.ZodObject<{
    name: z.ZodString;
    input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, "strip", z.ZodTypeAny, {
    name: string;
    input?: Record<string, unknown> | undefined;
}, {
    name: string;
    input?: Record<string, unknown> | undefined;
}>;
type RooCliToolUse = z.infer<typeof rooCliToolUseSchema>;
declare const rooCliToolResultSchema: z.ZodObject<{
    name: z.ZodString;
    output: z.ZodOptional<z.ZodString>;
    error: z.ZodOptional<z.ZodString>;
    exitCode: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    name: string;
    error?: string | undefined;
    output?: string | undefined;
    exitCode?: number | undefined;
}, {
    name: string;
    error?: string | undefined;
    output?: string | undefined;
    exitCode?: number | undefined;
}>;
type RooCliToolResult = z.infer<typeof rooCliToolResultSchema>;
declare const rooCliCostSchema: z.ZodObject<{
    totalCost: z.ZodOptional<z.ZodNumber>;
    inputTokens: z.ZodOptional<z.ZodNumber>;
    outputTokens: z.ZodOptional<z.ZodNumber>;
    cacheWrites: z.ZodOptional<z.ZodNumber>;
    cacheReads: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    totalCost?: number | undefined;
    cacheWrites?: number | undefined;
    cacheReads?: number | undefined;
    inputTokens?: number | undefined;
    outputTokens?: number | undefined;
}, {
    totalCost?: number | undefined;
    cacheWrites?: number | undefined;
    cacheReads?: number | undefined;
    inputTokens?: number | undefined;
    outputTokens?: number | undefined;
}>;
type RooCliCost = z.infer<typeof rooCliCostSchema>;
declare const rooCliStreamEventSchema: z.ZodObject<{
    type: z.ZodOptional<z.ZodEnum<["system", "control", "queue", "assistant", "user", "tool_use", "tool_result", "thinking", "error", "result"]>>;
    subtype: z.ZodOptional<z.ZodString>;
    requestId: z.ZodOptional<z.ZodString>;
    command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
    taskId: z.ZodOptional<z.ZodString>;
    code: z.ZodOptional<z.ZodString>;
    content: z.ZodOptional<z.ZodString>;
    success: z.ZodOptional<z.ZodBoolean>;
    id: z.ZodOptional<z.ZodNumber>;
    done: z.ZodOptional<z.ZodBoolean>;
    queueDepth: z.ZodOptional<z.ZodNumber>;
    queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        text: z.ZodOptional<z.ZodString>;
        imageCount: z.ZodOptional<z.ZodNumber>;
        timestamp: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }>, "many">>;
    schemaVersion: z.ZodOptional<z.ZodNumber>;
    protocol: z.ZodOptional<z.ZodString>;
    capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    tool_use: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }>>;
    tool_result: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        output: z.ZodOptional<z.ZodString>;
        error: z.ZodOptional<z.ZodString>;
        exitCode: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }>>;
    cost: z.ZodOptional<z.ZodObject<{
        totalCost: z.ZodOptional<z.ZodNumber>;
        inputTokens: z.ZodOptional<z.ZodNumber>;
        outputTokens: z.ZodOptional<z.ZodNumber>;
        cacheWrites: z.ZodOptional<z.ZodNumber>;
        cacheReads: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }>>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
    type: z.ZodOptional<z.ZodEnum<["system", "control", "queue", "assistant", "user", "tool_use", "tool_result", "thinking", "error", "result"]>>;
    subtype: z.ZodOptional<z.ZodString>;
    requestId: z.ZodOptional<z.ZodString>;
    command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
    taskId: z.ZodOptional<z.ZodString>;
    code: z.ZodOptional<z.ZodString>;
    content: z.ZodOptional<z.ZodString>;
    success: z.ZodOptional<z.ZodBoolean>;
    id: z.ZodOptional<z.ZodNumber>;
    done: z.ZodOptional<z.ZodBoolean>;
    queueDepth: z.ZodOptional<z.ZodNumber>;
    queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        text: z.ZodOptional<z.ZodString>;
        imageCount: z.ZodOptional<z.ZodNumber>;
        timestamp: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }>, "many">>;
    schemaVersion: z.ZodOptional<z.ZodNumber>;
    protocol: z.ZodOptional<z.ZodString>;
    capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    tool_use: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }>>;
    tool_result: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        output: z.ZodOptional<z.ZodString>;
        error: z.ZodOptional<z.ZodString>;
        exitCode: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }>>;
    cost: z.ZodOptional<z.ZodObject<{
        totalCost: z.ZodOptional<z.ZodNumber>;
        inputTokens: z.ZodOptional<z.ZodNumber>;
        outputTokens: z.ZodOptional<z.ZodNumber>;
        cacheWrites: z.ZodOptional<z.ZodNumber>;
        cacheReads: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }>>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
    type: z.ZodOptional<z.ZodEnum<["system", "control", "queue", "assistant", "user", "tool_use", "tool_result", "thinking", "error", "result"]>>;
    subtype: z.ZodOptional<z.ZodString>;
    requestId: z.ZodOptional<z.ZodString>;
    command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
    taskId: z.ZodOptional<z.ZodString>;
    code: z.ZodOptional<z.ZodString>;
    content: z.ZodOptional<z.ZodString>;
    success: z.ZodOptional<z.ZodBoolean>;
    id: z.ZodOptional<z.ZodNumber>;
    done: z.ZodOptional<z.ZodBoolean>;
    queueDepth: z.ZodOptional<z.ZodNumber>;
    queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        text: z.ZodOptional<z.ZodString>;
        imageCount: z.ZodOptional<z.ZodNumber>;
        timestamp: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }>, "many">>;
    schemaVersion: z.ZodOptional<z.ZodNumber>;
    protocol: z.ZodOptional<z.ZodString>;
    capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    tool_use: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }>>;
    tool_result: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        output: z.ZodOptional<z.ZodString>;
        error: z.ZodOptional<z.ZodString>;
        exitCode: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }>>;
    cost: z.ZodOptional<z.ZodObject<{
        totalCost: z.ZodOptional<z.ZodNumber>;
        inputTokens: z.ZodOptional<z.ZodNumber>;
        outputTokens: z.ZodOptional<z.ZodNumber>;
        cacheWrites: z.ZodOptional<z.ZodNumber>;
        cacheReads: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }>>;
}, z.ZodTypeAny, "passthrough">>;
type RooCliStreamEvent = z.infer<typeof rooCliStreamEventSchema>;
declare const rooCliControlEventSchema: z.ZodObject<{
    command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
    taskId: z.ZodOptional<z.ZodString>;
    code: z.ZodOptional<z.ZodString>;
    content: z.ZodOptional<z.ZodString>;
    success: z.ZodOptional<z.ZodBoolean>;
    id: z.ZodOptional<z.ZodNumber>;
    done: z.ZodOptional<z.ZodBoolean>;
    queueDepth: z.ZodOptional<z.ZodNumber>;
    queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        text: z.ZodOptional<z.ZodString>;
        imageCount: z.ZodOptional<z.ZodNumber>;
        timestamp: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }>, "many">>;
    schemaVersion: z.ZodOptional<z.ZodNumber>;
    protocol: z.ZodOptional<z.ZodString>;
    capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    tool_use: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }>>;
    tool_result: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        output: z.ZodOptional<z.ZodString>;
        error: z.ZodOptional<z.ZodString>;
        exitCode: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }>>;
    cost: z.ZodOptional<z.ZodObject<{
        totalCost: z.ZodOptional<z.ZodNumber>;
        inputTokens: z.ZodOptional<z.ZodNumber>;
        outputTokens: z.ZodOptional<z.ZodNumber>;
        cacheWrites: z.ZodOptional<z.ZodNumber>;
        cacheReads: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }>>;
} & {
    type: z.ZodLiteral<"control">;
    subtype: z.ZodEnum<["ack", "done", "error"]>;
    requestId: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
    command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
    taskId: z.ZodOptional<z.ZodString>;
    code: z.ZodOptional<z.ZodString>;
    content: z.ZodOptional<z.ZodString>;
    success: z.ZodOptional<z.ZodBoolean>;
    id: z.ZodOptional<z.ZodNumber>;
    done: z.ZodOptional<z.ZodBoolean>;
    queueDepth: z.ZodOptional<z.ZodNumber>;
    queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        text: z.ZodOptional<z.ZodString>;
        imageCount: z.ZodOptional<z.ZodNumber>;
        timestamp: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }>, "many">>;
    schemaVersion: z.ZodOptional<z.ZodNumber>;
    protocol: z.ZodOptional<z.ZodString>;
    capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    tool_use: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }>>;
    tool_result: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        output: z.ZodOptional<z.ZodString>;
        error: z.ZodOptional<z.ZodString>;
        exitCode: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }>>;
    cost: z.ZodOptional<z.ZodObject<{
        totalCost: z.ZodOptional<z.ZodNumber>;
        inputTokens: z.ZodOptional<z.ZodNumber>;
        outputTokens: z.ZodOptional<z.ZodNumber>;
        cacheWrites: z.ZodOptional<z.ZodNumber>;
        cacheReads: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }>>;
} & {
    type: z.ZodLiteral<"control">;
    subtype: z.ZodEnum<["ack", "done", "error"]>;
    requestId: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
    command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
    taskId: z.ZodOptional<z.ZodString>;
    code: z.ZodOptional<z.ZodString>;
    content: z.ZodOptional<z.ZodString>;
    success: z.ZodOptional<z.ZodBoolean>;
    id: z.ZodOptional<z.ZodNumber>;
    done: z.ZodOptional<z.ZodBoolean>;
    queueDepth: z.ZodOptional<z.ZodNumber>;
    queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        text: z.ZodOptional<z.ZodString>;
        imageCount: z.ZodOptional<z.ZodNumber>;
        timestamp: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }, {
        id: string;
        text?: string | undefined;
        timestamp?: number | undefined;
        imageCount?: number | undefined;
    }>, "many">>;
    schemaVersion: z.ZodOptional<z.ZodNumber>;
    protocol: z.ZodOptional<z.ZodString>;
    capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    tool_use: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }, {
        name: string;
        input?: Record<string, unknown> | undefined;
    }>>;
    tool_result: z.ZodOptional<z.ZodObject<{
        name: z.ZodString;
        output: z.ZodOptional<z.ZodString>;
        error: z.ZodOptional<z.ZodString>;
        exitCode: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }, {
        name: string;
        error?: string | undefined;
        output?: string | undefined;
        exitCode?: number | undefined;
    }>>;
    cost: z.ZodOptional<z.ZodObject<{
        totalCost: z.ZodOptional<z.ZodNumber>;
        inputTokens: z.ZodOptional<z.ZodNumber>;
        outputTokens: z.ZodOptional<z.ZodNumber>;
        cacheWrites: z.ZodOptional<z.ZodNumber>;
        cacheReads: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }>>;
} & {
    type: z.ZodLiteral<"control">;
    subtype: z.ZodEnum<["ack", "done", "error"]>;
    requestId: z.ZodString;
}, z.ZodTypeAny, "passthrough">>;
type RooCliControlEvent = z.infer<typeof rooCliControlEventSchema>;
declare const rooCliFinalOutputSchema: z.ZodObject<{
    type: z.ZodLiteral<"result">;
    success: z.ZodBoolean;
    content: z.ZodOptional<z.ZodString>;
    cost: z.ZodOptional<z.ZodObject<{
        totalCost: z.ZodOptional<z.ZodNumber>;
        inputTokens: z.ZodOptional<z.ZodNumber>;
        outputTokens: z.ZodOptional<z.ZodNumber>;
        cacheWrites: z.ZodOptional<z.ZodNumber>;
        cacheReads: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }, {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    }>>;
    events: z.ZodArray<z.ZodObject<{
        type: z.ZodOptional<z.ZodEnum<["system", "control", "queue", "assistant", "user", "tool_use", "tool_result", "thinking", "error", "result"]>>;
        subtype: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
        taskId: z.ZodOptional<z.ZodString>;
        code: z.ZodOptional<z.ZodString>;
        content: z.ZodOptional<z.ZodString>;
        success: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodNumber>;
        done: z.ZodOptional<z.ZodBoolean>;
        queueDepth: z.ZodOptional<z.ZodNumber>;
        queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            text: z.ZodOptional<z.ZodString>;
            imageCount: z.ZodOptional<z.ZodNumber>;
            timestamp: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            id: string;
            text?: string | undefined;
            timestamp?: number | undefined;
            imageCount?: number | undefined;
        }, {
            id: string;
            text?: string | undefined;
            timestamp?: number | undefined;
            imageCount?: number | undefined;
        }>, "many">>;
        schemaVersion: z.ZodOptional<z.ZodNumber>;
        protocol: z.ZodOptional<z.ZodString>;
        capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tool_use: z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            input?: Record<string, unknown> | undefined;
        }, {
            name: string;
            input?: Record<string, unknown> | undefined;
        }>>;
        tool_result: z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            output: z.ZodOptional<z.ZodString>;
            error: z.ZodOptional<z.ZodString>;
            exitCode: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            error?: string | undefined;
            output?: string | undefined;
            exitCode?: number | undefined;
        }, {
            name: string;
            error?: string | undefined;
            output?: string | undefined;
            exitCode?: number | undefined;
        }>>;
        cost: z.ZodOptional<z.ZodObject<{
            totalCost: z.ZodOptional<z.ZodNumber>;
            inputTokens: z.ZodOptional<z.ZodNumber>;
            outputTokens: z.ZodOptional<z.ZodNumber>;
            cacheWrites: z.ZodOptional<z.ZodNumber>;
            cacheReads: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            totalCost?: number | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            inputTokens?: number | undefined;
            outputTokens?: number | undefined;
        }, {
            totalCost?: number | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            inputTokens?: number | undefined;
            outputTokens?: number | undefined;
        }>>;
    }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
        type: z.ZodOptional<z.ZodEnum<["system", "control", "queue", "assistant", "user", "tool_use", "tool_result", "thinking", "error", "result"]>>;
        subtype: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
        taskId: z.ZodOptional<z.ZodString>;
        code: z.ZodOptional<z.ZodString>;
        content: z.ZodOptional<z.ZodString>;
        success: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodNumber>;
        done: z.ZodOptional<z.ZodBoolean>;
        queueDepth: z.ZodOptional<z.ZodNumber>;
        queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            text: z.ZodOptional<z.ZodString>;
            imageCount: z.ZodOptional<z.ZodNumber>;
            timestamp: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            id: string;
            text?: string | undefined;
            timestamp?: number | undefined;
            imageCount?: number | undefined;
        }, {
            id: string;
            text?: string | undefined;
            timestamp?: number | undefined;
            imageCount?: number | undefined;
        }>, "many">>;
        schemaVersion: z.ZodOptional<z.ZodNumber>;
        protocol: z.ZodOptional<z.ZodString>;
        capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tool_use: z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            input?: Record<string, unknown> | undefined;
        }, {
            name: string;
            input?: Record<string, unknown> | undefined;
        }>>;
        tool_result: z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            output: z.ZodOptional<z.ZodString>;
            error: z.ZodOptional<z.ZodString>;
            exitCode: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            error?: string | undefined;
            output?: string | undefined;
            exitCode?: number | undefined;
        }, {
            name: string;
            error?: string | undefined;
            output?: string | undefined;
            exitCode?: number | undefined;
        }>>;
        cost: z.ZodOptional<z.ZodObject<{
            totalCost: z.ZodOptional<z.ZodNumber>;
            inputTokens: z.ZodOptional<z.ZodNumber>;
            outputTokens: z.ZodOptional<z.ZodNumber>;
            cacheWrites: z.ZodOptional<z.ZodNumber>;
            cacheReads: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            totalCost?: number | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            inputTokens?: number | undefined;
            outputTokens?: number | undefined;
        }, {
            totalCost?: number | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            inputTokens?: number | undefined;
            outputTokens?: number | undefined;
        }>>;
    }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
        type: z.ZodOptional<z.ZodEnum<["system", "control", "queue", "assistant", "user", "tool_use", "tool_result", "thinking", "error", "result"]>>;
        subtype: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
        taskId: z.ZodOptional<z.ZodString>;
        code: z.ZodOptional<z.ZodString>;
        content: z.ZodOptional<z.ZodString>;
        success: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodNumber>;
        done: z.ZodOptional<z.ZodBoolean>;
        queueDepth: z.ZodOptional<z.ZodNumber>;
        queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            text: z.ZodOptional<z.ZodString>;
            imageCount: z.ZodOptional<z.ZodNumber>;
            timestamp: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            id: string;
            text?: string | undefined;
            timestamp?: number | undefined;
            imageCount?: number | undefined;
        }, {
            id: string;
            text?: string | undefined;
            timestamp?: number | undefined;
            imageCount?: number | undefined;
        }>, "many">>;
        schemaVersion: z.ZodOptional<z.ZodNumber>;
        protocol: z.ZodOptional<z.ZodString>;
        capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tool_use: z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            input?: Record<string, unknown> | undefined;
        }, {
            name: string;
            input?: Record<string, unknown> | undefined;
        }>>;
        tool_result: z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            output: z.ZodOptional<z.ZodString>;
            error: z.ZodOptional<z.ZodString>;
            exitCode: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            error?: string | undefined;
            output?: string | undefined;
            exitCode?: number | undefined;
        }, {
            name: string;
            error?: string | undefined;
            output?: string | undefined;
            exitCode?: number | undefined;
        }>>;
        cost: z.ZodOptional<z.ZodObject<{
            totalCost: z.ZodOptional<z.ZodNumber>;
            inputTokens: z.ZodOptional<z.ZodNumber>;
            outputTokens: z.ZodOptional<z.ZodNumber>;
            cacheWrites: z.ZodOptional<z.ZodNumber>;
            cacheReads: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            totalCost?: number | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            inputTokens?: number | undefined;
            outputTokens?: number | undefined;
        }, {
            totalCost?: number | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            inputTokens?: number | undefined;
            outputTokens?: number | undefined;
        }>>;
    }, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
    type: "result";
    success: boolean;
    events: z.objectOutputType<{
        type: z.ZodOptional<z.ZodEnum<["system", "control", "queue", "assistant", "user", "tool_use", "tool_result", "thinking", "error", "result"]>>;
        subtype: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
        taskId: z.ZodOptional<z.ZodString>;
        code: z.ZodOptional<z.ZodString>;
        content: z.ZodOptional<z.ZodString>;
        success: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodNumber>;
        done: z.ZodOptional<z.ZodBoolean>;
        queueDepth: z.ZodOptional<z.ZodNumber>;
        queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            text: z.ZodOptional<z.ZodString>;
            imageCount: z.ZodOptional<z.ZodNumber>;
            timestamp: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            id: string;
            text?: string | undefined;
            timestamp?: number | undefined;
            imageCount?: number | undefined;
        }, {
            id: string;
            text?: string | undefined;
            timestamp?: number | undefined;
            imageCount?: number | undefined;
        }>, "many">>;
        schemaVersion: z.ZodOptional<z.ZodNumber>;
        protocol: z.ZodOptional<z.ZodString>;
        capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tool_use: z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            input?: Record<string, unknown> | undefined;
        }, {
            name: string;
            input?: Record<string, unknown> | undefined;
        }>>;
        tool_result: z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            output: z.ZodOptional<z.ZodString>;
            error: z.ZodOptional<z.ZodString>;
            exitCode: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            error?: string | undefined;
            output?: string | undefined;
            exitCode?: number | undefined;
        }, {
            name: string;
            error?: string | undefined;
            output?: string | undefined;
            exitCode?: number | undefined;
        }>>;
        cost: z.ZodOptional<z.ZodObject<{
            totalCost: z.ZodOptional<z.ZodNumber>;
            inputTokens: z.ZodOptional<z.ZodNumber>;
            outputTokens: z.ZodOptional<z.ZodNumber>;
            cacheWrites: z.ZodOptional<z.ZodNumber>;
            cacheReads: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            totalCost?: number | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            inputTokens?: number | undefined;
            outputTokens?: number | undefined;
        }, {
            totalCost?: number | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            inputTokens?: number | undefined;
            outputTokens?: number | undefined;
        }>>;
    }, z.ZodTypeAny, "passthrough">[];
    cost?: {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    } | undefined;
    content?: string | undefined;
}, {
    type: "result";
    success: boolean;
    events: z.objectInputType<{
        type: z.ZodOptional<z.ZodEnum<["system", "control", "queue", "assistant", "user", "tool_use", "tool_result", "thinking", "error", "result"]>>;
        subtype: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        command: z.ZodOptional<z.ZodEnum<["start", "message", "cancel", "ping", "shutdown"]>>;
        taskId: z.ZodOptional<z.ZodString>;
        code: z.ZodOptional<z.ZodString>;
        content: z.ZodOptional<z.ZodString>;
        success: z.ZodOptional<z.ZodBoolean>;
        id: z.ZodOptional<z.ZodNumber>;
        done: z.ZodOptional<z.ZodBoolean>;
        queueDepth: z.ZodOptional<z.ZodNumber>;
        queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            text: z.ZodOptional<z.ZodString>;
            imageCount: z.ZodOptional<z.ZodNumber>;
            timestamp: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            id: string;
            text?: string | undefined;
            timestamp?: number | undefined;
            imageCount?: number | undefined;
        }, {
            id: string;
            text?: string | undefined;
            timestamp?: number | undefined;
            imageCount?: number | undefined;
        }>, "many">>;
        schemaVersion: z.ZodOptional<z.ZodNumber>;
        protocol: z.ZodOptional<z.ZodString>;
        capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        tool_use: z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            input?: Record<string, unknown> | undefined;
        }, {
            name: string;
            input?: Record<string, unknown> | undefined;
        }>>;
        tool_result: z.ZodOptional<z.ZodObject<{
            name: z.ZodString;
            output: z.ZodOptional<z.ZodString>;
            error: z.ZodOptional<z.ZodString>;
            exitCode: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            error?: string | undefined;
            output?: string | undefined;
            exitCode?: number | undefined;
        }, {
            name: string;
            error?: string | undefined;
            output?: string | undefined;
            exitCode?: number | undefined;
        }>>;
        cost: z.ZodOptional<z.ZodObject<{
            totalCost: z.ZodOptional<z.ZodNumber>;
            inputTokens: z.ZodOptional<z.ZodNumber>;
            outputTokens: z.ZodOptional<z.ZodNumber>;
            cacheWrites: z.ZodOptional<z.ZodNumber>;
            cacheReads: z.ZodOptional<z.ZodNumber>;
        }, "strip", z.ZodTypeAny, {
            totalCost?: number | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            inputTokens?: number | undefined;
            outputTokens?: number | undefined;
        }, {
            totalCost?: number | undefined;
            cacheWrites?: number | undefined;
            cacheReads?: number | undefined;
            inputTokens?: number | undefined;
            outputTokens?: number | undefined;
        }>>;
    }, z.ZodTypeAny, "passthrough">[];
    cost?: {
        totalCost?: number | undefined;
        cacheWrites?: number | undefined;
        cacheReads?: number | undefined;
        inputTokens?: number | undefined;
        outputTokens?: number | undefined;
    } | undefined;
    content?: string | undefined;
}>;
type RooCliFinalOutput = z.infer<typeof rooCliFinalOutputSchema>;

/**
 * ClineAsk
 */
/**
 * Array of possible ask types that the LLM can use to request user interaction or approval.
 * These represent different scenarios where the assistant needs user input to proceed.
 *
 * @constant
 * @readonly
 *
 * Ask type descriptions:
 * - `followup`: LLM asks a clarifying question to gather more information needed to complete the task
 * - `command`: Permission to execute a terminal/shell command
 * - `command_output`: Permission to read the output from a previously executed command
 * - `completion_result`: Task has been completed, awaiting user feedback or a new task
 * - `tool`: Permission to use a tool for file operations (read, write, search, etc.)
 * - `api_req_failed`: API request failed, asking user whether to retry
 * - `resume_task`: Confirmation needed to resume a previously paused task
 * - `resume_completed_task`: Confirmation needed to resume a task that was already marked as completed
 * - `mistake_limit_reached`: Too many errors encountered, needs user guidance on how to proceed
 * - `use_mcp_server`: Permission to use Model Context Protocol (MCP) server functionality
 * - `auto_approval_max_req_reached`: Auto-approval limit has been reached, manual approval required
 */
declare const clineAsks: readonly ["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"];
declare const clineAskSchema: z.ZodEnum<["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"]>;
type ClineAsk = z.infer<typeof clineAskSchema>;
/**
 * IdleAsk
 *
 * Asks that put the task into an "idle" state.
 */
declare const idleAsks: readonly ["completion_result", "api_req_failed", "resume_completed_task", "mistake_limit_reached", "auto_approval_max_req_reached"];
type IdleAsk = (typeof idleAsks)[number];
declare function isIdleAsk(ask: ClineAsk): ask is IdleAsk;
/**
 * ResumableAsk
 *
 * Asks that put the task into an "resumable" state.
 */
declare const resumableAsks: readonly ["resume_task"];
type ResumableAsk = (typeof resumableAsks)[number];
declare function isResumableAsk(ask: ClineAsk): ask is ResumableAsk;
/**
 * InteractiveAsk
 *
 * Asks that put the task into an "user interaction required" state.
 */
declare const interactiveAsks: readonly ["multiple_choice", "followup", "command", "tool", "use_mcp_server"];
type InteractiveAsk = (typeof interactiveAsks)[number];
declare function isInteractiveAsk(ask: ClineAsk): ask is InteractiveAsk;
/**
 * NonBlockingAsk
 *
 * Asks that are not associated with an actual approval, and are only used
 * to update chat messages.
 */
declare const nonBlockingAsks: readonly ["command_output"];
type NonBlockingAsk = (typeof nonBlockingAsks)[number];
declare function isNonBlockingAsk(ask: ClineAsk): ask is NonBlockingAsk;
/**
 * ClineSay
 */
/**
 * Array of possible say types that represent different kinds of messages the assistant can send.
 * These are used to categorize and handle various types of communication from the LLM to the user.
 *
 * @constant
 * @readonly
 *
 * Say type descriptions:
 * - `error`: General error message
 * - `api_req_started`: Indicates an API request has been initiated
 * - `api_req_finished`: Indicates an API request has completed successfully
 * - `api_req_retried`: Indicates an API request is being retried after a failure
 * - `api_req_retry_delayed`: Indicates an API request retry has been delayed
 * - `api_req_rate_limit_wait`: Indicates a configured rate-limit wait (not an error)
 * - `api_req_deleted`: Indicates an API request has been deleted/cancelled
 * - `text`: General text message or assistant response
 * - `reasoning`: Assistant's reasoning or thought process (often hidden from user)
 * - `completion_result`: Final result of task completion
 * - `user_feedback`: Message containing user feedback
 * - `user_feedback_diff`: Diff-formatted feedback from user showing requested changes
 * - `command_output`: Output from an executed command
 * - `shell_integration_warning`: Warning about shell integration issues or limitations
 * - `mcp_server_request_started`: MCP server request has been initiated
 * - `mcp_server_response`: Response received from MCP server
 * - `subtask_result`: Result of a completed subtask
 * - `checkpoint_saved`: Indicates a checkpoint has been saved
 * - `rooignore_error`: Error related to .rooignore file processing
 * - `diff_error`: Error occurred while applying a diff/patch
 * - `condense_context`: Context condensation/summarization has started
 * - `condense_context_error`: Error occurred during context condensation
 * - `codebase_search_result`: Results from searching the codebase
 * - `too_many_tools_warning`: Warning that too many MCP tools are enabled, which may confuse the LLM
 */
declare const clineSays: readonly ["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"];
declare const clineSaySchema: z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"]>;
type ClineSay = z.infer<typeof clineSaySchema>;
/**
 * ToolProgressStatus
 */
declare const toolProgressStatusSchema: z.ZodObject<{
    icon: z.ZodOptional<z.ZodString>;
    text: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    text?: string | undefined;
    icon?: string | undefined;
}, {
    text?: string | undefined;
    icon?: string | undefined;
}>;
type ToolProgressStatus = z.infer<typeof toolProgressStatusSchema>;
/**
 * ContextCondense
 *
 * Data associated with a successful context condensation event.
 * This is attached to messages with `say: "condense_context"` when
 * the condensation operation completes successfully.
 *
 * @property cost - The API cost incurred for the condensation operation
 * @property prevContextTokens - Token count before condensation
 * @property newContextTokens - Token count after condensation
 * @property summary - The condensed summary that replaced the original context
 * @property condenseId - Optional unique identifier for this condensation operation
 */
declare const contextCondenseSchema: z.ZodObject<{
    cost: z.ZodNumber;
    prevContextTokens: z.ZodNumber;
    newContextTokens: z.ZodNumber;
    summary: z.ZodString;
    condenseId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    cost: number;
    prevContextTokens: number;
    newContextTokens: number;
    summary: string;
    condenseId?: string | undefined;
}, {
    cost: number;
    prevContextTokens: number;
    newContextTokens: number;
    summary: string;
    condenseId?: string | undefined;
}>;
type ContextCondense = z.infer<typeof contextCondenseSchema>;
/**
 * ContextTruncation
 *
 * Data associated with a sliding window truncation event.
 * This is attached to messages with `say: "sliding_window_truncation"` when
 * messages are removed from the conversation history to stay within token limits.
 *
 * Unlike condensation, truncation simply removes older messages without
 * summarizing them. This is a faster but less context-preserving approach.
 *
 * @property truncationId - Unique identifier for this truncation operation
 * @property messagesRemoved - Number of conversation messages that were removed
 * @property prevContextTokens - Token count before truncation occurred
 * @property newContextTokens - Token count after truncation occurred
 */
declare const contextTruncationSchema: z.ZodObject<{
    truncationId: z.ZodString;
    messagesRemoved: z.ZodNumber;
    prevContextTokens: z.ZodNumber;
    newContextTokens: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    prevContextTokens: number;
    newContextTokens: number;
    truncationId: string;
    messagesRemoved: number;
}, {
    prevContextTokens: number;
    newContextTokens: number;
    truncationId: string;
    messagesRemoved: number;
}>;
type ContextTruncation = z.infer<typeof contextTruncationSchema>;
/**
 * ClineMessage
 *
 * The main message type used for communication between the extension and webview.
 * Messages can either be "ask" (requiring user response) or "say" (informational).
 *
 * Context Management Fields:
 * - `contextCondense`: Present when `say: "condense_context"` and condensation succeeded
 * - `contextTruncation`: Present when `say: "sliding_window_truncation"` and truncation occurred
 *
 * Note: These fields are mutually exclusive - a message will have at most one of them.
 */
declare const clineMessageSchema: z.ZodObject<{
    ts: z.ZodNumber;
    type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
    ask: z.ZodOptional<z.ZodEnum<["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"]>>;
    say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"]>>;
    text: z.ZodOptional<z.ZodString>;
    subtaskId: z.ZodOptional<z.ZodString>;
    images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    partial: z.ZodOptional<z.ZodBoolean>;
    reasoning: z.ZodOptional<z.ZodString>;
    conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
    checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    progressStatus: z.ZodOptional<z.ZodObject<{
        icon: z.ZodOptional<z.ZodString>;
        text: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        text?: string | undefined;
        icon?: string | undefined;
    }, {
        text?: string | undefined;
        icon?: string | undefined;
    }>>;
    /**
     * Data for successful context condensation.
     * Present when `say: "condense_context"` and `partial: false`.
     */
    contextCondense: z.ZodOptional<z.ZodObject<{
        cost: z.ZodNumber;
        prevContextTokens: z.ZodNumber;
        newContextTokens: z.ZodNumber;
        summary: z.ZodString;
        condenseId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        cost: number;
        prevContextTokens: number;
        newContextTokens: number;
        summary: string;
        condenseId?: string | undefined;
    }, {
        cost: number;
        prevContextTokens: number;
        newContextTokens: number;
        summary: string;
        condenseId?: string | undefined;
    }>>;
    /**
     * Data for sliding window truncation.
     * Present when `say: "sliding_window_truncation"`.
     */
    contextTruncation: z.ZodOptional<z.ZodObject<{
        truncationId: z.ZodString;
        messagesRemoved: z.ZodNumber;
        prevContextTokens: z.ZodNumber;
        newContextTokens: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        prevContextTokens: number;
        newContextTokens: number;
        truncationId: string;
        messagesRemoved: number;
    }, {
        prevContextTokens: number;
        newContextTokens: number;
        truncationId: string;
        messagesRemoved: number;
    }>>;
    isProtected: z.ZodOptional<z.ZodBoolean>;
    apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
    isAnswered: z.ZodOptional<z.ZodBoolean>;
    userResponse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    metadata: z.ZodOptional<z.ZodObject<{
        isRateLimit: z.ZodOptional<z.ZodBoolean>;
        isRateLimitRetry: z.ZodOptional<z.ZodBoolean>;
        gpt5: z.ZodOptional<z.ZodObject<{
            previous_response_id: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            previous_response_id?: string | undefined;
        }, {
            previous_response_id?: string | undefined;
        }>>;
    }, "strip", z.ZodTypeAny, {
        isRateLimit?: boolean | undefined;
        isRateLimitRetry?: boolean | undefined;
        gpt5?: {
            previous_response_id?: string | undefined;
        } | undefined;
    }, {
        isRateLimit?: boolean | undefined;
        isRateLimitRetry?: boolean | undefined;
        gpt5?: {
            previous_response_id?: string | undefined;
        } | undefined;
    }>>;
}, "strip", z.ZodTypeAny, {
    type: "ask" | "say";
    ts: number;
    text?: string | undefined;
    reasoning?: string | undefined;
    ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
    say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
    subtaskId?: string | undefined;
    images?: string[] | undefined;
    partial?: boolean | undefined;
    conversationHistoryIndex?: number | undefined;
    checkpoint?: Record<string, unknown> | undefined;
    progressStatus?: {
        text?: string | undefined;
        icon?: string | undefined;
    } | undefined;
    contextCondense?: {
        cost: number;
        prevContextTokens: number;
        newContextTokens: number;
        summary: string;
        condenseId?: string | undefined;
    } | undefined;
    contextTruncation?: {
        prevContextTokens: number;
        newContextTokens: number;
        truncationId: string;
        messagesRemoved: number;
    } | undefined;
    isProtected?: boolean | undefined;
    apiProtocol?: "openai" | "anthropic" | undefined;
    isAnswered?: boolean | undefined;
    userResponse?: Record<string, unknown> | undefined;
    metadata?: {
        isRateLimit?: boolean | undefined;
        isRateLimitRetry?: boolean | undefined;
        gpt5?: {
            previous_response_id?: string | undefined;
        } | undefined;
    } | undefined;
}, {
    type: "ask" | "say";
    ts: number;
    text?: string | undefined;
    reasoning?: string | undefined;
    ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
    say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
    subtaskId?: string | undefined;
    images?: string[] | undefined;
    partial?: boolean | undefined;
    conversationHistoryIndex?: number | undefined;
    checkpoint?: Record<string, unknown> | undefined;
    progressStatus?: {
        text?: string | undefined;
        icon?: string | undefined;
    } | undefined;
    contextCondense?: {
        cost: number;
        prevContextTokens: number;
        newContextTokens: number;
        summary: string;
        condenseId?: string | undefined;
    } | undefined;
    contextTruncation?: {
        prevContextTokens: number;
        newContextTokens: number;
        truncationId: string;
        messagesRemoved: number;
    } | undefined;
    isProtected?: boolean | undefined;
    apiProtocol?: "openai" | "anthropic" | undefined;
    isAnswered?: boolean | undefined;
    userResponse?: Record<string, unknown> | undefined;
    metadata?: {
        isRateLimit?: boolean | undefined;
        isRateLimitRetry?: boolean | undefined;
        gpt5?: {
            previous_response_id?: string | undefined;
        } | undefined;
    } | undefined;
}>;
type ClineMessage = z.infer<typeof clineMessageSchema>;
/**
 * TokenUsage
 */
declare const tokenUsageSchema: z.ZodObject<{
    totalTokensIn: z.ZodNumber;
    totalTokensOut: z.ZodNumber;
    totalCacheWrites: z.ZodOptional<z.ZodNumber>;
    totalCacheReads: z.ZodOptional<z.ZodNumber>;
    totalCost: z.ZodNumber;
    contextTokens: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    totalTokensIn: number;
    totalTokensOut: number;
    totalCost: number;
    contextTokens: number;
    totalCacheWrites?: number | undefined;
    totalCacheReads?: number | undefined;
}, {
    totalTokensIn: number;
    totalTokensOut: number;
    totalCost: number;
    contextTokens: number;
    totalCacheWrites?: number | undefined;
    totalCacheReads?: number | undefined;
}>;
type TokenUsage = z.infer<typeof tokenUsageSchema>;
/**
 * QueuedMessage
 */
declare const queuedMessageSchema: z.ZodObject<{
    timestamp: z.ZodNumber;
    id: z.ZodString;
    text: z.ZodString;
    images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
    text: string;
    timestamp: number;
    id: string;
    images?: string[] | undefined;
}, {
    text: string;
    timestamp: number;
    id: string;
    images?: string[] | undefined;
}>;
type QueuedMessage = z.infer<typeof queuedMessageSchema>;

/**
 * ToolGroup
 */
declare const toolGroups: readonly ["read", "edit", "command", "mcp", "modes", "question", "sequential_thinking", "file_outline"];
declare const toolGroupsSchema: z.ZodEnum<["read", "edit", "command", "mcp", "modes", "question", "sequential_thinking", "file_outline"]>;
/**
 * Tool groups that have been removed but may still exist in user config files.
 * Used by schema preprocessing to silently strip these before validation,
 * preventing errors for users with older configs.
 */
declare const deprecatedToolGroups: readonly string[];
type ToolGroup = z.infer<typeof toolGroupsSchema>;
/**
 * ToolName
 */
declare const toolNames: readonly ["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"];
declare const toolNamesSchema: z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>;
type ToolName = z.infer<typeof toolNamesSchema>;
/**
 * ToolUsage
 */
declare const toolUsageSchema: z.ZodRecord<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, z.ZodObject<{
    attempts: z.ZodNumber;
    failures: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    attempts: number;
    failures: number;
}, {
    attempts: number;
    failures: number;
}>>;
type ToolUsage = z.infer<typeof toolUsageSchema>;

/**
 * TelemetrySetting
 */
declare const telemetrySettings: readonly ["unset", "enabled", "disabled"];
declare const telemetrySettingsSchema: z.ZodEnum<["unset", "enabled", "disabled"]>;
type TelemetrySetting = z.infer<typeof telemetrySettingsSchema>;
/**
 * TelemetryEventName
 */
declare enum TelemetryEventName {
    TASK_CREATED = "Task Created",
    TASK_RESTARTED = "Task Reopened",
    TASK_COMPLETED = "Task Completed",
    TASK_MESSAGE = "Task Message",
    TASK_CONVERSATION_MESSAGE = "Conversation Message",
    LLM_COMPLETION = "LLM Completion",
    MODE_SWITCH = "Mode Switched",
    MODE_SELECTOR_OPENED = "Mode Selector Opened",
    TOOL_USED = "Tool Used",
    CHECKPOINT_CREATED = "Checkpoint Created",
    CHECKPOINT_RESTORED = "Checkpoint Restored",
    CHECKPOINT_DIFFED = "Checkpoint Diffed",
    TAB_SHOWN = "Tab Shown",
    MODE_SETTINGS_CHANGED = "Mode Setting Changed",
    CUSTOM_MODE_CREATED = "Custom Mode Created",
    CONTEXT_CONDENSED = "Context Condensed",
    SLIDING_WINDOW_TRUNCATION = "Sliding Window Truncation",
    CODE_ACTION_USED = "Code Action Used",
    PROMPT_ENHANCED = "Prompt Enhanced",
    TITLE_BUTTON_CLICKED = "Title Button Clicked",
    AUTHENTICATION_INITIATED = "Authentication Initiated",
    MARKETPLACE_ITEM_INSTALLED = "Marketplace Item Installed",
    MARKETPLACE_ITEM_REMOVED = "Marketplace Item Removed",
    MARKETPLACE_TAB_VIEWED = "Marketplace Tab Viewed",
    MARKETPLACE_INSTALL_BUTTON_CLICKED = "Marketplace Install Button Clicked",
    SHARE_BUTTON_CLICKED = "Share Button Clicked",
    SHARE_ORGANIZATION_CLICKED = "Share Organization Clicked",
    SHARE_PUBLIC_CLICKED = "Share Public Clicked",
    SHARE_CONNECT_TO_CLOUD_CLICKED = "Share Connect To Cloud Clicked",
    ACCOUNT_CONNECT_CLICKED = "Account Connect Clicked",
    ACCOUNT_CONNECT_SUCCESS = "Account Connect Success",
    ACCOUNT_LOGOUT_CLICKED = "Account Logout Clicked",
    ACCOUNT_LOGOUT_SUCCESS = "Account Logout Success",
    FEATURED_PROVIDER_CLICKED = "Featured Provider Clicked",
    UPSELL_DISMISSED = "Upsell Dismissed",
    UPSELL_CLICKED = "Upsell Clicked",
    SCHEMA_VALIDATION_ERROR = "Schema Validation Error",
    DIFF_APPLICATION_ERROR = "Diff Application Error",
    SHELL_INTEGRATION_ERROR = "Shell Integration Error",
    CONSECUTIVE_MISTAKE_ERROR = "Consecutive Mistake Error",
    CODE_INDEX_ERROR = "Code Index Error",
    CODE_ACCEPT = "Code Accept",
    CODE_REJECT = "Code Reject",
    CODE_TAB_COMPLETION = "Code Tab Completion",
    ERROR = "Error",
    TELEMETRY_SETTINGS_CHANGED = "Telemetry Settings Changed",
    MODEL_CACHE_EMPTY_RESPONSE = "Model Cache Empty Response",
    READ_FILE_LEGACY_FORMAT_USED = "Read File Legacy Format Used"
}
/**
 * TelemetryProperties
 */
declare const staticAppPropertiesSchema: z.ZodObject<{
    appName: z.ZodString;
    appVersion: z.ZodString;
    vscodeVersion: z.ZodString;
    platform: z.ZodString;
    editorName: z.ZodString;
    hostname: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    appName: string;
    appVersion: string;
    vscodeVersion: string;
    platform: string;
    editorName: string;
    hostname?: string | undefined;
}, {
    appName: string;
    appVersion: string;
    vscodeVersion: string;
    platform: string;
    editorName: string;
    hostname?: string | undefined;
}>;
type StaticAppProperties = z.infer<typeof staticAppPropertiesSchema>;
declare const dynamicAppPropertiesSchema: z.ZodObject<{
    language: z.ZodString;
    mode: z.ZodString;
}, "strip", z.ZodTypeAny, {
    language: string;
    mode: string;
}, {
    language: string;
    mode: string;
}>;
type DynamicAppProperties = z.infer<typeof dynamicAppPropertiesSchema>;
declare const cloudAppPropertiesSchema: z.ZodObject<{
    cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    cloudIsAuthenticated?: boolean | undefined;
}, {
    cloudIsAuthenticated?: boolean | undefined;
}>;
type CloudAppProperties = z.infer<typeof cloudAppPropertiesSchema>;
declare const appPropertiesSchema: z.ZodObject<{
    cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
    language: z.ZodString;
    mode: z.ZodString;
    appName: z.ZodString;
    appVersion: z.ZodString;
    vscodeVersion: z.ZodString;
    platform: z.ZodString;
    editorName: z.ZodString;
    hostname: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    language: string;
    mode: string;
    appName: string;
    appVersion: string;
    vscodeVersion: string;
    platform: string;
    editorName: string;
    hostname?: string | undefined;
    cloudIsAuthenticated?: boolean | undefined;
}, {
    language: string;
    mode: string;
    appName: string;
    appVersion: string;
    vscodeVersion: string;
    platform: string;
    editorName: string;
    hostname?: string | undefined;
    cloudIsAuthenticated?: boolean | undefined;
}>;
type AppProperties = z.infer<typeof appPropertiesSchema>;
declare const taskPropertiesSchema: z.ZodObject<{
    taskId: z.ZodOptional<z.ZodString>;
    parentTaskId: z.ZodOptional<z.ZodString>;
    apiProvider: z.ZodOptional<z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>>;
    modelId: z.ZodOptional<z.ZodString>;
    diffStrategy: z.ZodOptional<z.ZodString>;
    isSubtask: z.ZodOptional<z.ZodBoolean>;
    todos: z.ZodOptional<z.ZodObject<{
        total: z.ZodNumber;
        completed: z.ZodNumber;
        inProgress: z.ZodNumber;
        pending: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        completed: number;
        total: number;
        inProgress: number;
        pending: number;
    }, {
        completed: number;
        total: number;
        inProgress: number;
        pending: number;
    }>>;
}, "strip", z.ZodTypeAny, {
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
    modelId?: string | undefined;
    isSubtask?: boolean | undefined;
    taskId?: string | undefined;
    parentTaskId?: string | undefined;
    diffStrategy?: string | undefined;
    todos?: {
        completed: number;
        total: number;
        inProgress: number;
        pending: number;
    } | undefined;
}, {
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
    modelId?: string | undefined;
    isSubtask?: boolean | undefined;
    taskId?: string | undefined;
    parentTaskId?: string | undefined;
    diffStrategy?: string | undefined;
    todos?: {
        completed: number;
        total: number;
        inProgress: number;
        pending: number;
    } | undefined;
}>;
type TaskProperties = z.infer<typeof taskPropertiesSchema>;
declare const gitPropertiesSchema: z.ZodObject<{
    repositoryUrl: z.ZodOptional<z.ZodString>;
    repositoryName: z.ZodOptional<z.ZodString>;
    defaultBranch: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    repositoryUrl?: string | undefined;
    repositoryName?: string | undefined;
    defaultBranch?: string | undefined;
}, {
    repositoryUrl?: string | undefined;
    repositoryName?: string | undefined;
    defaultBranch?: string | undefined;
}>;
type GitProperties = z.infer<typeof gitPropertiesSchema>;
declare const telemetryPropertiesSchema: z.ZodObject<{
    repositoryUrl: z.ZodOptional<z.ZodString>;
    repositoryName: z.ZodOptional<z.ZodString>;
    defaultBranch: z.ZodOptional<z.ZodString>;
    taskId: z.ZodOptional<z.ZodString>;
    parentTaskId: z.ZodOptional<z.ZodString>;
    apiProvider: z.ZodOptional<z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>>;
    modelId: z.ZodOptional<z.ZodString>;
    diffStrategy: z.ZodOptional<z.ZodString>;
    isSubtask: z.ZodOptional<z.ZodBoolean>;
    todos: z.ZodOptional<z.ZodObject<{
        total: z.ZodNumber;
        completed: z.ZodNumber;
        inProgress: z.ZodNumber;
        pending: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        completed: number;
        total: number;
        inProgress: number;
        pending: number;
    }, {
        completed: number;
        total: number;
        inProgress: number;
        pending: number;
    }>>;
    cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
    language: z.ZodString;
    mode: z.ZodString;
    appName: z.ZodString;
    appVersion: z.ZodString;
    vscodeVersion: z.ZodString;
    platform: z.ZodString;
    editorName: z.ZodString;
    hostname: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    language: string;
    mode: string;
    appName: string;
    appVersion: string;
    vscodeVersion: string;
    platform: string;
    editorName: string;
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
    modelId?: string | undefined;
    isSubtask?: boolean | undefined;
    taskId?: string | undefined;
    parentTaskId?: string | undefined;
    hostname?: string | undefined;
    cloudIsAuthenticated?: boolean | undefined;
    diffStrategy?: string | undefined;
    todos?: {
        completed: number;
        total: number;
        inProgress: number;
        pending: number;
    } | undefined;
    repositoryUrl?: string | undefined;
    repositoryName?: string | undefined;
    defaultBranch?: string | undefined;
}, {
    language: string;
    mode: string;
    appName: string;
    appVersion: string;
    vscodeVersion: string;
    platform: string;
    editorName: string;
    apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
    modelId?: string | undefined;
    isSubtask?: boolean | undefined;
    taskId?: string | undefined;
    parentTaskId?: string | undefined;
    hostname?: string | undefined;
    cloudIsAuthenticated?: boolean | undefined;
    diffStrategy?: string | undefined;
    todos?: {
        completed: number;
        total: number;
        inProgress: number;
        pending: number;
    } | undefined;
    repositoryUrl?: string | undefined;
    repositoryName?: string | undefined;
    defaultBranch?: string | undefined;
}>;
type TelemetryProperties = z.infer<typeof telemetryPropertiesSchema>;
/**
 * TelemetryEvent
 */
type TelemetryEvent = {
    event: TelemetryEventName;
    properties?: Record<string, any>;
};
/**
 * RooCodeTelemetryEvent
 */
declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
    type: z.ZodEnum<[TelemetryEventName.TASK_CREATED, TelemetryEventName.TASK_RESTARTED, TelemetryEventName.TASK_COMPLETED, TelemetryEventName.TASK_CONVERSATION_MESSAGE, TelemetryEventName.MODE_SWITCH, TelemetryEventName.MODE_SELECTOR_OPENED, TelemetryEventName.TOOL_USED, TelemetryEventName.CHECKPOINT_CREATED, TelemetryEventName.CHECKPOINT_RESTORED, TelemetryEventName.CHECKPOINT_DIFFED, TelemetryEventName.CODE_ACTION_USED, TelemetryEventName.PROMPT_ENHANCED, TelemetryEventName.TITLE_BUTTON_CLICKED, TelemetryEventName.AUTHENTICATION_INITIATED, TelemetryEventName.MARKETPLACE_ITEM_INSTALLED, TelemetryEventName.MARKETPLACE_ITEM_REMOVED, TelemetryEventName.MARKETPLACE_TAB_VIEWED, TelemetryEventName.MARKETPLACE_INSTALL_BUTTON_CLICKED, TelemetryEventName.SHARE_BUTTON_CLICKED, TelemetryEventName.SHARE_ORGANIZATION_CLICKED, TelemetryEventName.SHARE_PUBLIC_CLICKED, TelemetryEventName.SHARE_CONNECT_TO_CLOUD_CLICKED, TelemetryEventName.ACCOUNT_CONNECT_CLICKED, TelemetryEventName.ACCOUNT_CONNECT_SUCCESS, TelemetryEventName.ACCOUNT_LOGOUT_CLICKED, TelemetryEventName.ACCOUNT_LOGOUT_SUCCESS, TelemetryEventName.FEATURED_PROVIDER_CLICKED, TelemetryEventName.UPSELL_DISMISSED, TelemetryEventName.UPSELL_CLICKED, TelemetryEventName.SCHEMA_VALIDATION_ERROR, TelemetryEventName.DIFF_APPLICATION_ERROR, TelemetryEventName.SHELL_INTEGRATION_ERROR, TelemetryEventName.CONSECUTIVE_MISTAKE_ERROR, TelemetryEventName.CODE_INDEX_ERROR, TelemetryEventName.MODEL_CACHE_EMPTY_RESPONSE, TelemetryEventName.CONTEXT_CONDENSED, TelemetryEventName.SLIDING_WINDOW_TRUNCATION, TelemetryEventName.TAB_SHOWN, TelemetryEventName.MODE_SETTINGS_CHANGED, TelemetryEventName.CUSTOM_MODE_CREATED, TelemetryEventName.READ_FILE_LEGACY_FORMAT_USED]>;
    properties: z.ZodObject<{
        repositoryUrl: z.ZodOptional<z.ZodString>;
        repositoryName: z.ZodOptional<z.ZodString>;
        defaultBranch: z.ZodOptional<z.ZodString>;
        taskId: z.ZodOptional<z.ZodString>;
        parentTaskId: z.ZodOptional<z.ZodString>;
        apiProvider: z.ZodOptional<z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>>;
        modelId: z.ZodOptional<z.ZodString>;
        diffStrategy: z.ZodOptional<z.ZodString>;
        isSubtask: z.ZodOptional<z.ZodBoolean>;
        todos: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            completed: z.ZodNumber;
            inProgress: z.ZodNumber;
            pending: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        }, {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        }>>;
        cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
        language: z.ZodString;
        mode: z.ZodString;
        appName: z.ZodString;
        appVersion: z.ZodString;
        vscodeVersion: z.ZodString;
        platform: z.ZodString;
        editorName: z.ZodString;
        hostname: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    }, {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    }>;
}, "strip", z.ZodTypeAny, {
    type: TelemetryEventName.TASK_CREATED | TelemetryEventName.TASK_RESTARTED | TelemetryEventName.TASK_COMPLETED | TelemetryEventName.TASK_CONVERSATION_MESSAGE | TelemetryEventName.MODE_SWITCH | TelemetryEventName.MODE_SELECTOR_OPENED | TelemetryEventName.TOOL_USED | TelemetryEventName.CHECKPOINT_CREATED | TelemetryEventName.CHECKPOINT_RESTORED | TelemetryEventName.CHECKPOINT_DIFFED | TelemetryEventName.TAB_SHOWN | TelemetryEventName.MODE_SETTINGS_CHANGED | TelemetryEventName.CUSTOM_MODE_CREATED | TelemetryEventName.CONTEXT_CONDENSED | TelemetryEventName.SLIDING_WINDOW_TRUNCATION | TelemetryEventName.CODE_ACTION_USED | TelemetryEventName.PROMPT_ENHANCED | TelemetryEventName.TITLE_BUTTON_CLICKED | TelemetryEventName.AUTHENTICATION_INITIATED | TelemetryEventName.MARKETPLACE_ITEM_INSTALLED | TelemetryEventName.MARKETPLACE_ITEM_REMOVED | TelemetryEventName.MARKETPLACE_TAB_VIEWED | TelemetryEventName.MARKETPLACE_INSTALL_BUTTON_CLICKED | TelemetryEventName.SHARE_BUTTON_CLICKED | TelemetryEventName.SHARE_ORGANIZATION_CLICKED | TelemetryEventName.SHARE_PUBLIC_CLICKED | TelemetryEventName.SHARE_CONNECT_TO_CLOUD_CLICKED | TelemetryEventName.ACCOUNT_CONNECT_CLICKED | TelemetryEventName.ACCOUNT_CONNECT_SUCCESS | TelemetryEventName.ACCOUNT_LOGOUT_CLICKED | TelemetryEventName.ACCOUNT_LOGOUT_SUCCESS | TelemetryEventName.FEATURED_PROVIDER_CLICKED | TelemetryEventName.UPSELL_DISMISSED | TelemetryEventName.UPSELL_CLICKED | TelemetryEventName.SCHEMA_VALIDATION_ERROR | TelemetryEventName.DIFF_APPLICATION_ERROR | TelemetryEventName.SHELL_INTEGRATION_ERROR | TelemetryEventName.CONSECUTIVE_MISTAKE_ERROR | TelemetryEventName.CODE_INDEX_ERROR | TelemetryEventName.MODEL_CACHE_EMPTY_RESPONSE | TelemetryEventName.READ_FILE_LEGACY_FORMAT_USED;
    properties: {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    };
}, {
    type: TelemetryEventName.TASK_CREATED | TelemetryEventName.TASK_RESTARTED | TelemetryEventName.TASK_COMPLETED | TelemetryEventName.TASK_CONVERSATION_MESSAGE | TelemetryEventName.MODE_SWITCH | TelemetryEventName.MODE_SELECTOR_OPENED | TelemetryEventName.TOOL_USED | TelemetryEventName.CHECKPOINT_CREATED | TelemetryEventName.CHECKPOINT_RESTORED | TelemetryEventName.CHECKPOINT_DIFFED | TelemetryEventName.TAB_SHOWN | TelemetryEventName.MODE_SETTINGS_CHANGED | TelemetryEventName.CUSTOM_MODE_CREATED | TelemetryEventName.CONTEXT_CONDENSED | TelemetryEventName.SLIDING_WINDOW_TRUNCATION | TelemetryEventName.CODE_ACTION_USED | TelemetryEventName.PROMPT_ENHANCED | TelemetryEventName.TITLE_BUTTON_CLICKED | TelemetryEventName.AUTHENTICATION_INITIATED | TelemetryEventName.MARKETPLACE_ITEM_INSTALLED | TelemetryEventName.MARKETPLACE_ITEM_REMOVED | TelemetryEventName.MARKETPLACE_TAB_VIEWED | TelemetryEventName.MARKETPLACE_INSTALL_BUTTON_CLICKED | TelemetryEventName.SHARE_BUTTON_CLICKED | TelemetryEventName.SHARE_ORGANIZATION_CLICKED | TelemetryEventName.SHARE_PUBLIC_CLICKED | TelemetryEventName.SHARE_CONNECT_TO_CLOUD_CLICKED | TelemetryEventName.ACCOUNT_CONNECT_CLICKED | TelemetryEventName.ACCOUNT_CONNECT_SUCCESS | TelemetryEventName.ACCOUNT_LOGOUT_CLICKED | TelemetryEventName.ACCOUNT_LOGOUT_SUCCESS | TelemetryEventName.FEATURED_PROVIDER_CLICKED | TelemetryEventName.UPSELL_DISMISSED | TelemetryEventName.UPSELL_CLICKED | TelemetryEventName.SCHEMA_VALIDATION_ERROR | TelemetryEventName.DIFF_APPLICATION_ERROR | TelemetryEventName.SHELL_INTEGRATION_ERROR | TelemetryEventName.CONSECUTIVE_MISTAKE_ERROR | TelemetryEventName.CODE_INDEX_ERROR | TelemetryEventName.MODEL_CACHE_EMPTY_RESPONSE | TelemetryEventName.READ_FILE_LEGACY_FORMAT_USED;
    properties: {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    };
}>, z.ZodObject<{
    type: z.ZodLiteral<TelemetryEventName.TELEMETRY_SETTINGS_CHANGED>;
    properties: z.ZodObject<{
        previousSetting: z.ZodEnum<["unset", "enabled", "disabled"]>;
        newSetting: z.ZodEnum<["unset", "enabled", "disabled"]>;
        repositoryUrl: z.ZodOptional<z.ZodString>;
        repositoryName: z.ZodOptional<z.ZodString>;
        defaultBranch: z.ZodOptional<z.ZodString>;
        taskId: z.ZodOptional<z.ZodString>;
        parentTaskId: z.ZodOptional<z.ZodString>;
        apiProvider: z.ZodOptional<z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>>;
        modelId: z.ZodOptional<z.ZodString>;
        diffStrategy: z.ZodOptional<z.ZodString>;
        isSubtask: z.ZodOptional<z.ZodBoolean>;
        todos: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            completed: z.ZodNumber;
            inProgress: z.ZodNumber;
            pending: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        }, {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        }>>;
        cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
        language: z.ZodString;
        mode: z.ZodString;
        appName: z.ZodString;
        appVersion: z.ZodString;
        vscodeVersion: z.ZodString;
        platform: z.ZodString;
        editorName: z.ZodString;
        hostname: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        previousSetting: "enabled" | "unset" | "disabled";
        newSetting: "enabled" | "unset" | "disabled";
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    }, {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        previousSetting: "enabled" | "unset" | "disabled";
        newSetting: "enabled" | "unset" | "disabled";
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    }>;
}, "strip", z.ZodTypeAny, {
    type: TelemetryEventName.TELEMETRY_SETTINGS_CHANGED;
    properties: {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        previousSetting: "enabled" | "unset" | "disabled";
        newSetting: "enabled" | "unset" | "disabled";
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    };
}, {
    type: TelemetryEventName.TELEMETRY_SETTINGS_CHANGED;
    properties: {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        previousSetting: "enabled" | "unset" | "disabled";
        newSetting: "enabled" | "unset" | "disabled";
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    };
}>, z.ZodObject<{
    type: z.ZodLiteral<TelemetryEventName.TASK_MESSAGE>;
    properties: z.ZodObject<{
        taskId: z.ZodString;
        message: z.ZodObject<{
            ts: z.ZodNumber;
            type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
            ask: z.ZodOptional<z.ZodEnum<["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"]>>;
            say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"]>>;
            text: z.ZodOptional<z.ZodString>;
            subtaskId: z.ZodOptional<z.ZodString>;
            images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            partial: z.ZodOptional<z.ZodBoolean>;
            reasoning: z.ZodOptional<z.ZodString>;
            conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
            checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            progressStatus: z.ZodOptional<z.ZodObject<{
                icon: z.ZodOptional<z.ZodString>;
                text: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                text?: string | undefined;
                icon?: string | undefined;
            }, {
                text?: string | undefined;
                icon?: string | undefined;
            }>>;
            contextCondense: z.ZodOptional<z.ZodObject<{
                cost: z.ZodNumber;
                prevContextTokens: z.ZodNumber;
                newContextTokens: z.ZodNumber;
                summary: z.ZodString;
                condenseId: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            }, {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            }>>;
            contextTruncation: z.ZodOptional<z.ZodObject<{
                truncationId: z.ZodString;
                messagesRemoved: z.ZodNumber;
                prevContextTokens: z.ZodNumber;
                newContextTokens: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            }, {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            }>>;
            isProtected: z.ZodOptional<z.ZodBoolean>;
            apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
            isAnswered: z.ZodOptional<z.ZodBoolean>;
            userResponse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            metadata: z.ZodOptional<z.ZodObject<{
                isRateLimit: z.ZodOptional<z.ZodBoolean>;
                isRateLimitRetry: z.ZodOptional<z.ZodBoolean>;
                gpt5: z.ZodOptional<z.ZodObject<{
                    previous_response_id: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    previous_response_id?: string | undefined;
                }, {
                    previous_response_id?: string | undefined;
                }>>;
            }, "strip", z.ZodTypeAny, {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            }, {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            }>>;
        }, "strip", z.ZodTypeAny, {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        }, {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        }>;
        repositoryUrl: z.ZodOptional<z.ZodString>;
        repositoryName: z.ZodOptional<z.ZodString>;
        defaultBranch: z.ZodOptional<z.ZodString>;
        parentTaskId: z.ZodOptional<z.ZodString>;
        apiProvider: z.ZodOptional<z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>>;
        modelId: z.ZodOptional<z.ZodString>;
        diffStrategy: z.ZodOptional<z.ZodString>;
        isSubtask: z.ZodOptional<z.ZodBoolean>;
        todos: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            completed: z.ZodNumber;
            inProgress: z.ZodNumber;
            pending: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        }, {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        }>>;
        cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
        language: z.ZodString;
        mode: z.ZodString;
        appName: z.ZodString;
        appVersion: z.ZodString;
        vscodeVersion: z.ZodString;
        platform: z.ZodString;
        editorName: z.ZodString;
        hostname: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        language: string;
        taskId: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    }, {
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        language: string;
        taskId: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    }>;
}, "strip", z.ZodTypeAny, {
    type: TelemetryEventName.TASK_MESSAGE;
    properties: {
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        language: string;
        taskId: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    };
}, {
    type: TelemetryEventName.TASK_MESSAGE;
    properties: {
        message: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        };
        language: string;
        taskId: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    };
}>, z.ZodObject<{
    type: z.ZodLiteral<TelemetryEventName.LLM_COMPLETION>;
    properties: z.ZodObject<{
        inputTokens: z.ZodNumber;
        outputTokens: z.ZodNumber;
        cacheReadTokens: z.ZodOptional<z.ZodNumber>;
        cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
        cost: z.ZodOptional<z.ZodNumber>;
        repositoryUrl: z.ZodOptional<z.ZodString>;
        repositoryName: z.ZodOptional<z.ZodString>;
        defaultBranch: z.ZodOptional<z.ZodString>;
        taskId: z.ZodOptional<z.ZodString>;
        parentTaskId: z.ZodOptional<z.ZodString>;
        apiProvider: z.ZodOptional<z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>>;
        modelId: z.ZodOptional<z.ZodString>;
        diffStrategy: z.ZodOptional<z.ZodString>;
        isSubtask: z.ZodOptional<z.ZodBoolean>;
        todos: z.ZodOptional<z.ZodObject<{
            total: z.ZodNumber;
            completed: z.ZodNumber;
            inProgress: z.ZodNumber;
            pending: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        }, {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        }>>;
        cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
        language: z.ZodString;
        mode: z.ZodString;
        appName: z.ZodString;
        appVersion: z.ZodString;
        vscodeVersion: z.ZodString;
        platform: z.ZodString;
        editorName: z.ZodString;
        hostname: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        inputTokens: number;
        outputTokens: number;
        cost?: number | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
        cacheReadTokens?: number | undefined;
        cacheWriteTokens?: number | undefined;
    }, {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        inputTokens: number;
        outputTokens: number;
        cost?: number | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
        cacheReadTokens?: number | undefined;
        cacheWriteTokens?: number | undefined;
    }>;
}, "strip", z.ZodTypeAny, {
    type: TelemetryEventName.LLM_COMPLETION;
    properties: {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        inputTokens: number;
        outputTokens: number;
        cost?: number | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
        cacheReadTokens?: number | undefined;
        cacheWriteTokens?: number | undefined;
    };
}, {
    type: TelemetryEventName.LLM_COMPLETION;
    properties: {
        language: string;
        mode: string;
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        inputTokens: number;
        outputTokens: number;
        cost?: number | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | undefined;
        modelId?: string | undefined;
        isSubtask?: boolean | undefined;
        taskId?: string | undefined;
        parentTaskId?: string | undefined;
        hostname?: string | undefined;
        cloudIsAuthenticated?: boolean | undefined;
        diffStrategy?: string | undefined;
        todos?: {
            completed: number;
            total: number;
            inProgress: number;
            pending: number;
        } | undefined;
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
        cacheReadTokens?: number | undefined;
        cacheWriteTokens?: number | undefined;
    };
}>]>;
type RooCodeTelemetryEvent = z.infer<typeof rooCodeTelemetryEventSchema>;
/**
 * TelemetryEventSubscription
 */
type TelemetryEventSubscription = {
    type: "include";
    events: TelemetryEventName[];
} | {
    type: "exclude";
    events: TelemetryEventName[];
};
/**
 * TelemetryPropertiesProvider
 */
interface TelemetryPropertiesProvider {
    getTelemetryProperties(): Promise<TelemetryProperties>;
}
/**
 * TelemetryClient
 */
interface TelemetryClient {
    subscription?: TelemetryEventSubscription;
    setProvider(provider: TelemetryPropertiesProvider): void;
    capture(options: TelemetryEvent): Promise<void>;
    captureException(error: Error, additionalProperties?: Record<string, unknown>): Promise<void>;
    updateTelemetryState(isOptedIn: boolean): void;
    isTelemetryEnabled(): boolean;
    shutdown(): Promise<void>;
}
/**
 * Expected API error codes that should not be reported to telemetry.
 * These are normal/expected errors that users can't do much about.
 */
declare const EXPECTED_API_ERROR_CODES: Set<number>;
/**
 * Extracts the HTTP status code from an error object.
 * Supports OpenAI SDK errors that have a status property.
 * @param error - The error to extract status from
 * @returns The status code if available, undefined otherwise
 */
declare function getErrorStatusCode(error: unknown): number | undefined;
/**
 * Extracts a message from a JSON payload embedded in an error string.
 * Handles cases like "503 {"error":{"message":"actual error message"}}"
 * or just '{"error":{"message":"actual error message"}}'
 *
 * @param message - The message string that may contain JSON
 * @returns The extracted message from the JSON payload, or undefined if not found
 */
declare function extractMessageFromJsonPayload(message: string): string | undefined;
/**
 * Extracts the most descriptive error message from an error object.
 * Prioritizes nested metadata (upstream provider errors) over the standard message.
 * Also handles JSON payloads embedded in error messages.
 * @param error - The error to extract message from
 * @returns The best available error message, or undefined if not extractable
 */
declare function getErrorMessage(error: unknown): string | undefined;
/**
 * Helper to check if an API error should be reported to telemetry.
 * Filters out expected errors like rate limits by checking both error codes and messages.
 * @param errorCode - The HTTP error code (if available)
 * @param errorMessage - The error message (if available)
 * @returns true if the error should be reported, false if it should be filtered out
 */
declare function shouldReportApiErrorToTelemetry(errorCode?: number, errorMessage?: string): boolean;
/**
 * Generic API provider error class for structured error tracking via PostHog.
 * Can be reused by any API provider.
 */
declare class ApiProviderError extends Error {
    readonly provider: string;
    readonly modelId: string;
    readonly operation: string;
    readonly errorCode?: number | undefined;
    constructor(message: string, provider: string, modelId: string, operation: string, errorCode?: number | undefined);
}
/**
 * Type guard to check if an error is an ApiProviderError.
 * Used by telemetry to automatically extract structured properties.
 */
declare function isApiProviderError(error: unknown): error is ApiProviderError;
/**
 * Extracts properties from an ApiProviderError for telemetry.
 * Returns the structured properties that can be merged with additionalProperties.
 */
declare function extractApiProviderErrorProperties(error: ApiProviderError): Record<string, unknown>;
/**
 * Reason why the consecutive mistake limit was reached.
 */
type ConsecutiveMistakeReason = "no_tools_used" | "tool_repetition" | "unknown";
/**
 * Error class for "Roo is having trouble" consecutive mistake scenarios.
 * Triggered when the task reaches the configured consecutive mistake limit.
 * Used for structured exception tracking via PostHog.
 */
declare class ConsecutiveMistakeError extends Error {
    readonly taskId: string;
    readonly consecutiveMistakeCount: number;
    readonly consecutiveMistakeLimit: number;
    readonly reason: ConsecutiveMistakeReason;
    readonly provider?: string | undefined;
    readonly modelId?: string | undefined;
    constructor(message: string, taskId: string, consecutiveMistakeCount: number, consecutiveMistakeLimit: number, reason?: ConsecutiveMistakeReason, provider?: string | undefined, modelId?: string | undefined);
}
/**
 * Type guard to check if an error is a ConsecutiveMistakeError.
 * Used by telemetry to automatically extract structured properties.
 */
declare function isConsecutiveMistakeError(error: unknown): error is ConsecutiveMistakeError;
/**
 * Extracts properties from a ConsecutiveMistakeError for telemetry.
 * Returns the structured properties that can be merged with additionalProperties.
 */
declare function extractConsecutiveMistakeErrorProperties(error: ConsecutiveMistakeError): Record<string, unknown>;

/**
 * TodoStatus
 */
declare const todoStatusSchema: z.ZodEnum<["pending", "in_progress", "completed"]>;
type TodoStatus = z.infer<typeof todoStatusSchema>;
/**
 * TodoItem
 */
declare const todoItemSchema: z.ZodObject<{
    id: z.ZodString;
    content: z.ZodString;
    status: z.ZodEnum<["pending", "in_progress", "completed"]>;
}, "strip", z.ZodTypeAny, {
    status: "completed" | "pending" | "in_progress";
    id: string;
    content: string;
}, {
    status: "completed" | "pending" | "in_progress";
    id: string;
    content: string;
}>;
type TodoItem = z.infer<typeof todoItemSchema>;

/**
 * TaskProviderLike
 */
interface TaskProviderLike {
    getCurrentTask(): TaskLike | undefined;
    getRecentTasks(): string[];
    createTask(text?: string, images?: string[], parentTask?: TaskLike, options?: CreateTaskOptions, configuration?: RooCodeSettings): Promise<TaskLike>;
    cancelTask(): Promise<void>;
    clearTask(): Promise<void>;
    resumeTask(taskId: string): void;
    getModes(): Promise<{
        slug: string;
        name: string;
    }[]>;
    getMode(): Promise<string>;
    setMode(mode: string): Promise<void>;
    getProviderProfiles(): Promise<{
        name: string;
        provider?: string;
    }[]>;
    getProviderProfile(): Promise<string>;
    setProviderProfile(providerProfile: string): Promise<void>;
    readonly appProperties: StaticAppProperties;
    readonly gitProperties: GitProperties | undefined;
    getTelemetryProperties(): Promise<TelemetryProperties>;
    readonly cwd: string;
    on<K extends keyof TaskProviderEvents>(event: K, listener: (...args: TaskProviderEvents[K]) => void | Promise<void>): this;
    off<K extends keyof TaskProviderEvents>(event: K, listener: (...args: TaskProviderEvents[K]) => void | Promise<void>): this;
    postStateToWebview(): Promise<void>;
}
type TaskProviderEvents = {
    [RooCodeEventName.TaskCreated]: [task: TaskLike];
    [RooCodeEventName.TaskStarted]: [taskId: string];
    [RooCodeEventName.TaskCompleted]: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage];
    [RooCodeEventName.TaskAborted]: [taskId: string];
    [RooCodeEventName.TaskFocused]: [taskId: string];
    [RooCodeEventName.TaskUnfocused]: [taskId: string];
    [RooCodeEventName.TaskActive]: [taskId: string];
    [RooCodeEventName.TaskInteractive]: [taskId: string];
    [RooCodeEventName.TaskResumable]: [taskId: string];
    [RooCodeEventName.TaskIdle]: [taskId: string];
    [RooCodeEventName.TaskPaused]: [taskId: string];
    [RooCodeEventName.TaskUnpaused]: [taskId: string];
    [RooCodeEventName.TaskSpawned]: [taskId: string];
    [RooCodeEventName.TaskDelegated]: [parentTaskId: string, childTaskId: string];
    [RooCodeEventName.TaskDelegationCompleted]: [parentTaskId: string, childTaskId: string, summary: string];
    [RooCodeEventName.TaskDelegationResumed]: [parentTaskId: string, childTaskId: string];
    [RooCodeEventName.TaskUserMessage]: [taskId: string];
    [RooCodeEventName.TaskTokenUsageUpdated]: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage];
    [RooCodeEventName.ModeChanged]: [mode: string];
    [RooCodeEventName.ProviderProfileChanged]: [config: {
        name: string;
        provider?: string;
    }];
};
/**
 * TaskLike
 */
interface CreateTaskOptions {
    taskId?: string;
    enableCheckpoints?: boolean;
    consecutiveMistakeLimit?: number;
    experiments?: Record<string, boolean>;
    initialTodos?: TodoItem[];
    useCostrictCustomConfig?: boolean;
    costrictWorkflowMode?: string;
    costrictWorkflowSpecScope?: string;
    /** Initial status for the task's history item (e.g., "active" for child tasks) */
    initialStatus?: "active" | "delegated" | "completed";
    /** Whether to start the task loop immediately (default: true).
     *  When false, the caller must invoke `task.start()` manually. */
    startTask?: boolean;
}
declare enum TaskStatus {
    Running = "running",
    Interactive = "interactive",
    Resumable = "resumable",
    Idle = "idle",
    None = "none"
}
declare const taskMetadataSchema: z.ZodObject<{
    task: z.ZodOptional<z.ZodString>;
    images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
    images?: string[] | undefined;
    task?: string | undefined;
}, {
    images?: string[] | undefined;
    task?: string | undefined;
}>;
type TaskMetadata = z.infer<typeof taskMetadataSchema>;
interface TaskLike {
    readonly taskId: string;
    readonly rootTaskId?: string;
    readonly parentTaskId?: string;
    readonly childTaskId?: string;
    readonly metadata: TaskMetadata;
    readonly taskStatus: TaskStatus;
    readonly taskAsk: ClineMessage | undefined;
    readonly queuedMessages: QueuedMessage[];
    readonly tokenUsage: TokenUsage | undefined;
    on<K extends keyof TaskEvents>(event: K, listener: (...args: TaskEvents[K]) => void | Promise<void>): this;
    off<K extends keyof TaskEvents>(event: K, listener: (...args: TaskEvents[K]) => void | Promise<void>): this;
    approveAsk(options?: {
        text?: string;
        images?: string[];
    }): void;
    denyAsk(options?: {
        text?: string;
        images?: string[];
    }): void;
    submitUserMessage(text: string, images?: string[], mode?: string, providerProfile?: string): Promise<void>;
    abortTask(): void;
}
type TaskEvents = {
    [RooCodeEventName.TaskStarted]: [];
    [RooCodeEventName.TaskCompleted]: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage];
    [RooCodeEventName.TaskAborted]: [];
    [RooCodeEventName.TaskFocused]: [];
    [RooCodeEventName.TaskUnfocused]: [];
    [RooCodeEventName.TaskActive]: [taskId: string];
    [RooCodeEventName.TaskInteractive]: [taskId: string];
    [RooCodeEventName.TaskResumable]: [taskId: string];
    [RooCodeEventName.TaskIdle]: [taskId: string];
    [RooCodeEventName.TaskPaused]: [taskId: string];
    [RooCodeEventName.TaskUnpaused]: [taskId: string];
    [RooCodeEventName.TaskSpawned]: [taskId: string];
    [RooCodeEventName.Message]: [{
        action: "created" | "updated";
        message: ClineMessage;
    }];
    [RooCodeEventName.TaskModeSwitched]: [taskId: string, mode: string];
    [RooCodeEventName.TaskAskResponded]: [];
    [RooCodeEventName.TaskUserMessage]: [taskId: string];
    [RooCodeEventName.QueuedMessagesUpdated]: [taskId: string, messages: QueuedMessage[]];
    [RooCodeEventName.TaskToolFailed]: [taskId: string, tool: ToolName, error: string];
    [RooCodeEventName.TaskTokenUsageUpdated]: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage];
};

/**
 * JWTPayload
 */
interface JWTPayload {
    iss?: string;
    sub?: string;
    exp?: number;
    iat?: number;
    nbf?: number;
    v?: number;
    r?: {
        u?: string;
        o?: string;
        t?: string;
    };
}
/**
 * CloudUserInfo
 */
interface CloudUserInfo {
    id?: string;
    name?: string;
    email?: string;
    picture?: string;
    organizationId?: string;
    organizationName?: string;
    organizationRole?: string;
    organizationImageUrl?: string;
}
/**
 * CloudOrganization
 */
interface CloudOrganization {
    id: string;
    name: string;
    slug?: string;
    image_url?: string;
    has_image?: boolean;
    created_at?: number;
    updated_at?: number;
}
/**
 * CloudOrganizationMembership
 */
interface CloudOrganizationMembership {
    id: string;
    organization: CloudOrganization;
    role: string;
    permissions?: string[];
    created_at?: number;
    updated_at?: number;
}
/**
 * OrganizationAllowList
 */
declare const organizationAllowListSchema: z.ZodObject<{
    allowAll: z.ZodBoolean;
    providers: z.ZodRecord<z.ZodString, z.ZodObject<{
        allowAll: z.ZodBoolean;
        models: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    }, "strip", z.ZodTypeAny, {
        allowAll: boolean;
        models?: string[] | undefined;
    }, {
        allowAll: boolean;
        models?: string[] | undefined;
    }>>;
}, "strip", z.ZodTypeAny, {
    allowAll: boolean;
    providers: Record<string, {
        allowAll: boolean;
        models?: string[] | undefined;
    }>;
}, {
    allowAll: boolean;
    providers: Record<string, {
        allowAll: boolean;
        models?: string[] | undefined;
    }>;
}>;
type OrganizationAllowList = z.infer<typeof organizationAllowListSchema>;
/**
 * OrganizationDefaultSettings
 */
declare const organizationDefaultSettingsSchema: z.ZodObject<{
    enableCheckpoints: z.ZodOptional<z.ZodBoolean>;
    showRooIgnoredFiles: z.ZodOptional<z.ZodBoolean>;
    terminalShellIntegrationDisabled: z.ZodOptional<z.ZodBoolean>;
    terminalZshClearEolMark: z.ZodOptional<z.ZodBoolean>;
    disabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, "many">>;
} & {
    maxOpenTabsContext: z.ZodOptional<z.ZodNumber>;
    maxWorkspaceFiles: z.ZodOptional<z.ZodNumber>;
    terminalCommandDelay: z.ZodOptional<z.ZodNumber>;
    terminalShellIntegrationTimeout: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    enableCheckpoints?: boolean | undefined;
    maxOpenTabsContext?: number | undefined;
    maxWorkspaceFiles?: number | undefined;
    showRooIgnoredFiles?: boolean | undefined;
    terminalShellIntegrationTimeout?: number | undefined;
    terminalShellIntegrationDisabled?: boolean | undefined;
    terminalCommandDelay?: number | undefined;
    terminalZshClearEolMark?: boolean | undefined;
    disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
}, {
    enableCheckpoints?: boolean | undefined;
    maxOpenTabsContext?: number | undefined;
    maxWorkspaceFiles?: number | undefined;
    showRooIgnoredFiles?: boolean | undefined;
    terminalShellIntegrationTimeout?: number | undefined;
    terminalShellIntegrationDisabled?: boolean | undefined;
    terminalCommandDelay?: number | undefined;
    terminalZshClearEolMark?: boolean | undefined;
    disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
}>;
type OrganizationDefaultSettings = z.infer<typeof organizationDefaultSettingsSchema>;
/**
 * WorkspaceTaskVisibility
 */
declare const workspaceTaskVisibilitySchema: z.ZodEnum<["all", "list-only", "admins-and-creator", "creator", "full-lockdown"]>;
type WorkspaceTaskVisibility = z.infer<typeof workspaceTaskVisibilitySchema>;
/**
 * OrganizationCloudSettings
 */
declare const organizationCloudSettingsSchema: z.ZodObject<{
    recordTaskMessages: z.ZodOptional<z.ZodBoolean>;
    enableTaskSharing: z.ZodOptional<z.ZodBoolean>;
    allowPublicTaskSharing: z.ZodOptional<z.ZodBoolean>;
    taskShareExpirationDays: z.ZodOptional<z.ZodNumber>;
    allowMembersViewAllTasks: z.ZodOptional<z.ZodBoolean>;
    workspaceTaskVisibility: z.ZodOptional<z.ZodEnum<["all", "list-only", "admins-and-creator", "creator", "full-lockdown"]>>;
    llmEnhancedFeaturesEnabled: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    recordTaskMessages?: boolean | undefined;
    enableTaskSharing?: boolean | undefined;
    allowPublicTaskSharing?: boolean | undefined;
    taskShareExpirationDays?: number | undefined;
    allowMembersViewAllTasks?: boolean | undefined;
    workspaceTaskVisibility?: "all" | "list-only" | "admins-and-creator" | "creator" | "full-lockdown" | undefined;
    llmEnhancedFeaturesEnabled?: boolean | undefined;
}, {
    recordTaskMessages?: boolean | undefined;
    enableTaskSharing?: boolean | undefined;
    allowPublicTaskSharing?: boolean | undefined;
    taskShareExpirationDays?: number | undefined;
    allowMembersViewAllTasks?: boolean | undefined;
    workspaceTaskVisibility?: "all" | "list-only" | "admins-and-creator" | "creator" | "full-lockdown" | undefined;
    llmEnhancedFeaturesEnabled?: boolean | undefined;
}>;
type OrganizationCloudSettings = z.infer<typeof organizationCloudSettingsSchema>;
/**
 * OrganizationFeatures
 */
declare const organizationFeaturesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
type OrganizationFeatures = z.infer<typeof organizationFeaturesSchema>;
/**
 * OrganizationSettings
 */
declare const organizationSettingsSchema: z.ZodObject<{
    version: z.ZodNumber;
    cloudSettings: z.ZodOptional<z.ZodObject<{
        recordTaskMessages: z.ZodOptional<z.ZodBoolean>;
        enableTaskSharing: z.ZodOptional<z.ZodBoolean>;
        allowPublicTaskSharing: z.ZodOptional<z.ZodBoolean>;
        taskShareExpirationDays: z.ZodOptional<z.ZodNumber>;
        allowMembersViewAllTasks: z.ZodOptional<z.ZodBoolean>;
        workspaceTaskVisibility: z.ZodOptional<z.ZodEnum<["all", "list-only", "admins-and-creator", "creator", "full-lockdown"]>>;
        llmEnhancedFeaturesEnabled: z.ZodOptional<z.ZodBoolean>;
    }, "strip", z.ZodTypeAny, {
        recordTaskMessages?: boolean | undefined;
        enableTaskSharing?: boolean | undefined;
        allowPublicTaskSharing?: boolean | undefined;
        taskShareExpirationDays?: number | undefined;
        allowMembersViewAllTasks?: boolean | undefined;
        workspaceTaskVisibility?: "all" | "list-only" | "admins-and-creator" | "creator" | "full-lockdown" | undefined;
        llmEnhancedFeaturesEnabled?: boolean | undefined;
    }, {
        recordTaskMessages?: boolean | undefined;
        enableTaskSharing?: boolean | undefined;
        allowPublicTaskSharing?: boolean | undefined;
        taskShareExpirationDays?: number | undefined;
        allowMembersViewAllTasks?: boolean | undefined;
        workspaceTaskVisibility?: "all" | "list-only" | "admins-and-creator" | "creator" | "full-lockdown" | undefined;
        llmEnhancedFeaturesEnabled?: boolean | undefined;
    }>>;
    defaultSettings: z.ZodObject<{
        enableCheckpoints: z.ZodOptional<z.ZodBoolean>;
        showRooIgnoredFiles: z.ZodOptional<z.ZodBoolean>;
        terminalShellIntegrationDisabled: z.ZodOptional<z.ZodBoolean>;
        terminalZshClearEolMark: z.ZodOptional<z.ZodBoolean>;
        disabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["fake_tool_call", "execute_command", "read_file", "read_command_output", "write_to_file", "apply_diff", "edit", "search_and_replace", "search_replace", "edit_file", "apply_patch", "search_files", "list_files", "use_mcp_tool", "access_mcp_resource", "ask_followup_question", "ask_multiple_choice", "attempt_completion", "switch_mode", "new_task", "codebase_search", "update_todo_list", "run_slash_command", "skill", "generate_image", "custom_tool", "sequential_thinking", "file_outline", "costrict_checkpoint"]>, "many">>;
    } & {
        maxOpenTabsContext: z.ZodOptional<z.ZodNumber>;
        maxWorkspaceFiles: z.ZodOptional<z.ZodNumber>;
        terminalCommandDelay: z.ZodOptional<z.ZodNumber>;
        terminalShellIntegrationTimeout: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        enableCheckpoints?: boolean | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    }, {
        enableCheckpoints?: boolean | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    }>;
    allowList: z.ZodObject<{
        allowAll: z.ZodBoolean;
        providers: z.ZodRecord<z.ZodString, z.ZodObject<{
            allowAll: z.ZodBoolean;
            models: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        }, "strip", z.ZodTypeAny, {
            allowAll: boolean;
            models?: string[] | undefined;
        }, {
            allowAll: boolean;
            models?: string[] | undefined;
        }>>;
    }, "strip", z.ZodTypeAny, {
        allowAll: boolean;
        providers: Record<string, {
            allowAll: boolean;
            models?: string[] | undefined;
        }>;
    }, {
        allowAll: boolean;
        providers: Record<string, {
            allowAll: boolean;
            models?: string[] | undefined;
        }>;
    }>;
    features: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
    hiddenMcps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    hideMarketplaceMcps: z.ZodOptional<z.ZodBoolean>;
    mcps: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        name: z.ZodString;
        description: z.ZodString;
        author: z.ZodOptional<z.ZodString>;
        authorUrl: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    } & {
        url: z.ZodString;
        content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            content: z.ZodString;
            parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                key: z.ZodString;
                placeholder: z.ZodOptional<z.ZodString>;
                optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                key: string;
                optional: boolean;
                placeholder?: string | undefined;
            }, {
                name: string;
                key: string;
                placeholder?: string | undefined;
                optional?: boolean | undefined;
            }>, "many">>;
            prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                optional: boolean;
                placeholder?: string | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }, {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                placeholder?: string | undefined;
                optional?: boolean | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }>, "many">]>;
        parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            key: z.ZodString;
            placeholder: z.ZodOptional<z.ZodString>;
            optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }, {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }>, "many">>;
    }, "strip", z.ZodTypeAny, {
        id: string;
        description: string;
        name: string;
        url: string;
        content: string | {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                optional: boolean;
                placeholder?: string | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }[];
        tags?: string[] | undefined;
        parameters?: {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    }, {
        id: string;
        description: string;
        name: string;
        url: string;
        content: string | {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                placeholder?: string | undefined;
                optional?: boolean | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }[];
        tags?: string[] | undefined;
        parameters?: {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    }>, "many">>;
    providerProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        codeIndexOpenAiKey: z.ZodOptional<z.ZodString>;
        codeIndexQdrantApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
        codebaseIndexGeminiApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexMistralApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexVercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
        codebaseIndexOpenRouterApiKey: z.ZodOptional<z.ZodString>;
        includeMaxTokens: z.ZodOptional<z.ZodBoolean>;
        todoListEnabled: z.ZodOptional<z.ZodBoolean>;
        modelTemperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
        rateLimitSeconds: z.ZodOptional<z.ZodNumber>;
        consecutiveMistakeLimit: z.ZodOptional<z.ZodNumber>;
        enableReasoningEffort: z.ZodOptional<z.ZodBoolean>;
        reasoningEffort: z.ZodOptional<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
        modelMaxTokens: z.ZodOptional<z.ZodNumber>;
        modelMaxThinkingTokens: z.ZodOptional<z.ZodNumber>;
        verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
        vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
        vercelAiGatewayModelId: z.ZodOptional<z.ZodString>;
        apiModelId: z.ZodOptional<z.ZodString>;
        rooApiKey: z.ZodOptional<z.ZodString>;
        qwenCodeOauthPath: z.ZodOptional<z.ZodString>;
        fireworksApiKey: z.ZodOptional<z.ZodString>;
        zaiApiKey: z.ZodOptional<z.ZodString>;
        zaiApiLine: z.ZodOptional<z.ZodEnum<["international_coding", "china_coding", "international_api", "china_api"]>>;
        sambaNovaApiKey: z.ZodOptional<z.ZodString>;
        litellmBaseUrl: z.ZodOptional<z.ZodString>;
        litellmApiKey: z.ZodOptional<z.ZodString>;
        litellmModelId: z.ZodOptional<z.ZodString>;
        litellmUsePromptCache: z.ZodOptional<z.ZodBoolean>;
        basetenApiKey: z.ZodOptional<z.ZodString>;
        xaiApiKey: z.ZodOptional<z.ZodString>;
        fakeAi: z.ZodOptional<z.ZodUnknown>;
        unboundApiKey: z.ZodOptional<z.ZodString>;
        unboundModelId: z.ZodOptional<z.ZodString>;
        requestyBaseUrl: z.ZodOptional<z.ZodString>;
        requestyApiKey: z.ZodOptional<z.ZodString>;
        requestyModelId: z.ZodOptional<z.ZodString>;
        mimoBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-cn.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-sgp.xiaomimimo.com/v1">, z.ZodLiteral<"https://token-plan-ams.xiaomimimo.com/v1">]>>;
        mimoApiKey: z.ZodOptional<z.ZodString>;
        minimaxBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.minimax.io/v1">, z.ZodLiteral<"https://api.minimaxi.com/v1">]>>;
        minimaxApiKey: z.ZodOptional<z.ZodString>;
        moonshotBaseUrl: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"https://api.moonshot.ai/v1">, z.ZodLiteral<"https://api.moonshot.cn/v1">]>>;
        moonshotApiKey: z.ZodOptional<z.ZodString>;
        poeApiKey: z.ZodOptional<z.ZodString>;
        poeBaseUrl: z.ZodOptional<z.ZodString>;
        deepSeekBaseUrl: z.ZodOptional<z.ZodString>;
        deepSeekApiKey: z.ZodOptional<z.ZodString>;
        mistralApiKey: z.ZodOptional<z.ZodString>;
        mistralCodestralUrl: z.ZodOptional<z.ZodString>;
        openAiNativeApiKey: z.ZodOptional<z.ZodString>;
        openAiNativeBaseUrl: z.ZodOptional<z.ZodString>;
        openAiNativeServiceTier: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
        geminiCliOAuthPath: z.ZodOptional<z.ZodString>;
        geminiCliProjectId: z.ZodOptional<z.ZodString>;
        geminiApiKey: z.ZodOptional<z.ZodString>;
        googleGeminiBaseUrl: z.ZodOptional<z.ZodString>;
        lmStudioModelId: z.ZodOptional<z.ZodString>;
        lmStudioBaseUrl: z.ZodOptional<z.ZodString>;
        lmStudioDraftModelId: z.ZodOptional<z.ZodString>;
        lmStudioSpeculativeDecodingEnabled: z.ZodOptional<z.ZodBoolean>;
        vsCodeLmModelSelector: z.ZodOptional<z.ZodObject<{
            vendor: z.ZodOptional<z.ZodString>;
            family: z.ZodOptional<z.ZodString>;
            version: z.ZodOptional<z.ZodString>;
            id: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        }, {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        }>>;
        ollamaModelId: z.ZodOptional<z.ZodString>;
        ollamaBaseUrl: z.ZodOptional<z.ZodString>;
        ollamaApiKey: z.ZodOptional<z.ZodString>;
        ollamaNumCtx: z.ZodOptional<z.ZodNumber>;
        openAiBaseUrl: z.ZodOptional<z.ZodString>;
        openAiApiKey: z.ZodOptional<z.ZodString>;
        openAiR1FormatEnabled: z.ZodOptional<z.ZodBoolean>;
        openAiModelId: z.ZodOptional<z.ZodString>;
        openAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
            maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            contextWindow: z.ZodNumber;
            supportsImages: z.ZodOptional<z.ZodBoolean>;
            id: z.ZodOptional<z.ZodString>;
            maxTokensKey: z.ZodOptional<z.ZodString>;
            creditConsumption: z.ZodOptional<z.ZodNumber>;
            creditDiscount: z.ZodOptional<z.ZodNumber>;
            supportsPromptCache: z.ZodBoolean;
            promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
            supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
            supportsTemperature: z.ZodOptional<z.ZodBoolean>;
            defaultTemperature: z.ZodOptional<z.ZodNumber>;
            requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
            requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
            preserveReasoning: z.ZodOptional<z.ZodBoolean>;
            supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            longContextPricing: z.ZodOptional<z.ZodObject<{
                thresholdTokens: z.ZodNumber;
                inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
            }, "strip", z.ZodTypeAny, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }>>;
            description: z.ZodOptional<z.ZodString>;
            reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
            minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
            maxCachePoints: z.ZodOptional<z.ZodNumber>;
            cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            deprecated: z.ZodOptional<z.ZodBoolean>;
            isStealthModel: z.ZodOptional<z.ZodBoolean>;
            isFree: z.ZodOptional<z.ZodBoolean>;
            excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                contextWindow: z.ZodNumber;
                inputPrice: z.ZodOptional<z.ZodNumber>;
                outputPrice: z.ZodOptional<z.ZodNumber>;
                cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            }, "strip", z.ZodTypeAny, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>>>;
        openAiUseAzure: z.ZodOptional<z.ZodBoolean>;
        azureApiVersion: z.ZodOptional<z.ZodString>;
        openAiStreamingEnabled: z.ZodOptional<z.ZodBoolean>;
        openAiHostHeader: z.ZodOptional<z.ZodString>;
        openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        vertexKeyFile: z.ZodOptional<z.ZodString>;
        vertexJsonCredentials: z.ZodOptional<z.ZodString>;
        vertexProjectId: z.ZodOptional<z.ZodString>;
        vertexRegion: z.ZodOptional<z.ZodString>;
        vertex1MContext: z.ZodOptional<z.ZodBoolean>;
        awsAccessKey: z.ZodOptional<z.ZodString>;
        awsSecretKey: z.ZodOptional<z.ZodString>;
        awsSessionToken: z.ZodOptional<z.ZodString>;
        awsRegion: z.ZodOptional<z.ZodString>;
        awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
        awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
        awsUsePromptCache: z.ZodOptional<z.ZodBoolean>;
        awsProfile: z.ZodOptional<z.ZodString>;
        awsUseProfile: z.ZodOptional<z.ZodBoolean>;
        awsApiKey: z.ZodOptional<z.ZodString>;
        awsUseApiKey: z.ZodOptional<z.ZodBoolean>;
        awsCustomArn: z.ZodOptional<z.ZodString>;
        awsModelContextWindow: z.ZodOptional<z.ZodNumber>;
        awsBedrockEndpointEnabled: z.ZodOptional<z.ZodBoolean>;
        awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
        awsBedrock1MContext: z.ZodOptional<z.ZodBoolean>;
        awsBedrockServiceTier: z.ZodOptional<z.ZodEnum<["STANDARD", "FLEX", "PRIORITY"]>>;
        openRouterApiKey: z.ZodOptional<z.ZodString>;
        openRouterModelId: z.ZodOptional<z.ZodString>;
        openRouterBaseUrl: z.ZodOptional<z.ZodString>;
        openRouterSpecificProvider: z.ZodOptional<z.ZodString>;
        apiKey: z.ZodOptional<z.ZodString>;
        anthropicBaseUrl: z.ZodOptional<z.ZodString>;
        anthropicUseAuthToken: z.ZodOptional<z.ZodBoolean>;
        anthropicBeta1MContext: z.ZodOptional<z.ZodBoolean>;
        costrictAccessToken: z.ZodOptional<z.ZodString>;
        costrictRefreshToken: z.ZodOptional<z.ZodString>;
        costrictState: z.ZodOptional<z.ZodString>;
        costrictBaseUrl: z.ZodOptional<z.ZodString>;
        costrictModelId: z.ZodOptional<z.ZodString>;
        costrictApiKeyUpdatedAt: z.ZodOptional<z.ZodString>;
        costrictApiKeyExpiredAt: z.ZodOptional<z.ZodString>;
        useCostrictCustomConfig: z.ZodOptional<z.ZodBoolean>;
        costrictAiCustomModelInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
            maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
            contextWindow: z.ZodNumber;
            supportsImages: z.ZodOptional<z.ZodBoolean>;
            id: z.ZodOptional<z.ZodString>;
            maxTokensKey: z.ZodOptional<z.ZodString>;
            creditConsumption: z.ZodOptional<z.ZodNumber>;
            creditDiscount: z.ZodOptional<z.ZodNumber>;
            supportsPromptCache: z.ZodBoolean;
            promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
            supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
            supportsTemperature: z.ZodOptional<z.ZodBoolean>;
            defaultTemperature: z.ZodOptional<z.ZodNumber>;
            requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
            supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
            requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
            preserveReasoning: z.ZodOptional<z.ZodBoolean>;
            supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
            inputPrice: z.ZodOptional<z.ZodNumber>;
            outputPrice: z.ZodOptional<z.ZodNumber>;
            cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
            cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            longContextPricing: z.ZodOptional<z.ZodObject<{
                thresholdTokens: z.ZodNumber;
                inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
                appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
            }, "strip", z.ZodTypeAny, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }, {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            }>>;
            description: z.ZodOptional<z.ZodString>;
            reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
            minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
            maxCachePoints: z.ZodOptional<z.ZodNumber>;
            cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            deprecated: z.ZodOptional<z.ZodBoolean>;
            isStealthModel: z.ZodOptional<z.ZodBoolean>;
            isFree: z.ZodOptional<z.ZodBoolean>;
            excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
                contextWindow: z.ZodNumber;
                inputPrice: z.ZodOptional<z.ZodNumber>;
                outputPrice: z.ZodOptional<z.ZodNumber>;
                cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
                cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
            }, "strip", z.ZodTypeAny, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }, {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }>, "many">>;
        }, "strip", z.ZodTypeAny, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }, {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        }>>>;
        apiProvider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["costrict", "openrouter", "vercel-ai-gateway", "litellm", "requesty", "unbound", "poe", "ollama", "lmstudio", "vscode-lm", "openai", "fake-ai", "human-relay", "anthropic", "bedrock", "baseten", "claude-code", "deepseek", "fireworks", "gemini", "gemini-cli", "mistral", "moonshot", "minimax", "mimo", "openai-codex", "openai-native", "qwen-code", "roo", "sambanova", "vertex", "xai", "zai"]>, z.ZodEnum<["cerebras", "chutes", "deepinfra", "doubao", "featherless", "groq", "huggingface", "io-intelligence"]>]>>;
    } & {
        id: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        id?: string | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
    }, {
        id?: string | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
    }>>>;
}, "strip", z.ZodTypeAny, {
    version: number;
    defaultSettings: {
        enableCheckpoints?: boolean | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    };
    allowList: {
        allowAll: boolean;
        providers: Record<string, {
            allowAll: boolean;
            models?: string[] | undefined;
        }>;
    };
    cloudSettings?: {
        recordTaskMessages?: boolean | undefined;
        enableTaskSharing?: boolean | undefined;
        allowPublicTaskSharing?: boolean | undefined;
        taskShareExpirationDays?: number | undefined;
        allowMembersViewAllTasks?: boolean | undefined;
        workspaceTaskVisibility?: "all" | "list-only" | "admins-and-creator" | "creator" | "full-lockdown" | undefined;
        llmEnhancedFeaturesEnabled?: boolean | undefined;
    } | undefined;
    features?: {} | undefined;
    hiddenMcps?: string[] | undefined;
    hideMarketplaceMcps?: boolean | undefined;
    mcps?: {
        id: string;
        description: string;
        name: string;
        url: string;
        content: string | {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                optional: boolean;
                placeholder?: string | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }[];
        tags?: string[] | undefined;
        parameters?: {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    }[] | undefined;
    providerProfiles?: Record<string, {
        id?: string | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
    }> | undefined;
}, {
    version: number;
    defaultSettings: {
        enableCheckpoints?: boolean | undefined;
        maxOpenTabsContext?: number | undefined;
        maxWorkspaceFiles?: number | undefined;
        showRooIgnoredFiles?: boolean | undefined;
        terminalShellIntegrationTimeout?: number | undefined;
        terminalShellIntegrationDisabled?: boolean | undefined;
        terminalCommandDelay?: number | undefined;
        terminalZshClearEolMark?: boolean | undefined;
        disabledTools?: ("apply_patch" | "apply_diff" | "write_to_file" | "search_replace" | "search_and_replace" | "edit" | "sequential_thinking" | "file_outline" | "fake_tool_call" | "execute_command" | "read_file" | "read_command_output" | "edit_file" | "search_files" | "list_files" | "use_mcp_tool" | "access_mcp_resource" | "ask_followup_question" | "ask_multiple_choice" | "attempt_completion" | "switch_mode" | "new_task" | "codebase_search" | "update_todo_list" | "run_slash_command" | "skill" | "generate_image" | "custom_tool" | "costrict_checkpoint")[] | undefined;
    };
    allowList: {
        allowAll: boolean;
        providers: Record<string, {
            allowAll: boolean;
            models?: string[] | undefined;
        }>;
    };
    cloudSettings?: {
        recordTaskMessages?: boolean | undefined;
        enableTaskSharing?: boolean | undefined;
        allowPublicTaskSharing?: boolean | undefined;
        taskShareExpirationDays?: number | undefined;
        allowMembersViewAllTasks?: boolean | undefined;
        workspaceTaskVisibility?: "all" | "list-only" | "admins-and-creator" | "creator" | "full-lockdown" | undefined;
        llmEnhancedFeaturesEnabled?: boolean | undefined;
    } | undefined;
    features?: {} | undefined;
    hiddenMcps?: string[] | undefined;
    hideMarketplaceMcps?: boolean | undefined;
    mcps?: {
        id: string;
        description: string;
        name: string;
        url: string;
        content: string | {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                placeholder?: string | undefined;
                optional?: boolean | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }[];
        tags?: string[] | undefined;
        parameters?: {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    }[] | undefined;
    providerProfiles?: Record<string, {
        id?: string | undefined;
        codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
        codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
        codeIndexOpenAiKey?: string | undefined;
        codeIndexQdrantApiKey?: string | undefined;
        codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
        codebaseIndexGeminiApiKey?: string | undefined;
        codebaseIndexMistralApiKey?: string | undefined;
        codebaseIndexVercelAiGatewayApiKey?: string | undefined;
        codebaseIndexOpenRouterApiKey?: string | undefined;
        reasoningEffort?: "disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
        apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "costrict" | "litellm" | "requesty" | "unbound" | "poe" | "lmstudio" | "vscode-lm" | "fake-ai" | "human-relay" | "baseten" | "claude-code" | "deepseek" | "fireworks" | "gemini-cli" | "moonshot" | "minimax" | "mimo" | "openai-codex" | "openai-native" | "qwen-code" | "roo" | "sambanova" | "vertex" | "xai" | "zai" | "cerebras" | "chutes" | "deepinfra" | "doubao" | "featherless" | "groq" | "huggingface" | "io-intelligence" | undefined;
        includeMaxTokens?: boolean | undefined;
        todoListEnabled?: boolean | undefined;
        modelTemperature?: number | null | undefined;
        rateLimitSeconds?: number | undefined;
        consecutiveMistakeLimit?: number | undefined;
        enableReasoningEffort?: boolean | undefined;
        modelMaxTokens?: number | undefined;
        modelMaxThinkingTokens?: number | undefined;
        verbosity?: "low" | "medium" | "high" | undefined;
        apiModelId?: string | undefined;
        costrictAccessToken?: string | undefined;
        costrictRefreshToken?: string | undefined;
        costrictState?: string | undefined;
        costrictBaseUrl?: string | undefined;
        costrictModelId?: string | undefined;
        costrictApiKeyUpdatedAt?: string | undefined;
        costrictApiKeyExpiredAt?: string | undefined;
        useCostrictCustomConfig?: boolean | undefined;
        costrictAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        apiKey?: string | undefined;
        anthropicBaseUrl?: string | undefined;
        anthropicUseAuthToken?: boolean | undefined;
        anthropicBeta1MContext?: boolean | undefined;
        openRouterApiKey?: string | undefined;
        openRouterModelId?: string | undefined;
        openRouterBaseUrl?: string | undefined;
        openRouterSpecificProvider?: string | undefined;
        awsAccessKey?: string | undefined;
        awsSecretKey?: string | undefined;
        awsSessionToken?: string | undefined;
        awsRegion?: string | undefined;
        awsUseCrossRegionInference?: boolean | undefined;
        awsUseGlobalInference?: boolean | undefined;
        awsUsePromptCache?: boolean | undefined;
        awsProfile?: string | undefined;
        awsUseProfile?: boolean | undefined;
        awsApiKey?: string | undefined;
        awsUseApiKey?: boolean | undefined;
        awsCustomArn?: string | undefined;
        awsModelContextWindow?: number | undefined;
        awsBedrockEndpointEnabled?: boolean | undefined;
        awsBedrockEndpoint?: string | undefined;
        awsBedrock1MContext?: boolean | undefined;
        awsBedrockServiceTier?: "STANDARD" | "FLEX" | "PRIORITY" | undefined;
        vertexKeyFile?: string | undefined;
        vertexJsonCredentials?: string | undefined;
        vertexProjectId?: string | undefined;
        vertexRegion?: string | undefined;
        vertex1MContext?: boolean | undefined;
        openAiBaseUrl?: string | undefined;
        openAiApiKey?: string | undefined;
        openAiR1FormatEnabled?: boolean | undefined;
        openAiModelId?: string | undefined;
        openAiCustomModelInfo?: {
            contextWindow: number;
            supportsPromptCache: boolean;
            id?: string | undefined;
            maxTokens?: number | null | undefined;
            maxThinkingTokens?: number | null | undefined;
            supportsImages?: boolean | undefined;
            maxTokensKey?: string | undefined;
            creditConsumption?: number | undefined;
            creditDiscount?: number | undefined;
            promptCacheRetention?: "in_memory" | "24h" | undefined;
            supportsVerbosity?: boolean | undefined;
            supportsReasoningBudget?: boolean | undefined;
            supportsReasoningBinary?: boolean | undefined;
            supportsTemperature?: boolean | undefined;
            defaultTemperature?: number | undefined;
            requiredReasoningBudget?: boolean | undefined;
            supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
            requiredReasoningEffort?: boolean | undefined;
            preserveReasoning?: boolean | undefined;
            supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
            inputPrice?: number | undefined;
            outputPrice?: number | undefined;
            cacheWritesPrice?: number | undefined;
            cacheReadsPrice?: number | undefined;
            longContextPricing?: {
                thresholdTokens: number;
                inputPriceMultiplier?: number | undefined;
                outputPriceMultiplier?: number | undefined;
                cacheWritesPriceMultiplier?: number | undefined;
                cacheReadsPriceMultiplier?: number | undefined;
                appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
            } | undefined;
            description?: string | undefined;
            reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
            minTokensPerCachePoint?: number | undefined;
            maxCachePoints?: number | undefined;
            cachableFields?: string[] | undefined;
            deprecated?: boolean | undefined;
            isStealthModel?: boolean | undefined;
            isFree?: boolean | undefined;
            excludedTools?: string[] | undefined;
            includedTools?: string[] | undefined;
            tiers?: {
                contextWindow: number;
                inputPrice?: number | undefined;
                outputPrice?: number | undefined;
                cacheWritesPrice?: number | undefined;
                cacheReadsPrice?: number | undefined;
                name?: "default" | "flex" | "priority" | undefined;
            }[] | undefined;
        } | null | undefined;
        openAiUseAzure?: boolean | undefined;
        azureApiVersion?: string | undefined;
        openAiStreamingEnabled?: boolean | undefined;
        openAiHostHeader?: string | undefined;
        openAiHeaders?: Record<string, string> | undefined;
        ollamaModelId?: string | undefined;
        ollamaBaseUrl?: string | undefined;
        ollamaApiKey?: string | undefined;
        ollamaNumCtx?: number | undefined;
        vsCodeLmModelSelector?: {
            id?: string | undefined;
            family?: string | undefined;
            version?: string | undefined;
            vendor?: string | undefined;
        } | undefined;
        lmStudioModelId?: string | undefined;
        lmStudioBaseUrl?: string | undefined;
        lmStudioDraftModelId?: string | undefined;
        lmStudioSpeculativeDecodingEnabled?: boolean | undefined;
        geminiApiKey?: string | undefined;
        googleGeminiBaseUrl?: string | undefined;
        geminiCliOAuthPath?: string | undefined;
        geminiCliProjectId?: string | undefined;
        openAiNativeApiKey?: string | undefined;
        openAiNativeBaseUrl?: string | undefined;
        openAiNativeServiceTier?: "default" | "flex" | "priority" | undefined;
        mistralApiKey?: string | undefined;
        mistralCodestralUrl?: string | undefined;
        deepSeekBaseUrl?: string | undefined;
        deepSeekApiKey?: string | undefined;
        poeApiKey?: string | undefined;
        poeBaseUrl?: string | undefined;
        moonshotBaseUrl?: "https://api.moonshot.ai/v1" | "https://api.moonshot.cn/v1" | undefined;
        moonshotApiKey?: string | undefined;
        minimaxBaseUrl?: "https://api.minimax.io/v1" | "https://api.minimaxi.com/v1" | undefined;
        minimaxApiKey?: string | undefined;
        mimoBaseUrl?: "https://api.xiaomimimo.com/v1" | "https://token-plan-cn.xiaomimimo.com/v1" | "https://token-plan-sgp.xiaomimimo.com/v1" | "https://token-plan-ams.xiaomimimo.com/v1" | undefined;
        mimoApiKey?: string | undefined;
        requestyBaseUrl?: string | undefined;
        requestyApiKey?: string | undefined;
        requestyModelId?: string | undefined;
        unboundApiKey?: string | undefined;
        unboundModelId?: string | undefined;
        fakeAi?: unknown;
        xaiApiKey?: string | undefined;
        basetenApiKey?: string | undefined;
        litellmBaseUrl?: string | undefined;
        litellmApiKey?: string | undefined;
        litellmModelId?: string | undefined;
        litellmUsePromptCache?: boolean | undefined;
        sambaNovaApiKey?: string | undefined;
        zaiApiKey?: string | undefined;
        zaiApiLine?: "international_coding" | "china_coding" | "international_api" | "china_api" | undefined;
        fireworksApiKey?: string | undefined;
        qwenCodeOauthPath?: string | undefined;
        rooApiKey?: string | undefined;
        vercelAiGatewayApiKey?: string | undefined;
        vercelAiGatewayModelId?: string | undefined;
    }> | undefined;
}>;
type OrganizationSettings = z.infer<typeof organizationSettingsSchema>;
/**
 * User Settings Schemas
 */
declare const userFeaturesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
type UserFeatures = z.infer<typeof userFeaturesSchema>;
declare const userSettingsConfigSchema: z.ZodObject<{
    taskSyncEnabled: z.ZodOptional<z.ZodBoolean>;
    llmEnhancedFeaturesEnabled: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    llmEnhancedFeaturesEnabled?: boolean | undefined;
    taskSyncEnabled?: boolean | undefined;
}, {
    llmEnhancedFeaturesEnabled?: boolean | undefined;
    taskSyncEnabled?: boolean | undefined;
}>;
type UserSettingsConfig = z.infer<typeof userSettingsConfigSchema>;
declare const userSettingsDataSchema: z.ZodObject<{
    features: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
    settings: z.ZodObject<{
        taskSyncEnabled: z.ZodOptional<z.ZodBoolean>;
        llmEnhancedFeaturesEnabled: z.ZodOptional<z.ZodBoolean>;
    }, "strip", z.ZodTypeAny, {
        llmEnhancedFeaturesEnabled?: boolean | undefined;
        taskSyncEnabled?: boolean | undefined;
    }, {
        llmEnhancedFeaturesEnabled?: boolean | undefined;
        taskSyncEnabled?: boolean | undefined;
    }>;
    version: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    settings: {
        llmEnhancedFeaturesEnabled?: boolean | undefined;
        taskSyncEnabled?: boolean | undefined;
    };
    version: number;
    features: {};
}, {
    settings: {
        llmEnhancedFeaturesEnabled?: boolean | undefined;
        taskSyncEnabled?: boolean | undefined;
    };
    version: number;
    features: {};
}>;
type UserSettingsData = z.infer<typeof userSettingsDataSchema>;
/**
 * Constants
 */
declare const ORGANIZATION_ALLOW_ALL: OrganizationAllowList;
declare const ORGANIZATION_DEFAULT: OrganizationSettings;
/**
 * ShareVisibility
 */
type ShareVisibility = "organization" | "public";
/**
 * ShareResponse
 */
declare const shareResponseSchema: z.ZodObject<{
    success: z.ZodBoolean;
    shareUrl: z.ZodOptional<z.ZodString>;
    error: z.ZodOptional<z.ZodString>;
    isNewShare: z.ZodOptional<z.ZodBoolean>;
    manageUrl: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    success: boolean;
    error?: string | undefined;
    shareUrl?: string | undefined;
    isNewShare?: boolean | undefined;
    manageUrl?: string | undefined;
}, {
    success: boolean;
    error?: string | undefined;
    shareUrl?: string | undefined;
    isNewShare?: boolean | undefined;
    manageUrl?: string | undefined;
}>;
type ShareResponse = z.infer<typeof shareResponseSchema>;
/**
 * AuthService
 */
type AuthState = "initializing" | "logged-out" | "active-session" | "attempting-session" | "inactive-session";
interface AuthService extends EventEmitter$1<AuthServiceEvents> {
    initialize(): Promise<void>;
    broadcast(): void;
    login(landingPageSlug?: string, useProviderSignup?: boolean): Promise<void>;
    logout(): Promise<void>;
    handleCallback(code: string | null, state: string | null, organizationId?: string | null, providerModel?: string | null): Promise<void>;
    switchOrganization(organizationId: string | null): Promise<void>;
    getState(): AuthState;
    isAuthenticated(): boolean;
    hasActiveSession(): boolean;
    hasOrIsAcquiringActiveSession(): boolean;
    getSessionToken(): string | undefined;
    getUserInfo(): CloudUserInfo | null;
    getStoredOrganizationId(): string | null;
    getOrganizationMemberships(): Promise<CloudOrganizationMembership[]>;
}
/**
 * AuthServiceEvents
 */
interface AuthServiceEvents {
    "auth-state-changed": [
        data: {
            state: AuthState;
            previousState: AuthState;
        }
    ];
    "user-info": [data: {
        userInfo: CloudUserInfo;
    }];
}
/**
 * SettingsService
 */
/**
 * Interface for settings services that provide organization settings
 */
interface SettingsService {
    /**
     * Get the organization allow list
     * @returns The organization allow list or default if none available
     */
    getAllowList(): OrganizationAllowList;
    /**
     * Get the current organization settings
     * @returns The organization settings or undefined if none available
     */
    getSettings(): OrganizationSettings | undefined;
    /**
     * Get the current user settings
     * @returns The user settings data or undefined if none available
     */
    getUserSettings(): UserSettingsData | undefined;
    /**
     * Get the current user features
     * @returns The user features or empty object if none available
     */
    getUserFeatures(): UserFeatures;
    /**
     * Get the current user settings configuration
     * @returns The user settings configuration or empty object if none available
     */
    getUserSettingsConfig(): UserSettingsConfig;
    /**
     * Update user settings with partial configuration
     * @param settings Partial user settings configuration to update
     * @returns Promise that resolves to true if successful, false otherwise
     */
    updateUserSettings(settings: Partial<UserSettingsConfig>): Promise<boolean>;
    /**
     * Determines if task sync/recording is enabled based on organization and user settings
     * Organization settings take precedence over user settings.
     * User settings default to true if unspecified.
     * @returns true if task sync is enabled, false otherwise
     */
    isTaskSyncEnabled(): boolean;
    /**
     * Dispose of the settings service and clean up resources
     */
    dispose(): void;
}
/**
 * SettingsServiceEvents
 */
interface SettingsServiceEvents {
    "settings-updated": [data: Record<string, never>];
}
/**
 * CloudServiceEvents
 */
type CloudServiceEvents = AuthServiceEvents & SettingsServiceEvents;
/**
 * ConnectionState
 */
declare enum ConnectionState {
    DISCONNECTED = "disconnected",
    CONNECTING = "connecting",
    CONNECTED = "connected",
    RETRYING = "retrying",
    FAILED = "failed"
}
/**
 * RetryConfig
 */
interface RetryConfig {
    maxInitialAttempts: number;
    initialDelay: number;
    maxDelay: number;
    backoffMultiplier: number;
}
/**
 * Constants
 */
declare const HEARTBEAT_INTERVAL_MS = 20000;
declare const INSTANCE_TTL_SECONDS = 60;
/**
 * ExtensionTask
 */
declare const extensionTaskSchema: z.ZodObject<{
    task: z.ZodOptional<z.ZodString>;
    images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    taskId: z.ZodString;
    taskStatus: z.ZodNativeEnum<typeof TaskStatus>;
    taskAsk: z.ZodOptional<z.ZodObject<{
        ts: z.ZodNumber;
        type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
        ask: z.ZodOptional<z.ZodEnum<["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"]>>;
        say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"]>>;
        text: z.ZodOptional<z.ZodString>;
        subtaskId: z.ZodOptional<z.ZodString>;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        partial: z.ZodOptional<z.ZodBoolean>;
        reasoning: z.ZodOptional<z.ZodString>;
        conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
        checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        progressStatus: z.ZodOptional<z.ZodObject<{
            icon: z.ZodOptional<z.ZodString>;
            text: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            icon?: string | undefined;
        }, {
            text?: string | undefined;
            icon?: string | undefined;
        }>>;
        contextCondense: z.ZodOptional<z.ZodObject<{
            cost: z.ZodNumber;
            prevContextTokens: z.ZodNumber;
            newContextTokens: z.ZodNumber;
            summary: z.ZodString;
            condenseId: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        }, {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        }>>;
        contextTruncation: z.ZodOptional<z.ZodObject<{
            truncationId: z.ZodString;
            messagesRemoved: z.ZodNumber;
            prevContextTokens: z.ZodNumber;
            newContextTokens: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        }, {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        }>>;
        isProtected: z.ZodOptional<z.ZodBoolean>;
        apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
        isAnswered: z.ZodOptional<z.ZodBoolean>;
        userResponse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        metadata: z.ZodOptional<z.ZodObject<{
            isRateLimit: z.ZodOptional<z.ZodBoolean>;
            isRateLimitRetry: z.ZodOptional<z.ZodBoolean>;
            gpt5: z.ZodOptional<z.ZodObject<{
                previous_response_id: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                previous_response_id?: string | undefined;
            }, {
                previous_response_id?: string | undefined;
            }>>;
        }, "strip", z.ZodTypeAny, {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        }, {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        }>>;
    }, "strip", z.ZodTypeAny, {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    }, {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    }>>;
    queuedMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
        timestamp: z.ZodNumber;
        id: z.ZodString;
        text: z.ZodString;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    }, "strip", z.ZodTypeAny, {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }, {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }>, "many">>;
    parentTaskId: z.ZodOptional<z.ZodString>;
    childTaskId: z.ZodOptional<z.ZodString>;
    tokenUsage: z.ZodOptional<z.ZodObject<{
        totalTokensIn: z.ZodNumber;
        totalTokensOut: z.ZodNumber;
        totalCacheWrites: z.ZodOptional<z.ZodNumber>;
        totalCacheReads: z.ZodOptional<z.ZodNumber>;
        totalCost: z.ZodNumber;
        contextTokens: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }, {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    }>>;
}, "strip", z.ZodTypeAny, {
    taskId: string;
    taskStatus: TaskStatus;
    images?: string[] | undefined;
    parentTaskId?: string | undefined;
    task?: string | undefined;
    taskAsk?: {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    } | undefined;
    queuedMessages?: {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }[] | undefined;
    childTaskId?: string | undefined;
    tokenUsage?: {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    } | undefined;
}, {
    taskId: string;
    taskStatus: TaskStatus;
    images?: string[] | undefined;
    parentTaskId?: string | undefined;
    task?: string | undefined;
    taskAsk?: {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    } | undefined;
    queuedMessages?: {
        text: string;
        timestamp: number;
        id: string;
        images?: string[] | undefined;
    }[] | undefined;
    childTaskId?: string | undefined;
    tokenUsage?: {
        totalTokensIn: number;
        totalTokensOut: number;
        totalCost: number;
        contextTokens: number;
        totalCacheWrites?: number | undefined;
        totalCacheReads?: number | undefined;
    } | undefined;
}>;
type ExtensionTask = z.infer<typeof extensionTaskSchema>;
/**
 * ExtensionInstance
 */
declare const extensionInstanceSchema: z.ZodObject<{
    instanceId: z.ZodString;
    userId: z.ZodString;
    workspacePath: z.ZodString;
    appProperties: z.ZodObject<{
        appName: z.ZodString;
        appVersion: z.ZodString;
        vscodeVersion: z.ZodString;
        platform: z.ZodString;
        editorName: z.ZodString;
        hostname: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        hostname?: string | undefined;
    }, {
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        hostname?: string | undefined;
    }>;
    gitProperties: z.ZodOptional<z.ZodObject<{
        repositoryUrl: z.ZodOptional<z.ZodString>;
        repositoryName: z.ZodOptional<z.ZodString>;
        defaultBranch: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    }, {
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    }>>;
    lastHeartbeat: z.ZodNumber;
    task: z.ZodObject<{
        task: z.ZodOptional<z.ZodString>;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        taskId: z.ZodString;
        taskStatus: z.ZodNativeEnum<typeof TaskStatus>;
        taskAsk: z.ZodOptional<z.ZodObject<{
            ts: z.ZodNumber;
            type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
            ask: z.ZodOptional<z.ZodEnum<["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"]>>;
            say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"]>>;
            text: z.ZodOptional<z.ZodString>;
            subtaskId: z.ZodOptional<z.ZodString>;
            images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
            partial: z.ZodOptional<z.ZodBoolean>;
            reasoning: z.ZodOptional<z.ZodString>;
            conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
            checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            progressStatus: z.ZodOptional<z.ZodObject<{
                icon: z.ZodOptional<z.ZodString>;
                text: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                text?: string | undefined;
                icon?: string | undefined;
            }, {
                text?: string | undefined;
                icon?: string | undefined;
            }>>;
            contextCondense: z.ZodOptional<z.ZodObject<{
                cost: z.ZodNumber;
                prevContextTokens: z.ZodNumber;
                newContextTokens: z.ZodNumber;
                summary: z.ZodString;
                condenseId: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            }, {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            }>>;
            contextTruncation: z.ZodOptional<z.ZodObject<{
                truncationId: z.ZodString;
                messagesRemoved: z.ZodNumber;
                prevContextTokens: z.ZodNumber;
                newContextTokens: z.ZodNumber;
            }, "strip", z.ZodTypeAny, {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            }, {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            }>>;
            isProtected: z.ZodOptional<z.ZodBoolean>;
            apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
            isAnswered: z.ZodOptional<z.ZodBoolean>;
            userResponse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            metadata: z.ZodOptional<z.ZodObject<{
                isRateLimit: z.ZodOptional<z.ZodBoolean>;
                isRateLimitRetry: z.ZodOptional<z.ZodBoolean>;
                gpt5: z.ZodOptional<z.ZodObject<{
                    previous_response_id: z.ZodOptional<z.ZodString>;
                }, "strip", z.ZodTypeAny, {
                    previous_response_id?: string | undefined;
                }, {
                    previous_response_id?: string | undefined;
                }>>;
            }, "strip", z.ZodTypeAny, {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            }, {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            }>>;
        }, "strip", z.ZodTypeAny, {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        }, {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        }>>;
        queuedMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
            timestamp: z.ZodNumber;
            id: z.ZodString;
            text: z.ZodString;
            images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        }, "strip", z.ZodTypeAny, {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }, {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }>, "many">>;
        parentTaskId: z.ZodOptional<z.ZodString>;
        childTaskId: z.ZodOptional<z.ZodString>;
        tokenUsage: z.ZodOptional<z.ZodObject<{
            totalTokensIn: z.ZodNumber;
            totalTokensOut: z.ZodNumber;
            totalCacheWrites: z.ZodOptional<z.ZodNumber>;
            totalCacheReads: z.ZodOptional<z.ZodNumber>;
            totalCost: z.ZodNumber;
            contextTokens: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }, {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        }>>;
    }, "strip", z.ZodTypeAny, {
        taskId: string;
        taskStatus: TaskStatus;
        images?: string[] | undefined;
        parentTaskId?: string | undefined;
        task?: string | undefined;
        taskAsk?: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        } | undefined;
        queuedMessages?: {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }[] | undefined;
        childTaskId?: string | undefined;
        tokenUsage?: {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        } | undefined;
    }, {
        taskId: string;
        taskStatus: TaskStatus;
        images?: string[] | undefined;
        parentTaskId?: string | undefined;
        task?: string | undefined;
        taskAsk?: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        } | undefined;
        queuedMessages?: {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }[] | undefined;
        childTaskId?: string | undefined;
        tokenUsage?: {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        } | undefined;
    }>;
    taskAsk: z.ZodOptional<z.ZodObject<{
        ts: z.ZodNumber;
        type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
        ask: z.ZodOptional<z.ZodEnum<["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"]>>;
        say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"]>>;
        text: z.ZodOptional<z.ZodString>;
        subtaskId: z.ZodOptional<z.ZodString>;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        partial: z.ZodOptional<z.ZodBoolean>;
        reasoning: z.ZodOptional<z.ZodString>;
        conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
        checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        progressStatus: z.ZodOptional<z.ZodObject<{
            icon: z.ZodOptional<z.ZodString>;
            text: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            icon?: string | undefined;
        }, {
            text?: string | undefined;
            icon?: string | undefined;
        }>>;
        contextCondense: z.ZodOptional<z.ZodObject<{
            cost: z.ZodNumber;
            prevContextTokens: z.ZodNumber;
            newContextTokens: z.ZodNumber;
            summary: z.ZodString;
            condenseId: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        }, {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        }>>;
        contextTruncation: z.ZodOptional<z.ZodObject<{
            truncationId: z.ZodString;
            messagesRemoved: z.ZodNumber;
            prevContextTokens: z.ZodNumber;
            newContextTokens: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        }, {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        }>>;
        isProtected: z.ZodOptional<z.ZodBoolean>;
        apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
        isAnswered: z.ZodOptional<z.ZodBoolean>;
        userResponse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        metadata: z.ZodOptional<z.ZodObject<{
            isRateLimit: z.ZodOptional<z.ZodBoolean>;
            isRateLimitRetry: z.ZodOptional<z.ZodBoolean>;
            gpt5: z.ZodOptional<z.ZodObject<{
                previous_response_id: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                previous_response_id?: string | undefined;
            }, {
                previous_response_id?: string | undefined;
            }>>;
        }, "strip", z.ZodTypeAny, {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        }, {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        }>>;
    }, "strip", z.ZodTypeAny, {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    }, {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    }>>;
    taskHistory: z.ZodArray<z.ZodString, "many">;
    mode: z.ZodOptional<z.ZodString>;
    modes: z.ZodOptional<z.ZodArray<z.ZodObject<{
        slug: z.ZodString;
        name: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        name: string;
        slug: string;
    }, {
        name: string;
        slug: string;
    }>, "many">>;
    providerProfile: z.ZodOptional<z.ZodString>;
    providerProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        provider: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        provider?: string | undefined;
    }, {
        name: string;
        provider?: string | undefined;
    }>, "many">>;
    isCloudAgent: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    task: {
        taskId: string;
        taskStatus: TaskStatus;
        images?: string[] | undefined;
        parentTaskId?: string | undefined;
        task?: string | undefined;
        taskAsk?: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        } | undefined;
        queuedMessages?: {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }[] | undefined;
        childTaskId?: string | undefined;
        tokenUsage?: {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        } | undefined;
    };
    taskHistory: string[];
    instanceId: string;
    userId: string;
    workspacePath: string;
    appProperties: {
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        hostname?: string | undefined;
    };
    lastHeartbeat: number;
    modes?: {
        name: string;
        slug: string;
    }[] | undefined;
    mode?: string | undefined;
    providerProfiles?: {
        name: string;
        provider?: string | undefined;
    }[] | undefined;
    taskAsk?: {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    } | undefined;
    gitProperties?: {
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    } | undefined;
    providerProfile?: string | undefined;
    isCloudAgent?: boolean | undefined;
}, {
    task: {
        taskId: string;
        taskStatus: TaskStatus;
        images?: string[] | undefined;
        parentTaskId?: string | undefined;
        task?: string | undefined;
        taskAsk?: {
            type: "ask" | "say";
            ts: number;
            text?: string | undefined;
            reasoning?: string | undefined;
            ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
            say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
            subtaskId?: string | undefined;
            images?: string[] | undefined;
            partial?: boolean | undefined;
            conversationHistoryIndex?: number | undefined;
            checkpoint?: Record<string, unknown> | undefined;
            progressStatus?: {
                text?: string | undefined;
                icon?: string | undefined;
            } | undefined;
            contextCondense?: {
                cost: number;
                prevContextTokens: number;
                newContextTokens: number;
                summary: string;
                condenseId?: string | undefined;
            } | undefined;
            contextTruncation?: {
                prevContextTokens: number;
                newContextTokens: number;
                truncationId: string;
                messagesRemoved: number;
            } | undefined;
            isProtected?: boolean | undefined;
            apiProtocol?: "openai" | "anthropic" | undefined;
            isAnswered?: boolean | undefined;
            userResponse?: Record<string, unknown> | undefined;
            metadata?: {
                isRateLimit?: boolean | undefined;
                isRateLimitRetry?: boolean | undefined;
                gpt5?: {
                    previous_response_id?: string | undefined;
                } | undefined;
            } | undefined;
        } | undefined;
        queuedMessages?: {
            text: string;
            timestamp: number;
            id: string;
            images?: string[] | undefined;
        }[] | undefined;
        childTaskId?: string | undefined;
        tokenUsage?: {
            totalTokensIn: number;
            totalTokensOut: number;
            totalCost: number;
            contextTokens: number;
            totalCacheWrites?: number | undefined;
            totalCacheReads?: number | undefined;
        } | undefined;
    };
    taskHistory: string[];
    instanceId: string;
    userId: string;
    workspacePath: string;
    appProperties: {
        appName: string;
        appVersion: string;
        vscodeVersion: string;
        platform: string;
        editorName: string;
        hostname?: string | undefined;
    };
    lastHeartbeat: number;
    modes?: {
        name: string;
        slug: string;
    }[] | undefined;
    mode?: string | undefined;
    providerProfiles?: {
        name: string;
        provider?: string | undefined;
    }[] | undefined;
    taskAsk?: {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    } | undefined;
    gitProperties?: {
        repositoryUrl?: string | undefined;
        repositoryName?: string | undefined;
        defaultBranch?: string | undefined;
    } | undefined;
    providerProfile?: string | undefined;
    isCloudAgent?: boolean | undefined;
}>;
type ExtensionInstance = z.infer<typeof extensionInstanceSchema>;
/**
 * TaskBridgeEvent
 */
declare enum TaskBridgeEventName {
    Message = "message",
    TaskModeSwitched = "taskModeSwitched",
    TaskInteractive = "taskInteractive"
}
declare const taskBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
    type: z.ZodLiteral<TaskBridgeEventName.Message>;
    taskId: z.ZodString;
    action: z.ZodString;
    message: z.ZodObject<{
        ts: z.ZodNumber;
        type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
        ask: z.ZodOptional<z.ZodEnum<["followup", "multiple_choice", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "use_mcp_server", "auto_approval_max_req_reached"]>>;
        say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_rate_limit_wait", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "auto_switch_model", "diff_error", "condense_context", "condense_context_error", "sliding_window_truncation", "codebase_search_result", "user_edit_todos", "too_many_tools_warning", "tool"]>>;
        text: z.ZodOptional<z.ZodString>;
        subtaskId: z.ZodOptional<z.ZodString>;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        partial: z.ZodOptional<z.ZodBoolean>;
        reasoning: z.ZodOptional<z.ZodString>;
        conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
        checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        progressStatus: z.ZodOptional<z.ZodObject<{
            icon: z.ZodOptional<z.ZodString>;
            text: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            text?: string | undefined;
            icon?: string | undefined;
        }, {
            text?: string | undefined;
            icon?: string | undefined;
        }>>;
        contextCondense: z.ZodOptional<z.ZodObject<{
            cost: z.ZodNumber;
            prevContextTokens: z.ZodNumber;
            newContextTokens: z.ZodNumber;
            summary: z.ZodString;
            condenseId: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        }, {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        }>>;
        contextTruncation: z.ZodOptional<z.ZodObject<{
            truncationId: z.ZodString;
            messagesRemoved: z.ZodNumber;
            prevContextTokens: z.ZodNumber;
            newContextTokens: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        }, {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        }>>;
        isProtected: z.ZodOptional<z.ZodBoolean>;
        apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
        isAnswered: z.ZodOptional<z.ZodBoolean>;
        userResponse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        metadata: z.ZodOptional<z.ZodObject<{
            isRateLimit: z.ZodOptional<z.ZodBoolean>;
            isRateLimitRetry: z.ZodOptional<z.ZodBoolean>;
            gpt5: z.ZodOptional<z.ZodObject<{
                previous_response_id: z.ZodOptional<z.ZodString>;
            }, "strip", z.ZodTypeAny, {
                previous_response_id?: string | undefined;
            }, {
                previous_response_id?: string | undefined;
            }>>;
        }, "strip", z.ZodTypeAny, {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        }, {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        }>>;
    }, "strip", z.ZodTypeAny, {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    }, {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    }>;
}, "strip", z.ZodTypeAny, {
    message: {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    };
    type: TaskBridgeEventName.Message;
    taskId: string;
    action: string;
}, {
    message: {
        type: "ask" | "say";
        ts: number;
        text?: string | undefined;
        reasoning?: string | undefined;
        ask?: "followup" | "multiple_choice" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
        say?: "command_output" | "completion_result" | "tool" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_rate_limit_wait" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "auto_switch_model" | "diff_error" | "condense_context" | "condense_context_error" | "sliding_window_truncation" | "codebase_search_result" | "user_edit_todos" | "too_many_tools_warning" | undefined;
        subtaskId?: string | undefined;
        images?: string[] | undefined;
        partial?: boolean | undefined;
        conversationHistoryIndex?: number | undefined;
        checkpoint?: Record<string, unknown> | undefined;
        progressStatus?: {
            text?: string | undefined;
            icon?: string | undefined;
        } | undefined;
        contextCondense?: {
            cost: number;
            prevContextTokens: number;
            newContextTokens: number;
            summary: string;
            condenseId?: string | undefined;
        } | undefined;
        contextTruncation?: {
            prevContextTokens: number;
            newContextTokens: number;
            truncationId: string;
            messagesRemoved: number;
        } | undefined;
        isProtected?: boolean | undefined;
        apiProtocol?: "openai" | "anthropic" | undefined;
        isAnswered?: boolean | undefined;
        userResponse?: Record<string, unknown> | undefined;
        metadata?: {
            isRateLimit?: boolean | undefined;
            isRateLimitRetry?: boolean | undefined;
            gpt5?: {
                previous_response_id?: string | undefined;
            } | undefined;
        } | undefined;
    };
    type: TaskBridgeEventName.Message;
    taskId: string;
    action: string;
}>, z.ZodObject<{
    type: z.ZodLiteral<TaskBridgeEventName.TaskModeSwitched>;
    taskId: z.ZodString;
    mode: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: TaskBridgeEventName.TaskModeSwitched;
    taskId: string;
    mode: string;
}, {
    type: TaskBridgeEventName.TaskModeSwitched;
    taskId: string;
    mode: string;
}>, z.ZodObject<{
    type: z.ZodLiteral<TaskBridgeEventName.TaskInteractive>;
    taskId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: TaskBridgeEventName.TaskInteractive;
    taskId: string;
}, {
    type: TaskBridgeEventName.TaskInteractive;
    taskId: string;
}>]>;
type TaskBridgeEvent = z.infer<typeof taskBridgeEventSchema>;
/**
 * TaskBridgeCommand
 */
declare enum TaskBridgeCommandName {
    Message = "message",
    ApproveAsk = "approve_ask",
    DenyAsk = "deny_ask"
}
declare const taskBridgeCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
    type: z.ZodLiteral<TaskBridgeCommandName.Message>;
    taskId: z.ZodString;
    payload: z.ZodObject<{
        text: z.ZodString;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        mode: z.ZodOptional<z.ZodString>;
        providerProfile: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        text: string;
        images?: string[] | undefined;
        mode?: string | undefined;
        providerProfile?: string | undefined;
    }, {
        text: string;
        images?: string[] | undefined;
        mode?: string | undefined;
        providerProfile?: string | undefined;
    }>;
    timestamp: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    type: TaskBridgeCommandName.Message;
    timestamp: number;
    taskId: string;
    payload: {
        text: string;
        images?: string[] | undefined;
        mode?: string | undefined;
        providerProfile?: string | undefined;
    };
}, {
    type: TaskBridgeCommandName.Message;
    timestamp: number;
    taskId: string;
    payload: {
        text: string;
        images?: string[] | undefined;
        mode?: string | undefined;
        providerProfile?: string | undefined;
    };
}>, z.ZodObject<{
    type: z.ZodLiteral<TaskBridgeCommandName.ApproveAsk>;
    taskId: z.ZodString;
    payload: z.ZodObject<{
        text: z.ZodOptional<z.ZodString>;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    }, "strip", z.ZodTypeAny, {
        text?: string | undefined;
        images?: string[] | undefined;
    }, {
        text?: string | undefined;
        images?: string[] | undefined;
    }>;
    timestamp: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    type: TaskBridgeCommandName.ApproveAsk;
    timestamp: number;
    taskId: string;
    payload: {
        text?: string | undefined;
        images?: string[] | undefined;
    };
}, {
    type: TaskBridgeCommandName.ApproveAsk;
    timestamp: number;
    taskId: string;
    payload: {
        text?: string | undefined;
        images?: string[] | undefined;
    };
}>, z.ZodObject<{
    type: z.ZodLiteral<TaskBridgeCommandName.DenyAsk>;
    taskId: z.ZodString;
    payload: z.ZodObject<{
        text: z.ZodOptional<z.ZodString>;
        images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    }, "strip", z.ZodTypeAny, {
        text?: string | undefined;
        images?: string[] | undefined;
    }, {
        text?: string | undefined;
        images?: string[] | undefined;
    }>;
    timestamp: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    type: TaskBridgeCommandName.DenyAsk;
    timestamp: number;
    taskId: string;
    payload: {
        text?: string | undefined;
        images?: string[] | undefined;
    };
}, {
    type: TaskBridgeCommandName.DenyAsk;
    timestamp: number;
    taskId: string;
    payload: {
        text?: string | undefined;
        images?: string[] | undefined;
    };
}>]>;
type TaskBridgeCommand = z.infer<typeof taskBridgeCommandSchema>;
/**
 * ExtensionSocketEvents
 */
declare enum ExtensionSocketEvents {
    CONNECTED = "extension:connected",
    REGISTER = "extension:register",
    UNREGISTER = "extension:unregister",
    HEARTBEAT = "extension:heartbeat",
    EVENT = "extension:event",// event from extension instance
    RELAYED_EVENT = "extension:relayed_event",// relay from server
    COMMAND = "extension:command",// command from user
    RELAYED_COMMAND = "extension:relayed_command"
}
/**
 * TaskSocketEvents
 */
declare enum TaskSocketEvents {
    JOIN = "task:join",
    LEAVE = "task:leave",
    EVENT = "task:event",// event from extension task
    RELAYED_EVENT = "task:relayed_event",// relay from server
    COMMAND = "task:command",// command from user
    RELAYED_COMMAND = "task:relayed_command"
}
/**
 * `emit()` Response Types
 */
type JoinResponse = {
    success: boolean;
    error?: string;
    taskId?: string;
    timestamp?: string;
};
type LeaveResponse = {
    success: boolean;
    taskId?: string;
    timestamp?: string;
};
/**
 * UsageStats
 */
declare const usageStatsSchema: z.ZodObject<{
    success: z.ZodBoolean;
    data: z.ZodObject<{
        dates: z.ZodArray<z.ZodString, "many">;
        tasks: z.ZodArray<z.ZodNumber, "many">;
        tokens: z.ZodArray<z.ZodNumber, "many">;
        costs: z.ZodArray<z.ZodNumber, "many">;
        totals: z.ZodObject<{
            tasks: z.ZodNumber;
            tokens: z.ZodNumber;
            cost: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            cost: number;
            tasks: number;
            tokens: number;
        }, {
            cost: number;
            tasks: number;
            tokens: number;
        }>;
    }, "strip", z.ZodTypeAny, {
        dates: string[];
        tasks: number[];
        tokens: number[];
        costs: number[];
        totals: {
            cost: number;
            tasks: number;
            tokens: number;
        };
    }, {
        dates: string[];
        tasks: number[];
        tokens: number[];
        costs: number[];
        totals: {
            cost: number;
            tasks: number;
            tokens: number;
        };
    }>;
    period: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    data: {
        dates: string[];
        tasks: number[];
        tokens: number[];
        costs: number[];
        totals: {
            cost: number;
            tasks: number;
            tokens: number;
        };
    };
    success: boolean;
    period: number;
}, {
    data: {
        dates: string[];
        tasks: number[];
        tokens: number[];
        costs: number[];
        totals: {
            cost: number;
            tasks: number;
            tokens: number;
        };
    };
    success: boolean;
    period: number;
}>;
type UsageStats = z.infer<typeof usageStatsSchema>;

/**
 * Codebase Index Constants
 */
declare const CODEBASE_INDEX_DEFAULTS: {
    readonly MIN_SEARCH_RESULTS: 10;
    readonly MAX_SEARCH_RESULTS: 200;
    readonly DEFAULT_SEARCH_RESULTS: 50;
    readonly SEARCH_RESULTS_STEP: 10;
    readonly MIN_SEARCH_SCORE: 0;
    readonly MAX_SEARCH_SCORE: 1;
    readonly DEFAULT_SEARCH_MIN_SCORE: 0.4;
    readonly SEARCH_SCORE_STEP: 0.05;
};
/**
 * CodebaseIndexConfig
 */
declare const codebaseIndexConfigSchema: z.ZodObject<{
    codebaseIndexEnabled: z.ZodOptional<z.ZodBoolean>;
    codebaseIndexQdrantUrl: z.ZodOptional<z.ZodString>;
    codebaseIndexEmbedderProvider: z.ZodOptional<z.ZodEnum<["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway", "bedrock", "openrouter"]>>;
    codebaseIndexEmbedderBaseUrl: z.ZodOptional<z.ZodString>;
    codebaseIndexEmbedderModelId: z.ZodOptional<z.ZodString>;
    codebaseIndexEmbedderModelDimension: z.ZodOptional<z.ZodNumber>;
    codebaseIndexSearchMinScore: z.ZodOptional<z.ZodNumber>;
    codebaseIndexSearchMaxResults: z.ZodOptional<z.ZodNumber>;
    codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
    codebaseIndexBedrockRegion: z.ZodOptional<z.ZodString>;
    codebaseIndexBedrockProfile: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenRouterSpecificProvider: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    codebaseIndexEnabled?: boolean | undefined;
    codebaseIndexQdrantUrl?: string | undefined;
    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
    codebaseIndexEmbedderBaseUrl?: string | undefined;
    codebaseIndexEmbedderModelId?: string | undefined;
    codebaseIndexEmbedderModelDimension?: number | undefined;
    codebaseIndexSearchMinScore?: number | undefined;
    codebaseIndexSearchMaxResults?: number | undefined;
    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
    codebaseIndexBedrockRegion?: string | undefined;
    codebaseIndexBedrockProfile?: string | undefined;
    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
}, {
    codebaseIndexEnabled?: boolean | undefined;
    codebaseIndexQdrantUrl?: string | undefined;
    codebaseIndexEmbedderProvider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | undefined;
    codebaseIndexEmbedderBaseUrl?: string | undefined;
    codebaseIndexEmbedderModelId?: string | undefined;
    codebaseIndexEmbedderModelDimension?: number | undefined;
    codebaseIndexSearchMinScore?: number | undefined;
    codebaseIndexSearchMaxResults?: number | undefined;
    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
    codebaseIndexBedrockRegion?: string | undefined;
    codebaseIndexBedrockProfile?: string | undefined;
    codebaseIndexOpenRouterSpecificProvider?: string | undefined;
}>;
type CodebaseIndexConfig = z.infer<typeof codebaseIndexConfigSchema>;
/**
 * CodebaseIndexModels
 */
declare const codebaseIndexModelsSchema: z.ZodObject<{
    openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        dimension: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        dimension: number;
    }, {
        dimension: number;
    }>>>;
    ollama: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        dimension: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        dimension: number;
    }, {
        dimension: number;
    }>>>;
    "openai-compatible": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        dimension: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        dimension: number;
    }, {
        dimension: number;
    }>>>;
    gemini: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        dimension: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        dimension: number;
    }, {
        dimension: number;
    }>>>;
    mistral: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        dimension: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        dimension: number;
    }, {
        dimension: number;
    }>>>;
    "vercel-ai-gateway": z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        dimension: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        dimension: number;
    }, {
        dimension: number;
    }>>>;
    openrouter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        dimension: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        dimension: number;
    }, {
        dimension: number;
    }>>>;
    bedrock: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        dimension: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        dimension: number;
    }, {
        dimension: number;
    }>>>;
}, "strip", z.ZodTypeAny, {
    openai?: Record<string, {
        dimension: number;
    }> | undefined;
    ollama?: Record<string, {
        dimension: number;
    }> | undefined;
    "openai-compatible"?: Record<string, {
        dimension: number;
    }> | undefined;
    gemini?: Record<string, {
        dimension: number;
    }> | undefined;
    mistral?: Record<string, {
        dimension: number;
    }> | undefined;
    "vercel-ai-gateway"?: Record<string, {
        dimension: number;
    }> | undefined;
    bedrock?: Record<string, {
        dimension: number;
    }> | undefined;
    openrouter?: Record<string, {
        dimension: number;
    }> | undefined;
}, {
    openai?: Record<string, {
        dimension: number;
    }> | undefined;
    ollama?: Record<string, {
        dimension: number;
    }> | undefined;
    "openai-compatible"?: Record<string, {
        dimension: number;
    }> | undefined;
    gemini?: Record<string, {
        dimension: number;
    }> | undefined;
    mistral?: Record<string, {
        dimension: number;
    }> | undefined;
    "vercel-ai-gateway"?: Record<string, {
        dimension: number;
    }> | undefined;
    bedrock?: Record<string, {
        dimension: number;
    }> | undefined;
    openrouter?: Record<string, {
        dimension: number;
    }> | undefined;
}>;
type CodebaseIndexModels = z.infer<typeof codebaseIndexModelsSchema>;
/**
 * CdebaseIndexProvider
 */
declare const codebaseIndexProviderSchema: z.ZodObject<{
    codeIndexOpenAiKey: z.ZodOptional<z.ZodString>;
    codeIndexQdrantApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleBaseUrl: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenAiCompatibleModelDimension: z.ZodOptional<z.ZodNumber>;
    codebaseIndexGeminiApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexMistralApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexVercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
    codebaseIndexOpenRouterApiKey: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
    codeIndexOpenAiKey?: string | undefined;
    codeIndexQdrantApiKey?: string | undefined;
    codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
    codebaseIndexGeminiApiKey?: string | undefined;
    codebaseIndexMistralApiKey?: string | undefined;
    codebaseIndexVercelAiGatewayApiKey?: string | undefined;
    codebaseIndexOpenRouterApiKey?: string | undefined;
}, {
    codebaseIndexOpenAiCompatibleBaseUrl?: string | undefined;
    codebaseIndexOpenAiCompatibleModelDimension?: number | undefined;
    codeIndexOpenAiKey?: string | undefined;
    codeIndexQdrantApiKey?: string | undefined;
    codebaseIndexOpenAiCompatibleApiKey?: string | undefined;
    codebaseIndexGeminiApiKey?: string | undefined;
    codebaseIndexMistralApiKey?: string | undefined;
    codebaseIndexVercelAiGatewayApiKey?: string | undefined;
    codebaseIndexOpenRouterApiKey?: string | undefined;
}>;
type CodebaseIndexProvider = z.infer<typeof codebaseIndexProviderSchema>;

/**
 * Context Management Types
 *
 * This module provides type definitions for context management events.
 * These events are used to handle different strategies for managing conversation context
 * when approaching token limits.
 *
 * Event Types:
 * - `condense_context`: Context was condensed using AI summarization
 * - `condense_context_error`: An error occurred during context condensation
 * - `sliding_window_truncation`: Context was truncated using sliding window strategy
 */
/**
 * Array of all context management event types.
 * Used for runtime type checking.
 */
declare const CONTEXT_MANAGEMENT_EVENTS: readonly ["condense_context", "condense_context_error", "sliding_window_truncation"];
/**
 * Union type representing all possible context management event types.
 */
type ContextManagementEvent = (typeof CONTEXT_MANAGEMENT_EVENTS)[number];
/**
 * Type guard function to check if a value is a valid context management event.
 */
declare function isContextManagementEvent(value: unknown): value is ContextManagementEvent;

/**
 * Cookie consent constants and types
 * Shared across all Roo Code repositories
 */
/**
 * The name of the cookie that stores user's consent preference
 * Used by react-cookie-consent library
 */
declare const CONSENT_COOKIE_NAME = "costrict-cookie-consent";
/**
 * Possible values for the consent cookie
 */
type ConsentCookieValue = "true" | "false";
/**
 * Cookie consent event names for communication between components
 */
declare const COOKIE_CONSENT_EVENTS: {
    readonly CHANGED: "cookieConsentChanged";
};

type CustomToolParametersSchema = ZodType;
type SerializedCustomToolParameters = z$1.core.JSONSchema.JSONSchema;
/**
 * Context provided to tool execute functions.
 */
interface CustomToolContext {
    mode: string;
    task: TaskLike;
}
/**
 * Definition structure for a custom tool.
 *
 * Note: This interface uses simple types to avoid TypeScript performance issues
 * with Zod's complex type inference. For type-safe parameter inference, use
 * the `defineCustomTool` helper function instead of annotating with this interface.
 */
interface CustomToolDefinition {
    /**
     * The name of the tool.
     * This is used to identify the tool in the prompt and in the tool registry.
     */
    name: string;
    /**
     * A description of what the tool does.
     * This is shown to the AI model to help it decide when to use the tool.
     */
    description: string;
    /**
     * Optional Zod schema defining the tool's parameters.
     * Use `z.object({})` to define the shape of arguments.
     */
    parameters?: CustomToolParametersSchema;
    /**
     * The function that executes the tool.
     *
     * @param args - The validated arguments
     * @param context - Execution context with session and message info
     * @returns A string result to return to the AI
     */
    execute: (args: any, context: CustomToolContext) => Promise<string>;
}
interface SerializedCustomToolDefinition {
    name: string;
    description: string;
    parameters?: SerializedCustomToolParameters;
    source?: string;
}
/**
 * Type-safe definition structure for a custom tool with inferred parameter types.
 * Use this with `defineCustomTool` for full type inference.
 *
 * @template T - The Zod schema type for parameters
 */
interface TypedCustomToolDefinition<T extends CustomToolParametersSchema> extends Omit<CustomToolDefinition, "execute" | "parameters"> {
    parameters?: T;
    execute: (args: z$1.infer<T>, context: CustomToolContext) => Promise<string>;
}
/**
 * Helper function to define a custom tool with proper type inference.
 *
 * This is optional - you can also just export a plain object that matches
 * the CustomToolDefinition interface.
 *
 * @example
 * ```ts
 * import { parametersSchema as z, defineCustomTool } from "@roo-code/types"
 *
 * export default defineCustomTool({
 *   name: "add_numbers",
 *   description: "Add two numbers",
 *   parameters: z.object({
 *     a: z.number().describe("First number"),
 *     b: z.number().describe("Second number"),
 *   }),
 *   async execute({ a, b }) {
 *     return `The sum is ${a + b}`
 *   }
 * })
 * ```
 */
declare function defineCustomTool<T extends CustomToolParametersSchema>(definition: TypedCustomToolDefinition<T>): TypedCustomToolDefinition<T>;

type EmbedderProvider = "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter";
interface EmbeddingModelProfile {
    dimension: number;
    scoreThreshold?: number;
    queryPrefix?: string;
}
type EmbeddingModelProfiles = {
    [provider in EmbedderProvider]?: {
        [modelId: string]: EmbeddingModelProfile;
    };
};

/**
 * ExperimentId
 */
declare const experimentIds: readonly ["preventFocusDisruption", "imageGeneration", "runSlashCommand", "customTools", "chatSearch", "commitReview", "useKPTtree", "useLitePrompts", "smartMistakeDetection"];
declare const experimentIdsSchema: z.ZodEnum<["preventFocusDisruption", "imageGeneration", "runSlashCommand", "customTools", "chatSearch", "commitReview", "useKPTtree", "useLitePrompts", "smartMistakeDetection"]>;
type ExperimentId = z.infer<typeof experimentIdsSchema>;
/**
 * Experiments
 */
/**
 * Smart mistake detection configuration
 */
declare const smartMistakeDetectionConfigSchema: z.ZodObject<{
    autoSwitchModel: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    autoSwitchModel?: boolean | undefined;
}, {
    autoSwitchModel?: boolean | undefined;
}>;
type SmartMistakeDetectionConfig = z.infer<typeof smartMistakeDetectionConfigSchema>;
declare const experimentsSchema: z.ZodObject<{
    chatSearch: z.ZodOptional<z.ZodBoolean>;
    useKPTtree: z.ZodOptional<z.ZodBoolean>;
    commitReview: z.ZodOptional<z.ZodBoolean>;
    useLitePrompts: z.ZodOptional<z.ZodBoolean>;
    preventFocusDisruption: z.ZodOptional<z.ZodBoolean>;
    imageGeneration: z.ZodOptional<z.ZodBoolean>;
    runSlashCommand: z.ZodOptional<z.ZodBoolean>;
    customTools: z.ZodOptional<z.ZodBoolean>;
    smartMistakeDetection: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    preventFocusDisruption?: boolean | undefined;
    imageGeneration?: boolean | undefined;
    runSlashCommand?: boolean | undefined;
    customTools?: boolean | undefined;
    chatSearch?: boolean | undefined;
    commitReview?: boolean | undefined;
    useKPTtree?: boolean | undefined;
    useLitePrompts?: boolean | undefined;
    smartMistakeDetection?: boolean | undefined;
}, {
    preventFocusDisruption?: boolean | undefined;
    imageGeneration?: boolean | undefined;
    runSlashCommand?: boolean | undefined;
    customTools?: boolean | undefined;
    chatSearch?: boolean | undefined;
    commitReview?: boolean | undefined;
    useKPTtree?: boolean | undefined;
    useLitePrompts?: boolean | undefined;
    smartMistakeDetection?: boolean | undefined;
}>;
type Experiments = z.infer<typeof experimentsSchema>;
/**
 * Experiment Settings
 *
 * Separate configuration objects for experiments that need detailed settings
 */
declare const experimentSettingsSchema: z.ZodObject<{
    smartMistakeDetectionConfig: z.ZodOptional<z.ZodObject<{
        autoSwitchModel: z.ZodOptional<z.ZodBoolean>;
    }, "strip", z.ZodTypeAny, {
        autoSwitchModel?: boolean | undefined;
    }, {
        autoSwitchModel?: boolean | undefined;
    }>>;
}, "strip", z.ZodTypeAny, {
    smartMistakeDetectionConfig?: {
        autoSwitchModel?: boolean | undefined;
    } | undefined;
}, {
    smartMistakeDetectionConfig?: {
        autoSwitchModel?: boolean | undefined;
    } | undefined;
}>;
type ExperimentSettings = z.infer<typeof experimentSettingsSchema>;

/**
 * Interface for follow-up data structure used in follow-up questions
 * This represents the data structure for follow-up questions that the LLM can ask
 * to gather more information needed to complete a task.
 */
interface FollowUpData {
    /** The question being asked by the LLM */
    question?: string;
    /** Array of suggested answers that the user can select */
    suggest?: Array<SuggestionItem>;
}
/**
 * Interface for a suggestion item with optional mode switching
 */
interface SuggestionItem {
    /** The text of the suggestion */
    answer: string;
    /** Optional mode to switch to when selecting this suggestion */
    mode?: string;
}
/**
 * Zod schema for SuggestionItem
 */
declare const suggestionItemSchema: z.ZodObject<{
    answer: z.ZodString;
    mode: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    answer: string;
    mode?: string | undefined;
}, {
    answer: string;
    mode?: string | undefined;
}>;
/**
 * Zod schema for FollowUpData
 */
declare const followUpDataSchema: z.ZodObject<{
    question: z.ZodOptional<z.ZodString>;
    suggest: z.ZodOptional<z.ZodArray<z.ZodObject<{
        answer: z.ZodString;
        mode: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        answer: string;
        mode?: string | undefined;
    }, {
        answer: string;
        mode?: string | undefined;
    }>, "many">>;
}, "strip", z.ZodTypeAny, {
    question?: string | undefined;
    suggest?: {
        answer: string;
        mode?: string | undefined;
    }[] | undefined;
}, {
    question?: string | undefined;
    suggest?: {
        answer: string;
        mode?: string | undefined;
    }[] | undefined;
}>;
type FollowUpDataType = z.infer<typeof followUpDataSchema>;

interface GitRepositoryInfo {
    repositoryUrl?: string;
    repositoryName?: string;
    defaultBranch?: string;
}
interface GitCommit {
    hash: string;
    shortHash: string;
    subject: string;
    author: string;
    date: string;
}

interface INotice {
    title: string;
    type: "always" | "once";
    content: string;
    timestamp: number;
    expired: number;
}
interface INoticesResponse {
    notices: INotice[];
}

/**
 * Interface for multiple choice data structure used in multiple choice questions
 * This represents the data structure for structured choice questions that the LLM can ask
 * to collect user decisions efficiently with single or multiple selection support.
 */
interface MultipleChoiceData {
    /** Optional title for the questions form */
    title?: string;
    /** Array of questions to present to the user */
    questions: Array<MultipleChoiceQuestion>;
    /** Saved user response (populated after user submits) */
    userResponse?: MultipleChoiceResponse;
}
/**
 * Interface for a single multiple choice question
 */
interface MultipleChoiceQuestion {
    /** Unique identifier for this question (used to match answers) */
    id: string;
    /** The question text to display to the user */
    prompt: string;
    /** Array of answer options for this question */
    options: Array<MultipleChoiceOption>;
    /** If true, user can select multiple options. If false, only one option can be selected. */
    allow_multiple?: boolean;
}
/**
 * Interface for a multiple choice option
 */
interface MultipleChoiceOption {
    /** Unique identifier for this option (used in the result) */
    id: string;
    /** Display text for this option */
    label: string;
    /** Whether this option is the recommended/default choice */
    recommended?: boolean;
}
/**
 * Interface for a single question response in multiple choice form
 */
interface MultipleChoiceQuestionResponse {
    /** Selected predefined option ids */
    selectedOptionIds: string[];
    /** Optional custom answer entered by the user */
    customAnswer?: string;
}
/**
 * Interface for multiple choice response
 * Maps question IDs to arrays of selected option IDs
 */
interface MultipleChoiceResponse {
    [questionId: string]: MultipleChoiceQuestionResponse | string[];
}
/**
 * Zod schema for MultipleChoiceOption
 */
declare const multipleChoiceOptionSchema: z.ZodObject<{
    id: z.ZodString;
    label: z.ZodString;
    recommended: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    id: string;
    label: string;
    recommended?: boolean | undefined;
}, {
    id: string;
    label: string;
    recommended?: boolean | undefined;
}>;
/**
 * Zod schema for MultipleChoiceQuestion
 */
declare const multipleChoiceQuestionSchema: z.ZodObject<{
    id: z.ZodString;
    prompt: z.ZodString;
    options: z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        label: z.ZodString;
        recommended: z.ZodOptional<z.ZodBoolean>;
    }, "strip", z.ZodTypeAny, {
        id: string;
        label: string;
        recommended?: boolean | undefined;
    }, {
        id: string;
        label: string;
        recommended?: boolean | undefined;
    }>, "many">;
    allow_multiple: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    options: {
        id: string;
        label: string;
        recommended?: boolean | undefined;
    }[];
    id: string;
    prompt: string;
    allow_multiple?: boolean | undefined;
}, {
    options: {
        id: string;
        label: string;
        recommended?: boolean | undefined;
    }[];
    id: string;
    prompt: string;
    allow_multiple?: boolean | undefined;
}>;
/**
 * Zod schema for MultipleChoiceData
 */
declare const multipleChoiceDataSchema: z.ZodObject<{
    title: z.ZodOptional<z.ZodString>;
    questions: z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        prompt: z.ZodString;
        options: z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            label: z.ZodString;
            recommended: z.ZodOptional<z.ZodBoolean>;
        }, "strip", z.ZodTypeAny, {
            id: string;
            label: string;
            recommended?: boolean | undefined;
        }, {
            id: string;
            label: string;
            recommended?: boolean | undefined;
        }>, "many">;
        allow_multiple: z.ZodOptional<z.ZodBoolean>;
    }, "strip", z.ZodTypeAny, {
        options: {
            id: string;
            label: string;
            recommended?: boolean | undefined;
        }[];
        id: string;
        prompt: string;
        allow_multiple?: boolean | undefined;
    }, {
        options: {
            id: string;
            label: string;
            recommended?: boolean | undefined;
        }[];
        id: string;
        prompt: string;
        allow_multiple?: boolean | undefined;
    }>, "many">;
}, "strip", z.ZodTypeAny, {
    questions: {
        options: {
            id: string;
            label: string;
            recommended?: boolean | undefined;
        }[];
        id: string;
        prompt: string;
        allow_multiple?: boolean | undefined;
    }[];
    title?: string | undefined;
}, {
    questions: {
        options: {
            id: string;
            label: string;
            recommended?: boolean | undefined;
        }[];
        id: string;
        prompt: string;
        allow_multiple?: boolean | undefined;
    }[];
    title?: string | undefined;
}>;
type MultipleChoiceDataType = z.infer<typeof multipleChoiceDataSchema>;

/**
 * HistoryItem
 */
declare const historyItemSchema: z.ZodObject<{
    id: z.ZodString;
    rootTaskId: z.ZodOptional<z.ZodString>;
    parentTaskId: z.ZodOptional<z.ZodString>;
    number: z.ZodNumber;
    ts: z.ZodNumber;
    task: z.ZodString;
    tokensIn: z.ZodNumber;
    tokensOut: z.ZodNumber;
    cacheWrites: z.ZodOptional<z.ZodNumber>;
    cacheReads: z.ZodOptional<z.ZodNumber>;
    totalCost: z.ZodNumber;
    size: z.ZodOptional<z.ZodNumber>;
    workspace: z.ZodOptional<z.ZodString>;
    mode: z.ZodOptional<z.ZodString>;
    apiConfigName: z.ZodOptional<z.ZodString>;
    status: z.ZodOptional<z.ZodEnum<["active", "completed", "delegated"]>>;
    delegatedToId: z.ZodOptional<z.ZodString>;
    childIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    awaitingChildId: z.ZodOptional<z.ZodString>;
    completedByChildId: z.ZodOptional<z.ZodString>;
    completionResultSummary: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    number: number;
    ts: number;
    totalCost: number;
    id: string;
    task: string;
    tokensIn: number;
    tokensOut: number;
    status?: "active" | "completed" | "delegated" | undefined;
    rootTaskId?: string | undefined;
    parentTaskId?: string | undefined;
    cacheWrites?: number | undefined;
    cacheReads?: number | undefined;
    size?: number | undefined;
    workspace?: string | undefined;
    mode?: string | undefined;
    apiConfigName?: string | undefined;
    delegatedToId?: string | undefined;
    childIds?: string[] | undefined;
    awaitingChildId?: string | undefined;
    completedByChildId?: string | undefined;
    completionResultSummary?: string | undefined;
}, {
    number: number;
    ts: number;
    totalCost: number;
    id: string;
    task: string;
    tokensIn: number;
    tokensOut: number;
    status?: "active" | "completed" | "delegated" | undefined;
    rootTaskId?: string | undefined;
    parentTaskId?: string | undefined;
    cacheWrites?: number | undefined;
    cacheReads?: number | undefined;
    size?: number | undefined;
    workspace?: string | undefined;
    mode?: string | undefined;
    apiConfigName?: string | undefined;
    delegatedToId?: string | undefined;
    childIds?: string[] | undefined;
    awaitingChildId?: string | undefined;
    completedByChildId?: string | undefined;
    completionResultSummary?: string | undefined;
}>;
type HistoryItem = z.infer<typeof historyItemSchema>;

/**
 * Image generation model constants
 */
/**
 * API method used for image generation
 */
type ImageGenerationApiMethod = "chat_completions" | "images_api";
interface ImageGenerationModel {
    value: string;
    label: string;
    provider: ImageGenerationProvider;
    apiMethod?: ImageGenerationApiMethod;
}
declare const IMAGE_GENERATION_MODELS: ImageGenerationModel[];
/**
 * Get array of model values only (for backend validation)
 */
declare const IMAGE_GENERATION_MODEL_IDS: string[];
/**
 * Image generation provider type
 */
type ImageGenerationProvider = "openrouter" | "roo";
/**
 * Get the image generation provider with backwards compatibility
 * - If provider is explicitly set, use it
 * - If a model is already configured (existing users), default to "openrouter"
 * - Otherwise default to "roo" (new users)
 */
declare function getImageGenerationProvider(explicitProvider: ImageGenerationProvider | undefined, hasExistingModel: boolean): ImageGenerationProvider;

/**
 * Schema for MCP parameter definitions
 */
declare const mcpParameterSchema: z.ZodObject<{
    name: z.ZodString;
    key: z.ZodString;
    placeholder: z.ZodOptional<z.ZodString>;
    optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
    name: string;
    key: string;
    optional: boolean;
    placeholder?: string | undefined;
}, {
    name: string;
    key: string;
    placeholder?: string | undefined;
    optional?: boolean | undefined;
}>;
type McpParameter = z.infer<typeof mcpParameterSchema>;
/**
 * Schema for MCP installation method with name
 */
declare const mcpInstallationMethodSchema: z.ZodObject<{
    name: z.ZodString;
    content: z.ZodString;
    parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        key: z.ZodString;
        placeholder: z.ZodOptional<z.ZodString>;
        optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        key: string;
        optional: boolean;
        placeholder?: string | undefined;
    }, {
        name: string;
        key: string;
        placeholder?: string | undefined;
        optional?: boolean | undefined;
    }>, "many">>;
    prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
    name: string;
    content: string;
    parameters?: {
        name: string;
        key: string;
        optional: boolean;
        placeholder?: string | undefined;
    }[] | undefined;
    prerequisites?: string[] | undefined;
}, {
    name: string;
    content: string;
    parameters?: {
        name: string;
        key: string;
        placeholder?: string | undefined;
        optional?: boolean | undefined;
    }[] | undefined;
    prerequisites?: string[] | undefined;
}>;
type McpInstallationMethod = z.infer<typeof mcpInstallationMethodSchema>;
/**
 * Component type validation
 */
declare const marketplaceItemTypeSchema: z.ZodEnum<["mode", "mcp"]>;
type MarketplaceItemType = z.infer<typeof marketplaceItemTypeSchema>;
/**
 * Type-specific schemas for YAML parsing (without type field, added programmatically)
 */
declare const modeMarketplaceItemSchema: z.ZodObject<{
    id: z.ZodString;
    name: z.ZodString;
    description: z.ZodString;
    author: z.ZodOptional<z.ZodString>;
    authorUrl: z.ZodOptional<z.ZodString>;
    tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
} & {
    content: z.ZodString;
}, "strip", z.ZodTypeAny, {
    id: string;
    description: string;
    name: string;
    content: string;
    tags?: string[] | undefined;
    prerequisites?: string[] | undefined;
    author?: string | undefined;
    authorUrl?: string | undefined;
}, {
    id: string;
    description: string;
    name: string;
    content: string;
    tags?: string[] | undefined;
    prerequisites?: string[] | undefined;
    author?: string | undefined;
    authorUrl?: string | undefined;
}>;
type ModeMarketplaceItem = z.infer<typeof modeMarketplaceItemSchema>;
declare const mcpMarketplaceItemSchema: z.ZodObject<{
    id: z.ZodString;
    name: z.ZodString;
    description: z.ZodString;
    author: z.ZodOptional<z.ZodString>;
    authorUrl: z.ZodOptional<z.ZodString>;
    tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
} & {
    url: z.ZodString;
    content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        content: z.ZodString;
        parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            key: z.ZodString;
            placeholder: z.ZodOptional<z.ZodString>;
            optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }, {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }>, "many">>;
        prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        content: string;
        parameters?: {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
    }, {
        name: string;
        content: string;
        parameters?: {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
    }>, "many">]>;
    parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        key: z.ZodString;
        placeholder: z.ZodOptional<z.ZodString>;
        optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        key: string;
        optional: boolean;
        placeholder?: string | undefined;
    }, {
        name: string;
        key: string;
        placeholder?: string | undefined;
        optional?: boolean | undefined;
    }>, "many">>;
}, "strip", z.ZodTypeAny, {
    id: string;
    description: string;
    name: string;
    url: string;
    content: string | {
        name: string;
        content: string;
        parameters?: {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
    }[];
    tags?: string[] | undefined;
    parameters?: {
        name: string;
        key: string;
        optional: boolean;
        placeholder?: string | undefined;
    }[] | undefined;
    prerequisites?: string[] | undefined;
    author?: string | undefined;
    authorUrl?: string | undefined;
}, {
    id: string;
    description: string;
    name: string;
    url: string;
    content: string | {
        name: string;
        content: string;
        parameters?: {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
    }[];
    tags?: string[] | undefined;
    parameters?: {
        name: string;
        key: string;
        placeholder?: string | undefined;
        optional?: boolean | undefined;
    }[] | undefined;
    prerequisites?: string[] | undefined;
    author?: string | undefined;
    authorUrl?: string | undefined;
}>;
type McpMarketplaceItem = z.infer<typeof mcpMarketplaceItemSchema>;
/**
 * Unified marketplace item schema using discriminated union
 */
declare const marketplaceItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
    id: z.ZodString;
    name: z.ZodString;
    description: z.ZodString;
    author: z.ZodOptional<z.ZodString>;
    authorUrl: z.ZodOptional<z.ZodString>;
    tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
} & {
    content: z.ZodString;
} & {
    type: z.ZodLiteral<"mode">;
}, "strip", z.ZodTypeAny, {
    type: "mode";
    id: string;
    description: string;
    name: string;
    content: string;
    tags?: string[] | undefined;
    prerequisites?: string[] | undefined;
    author?: string | undefined;
    authorUrl?: string | undefined;
}, {
    type: "mode";
    id: string;
    description: string;
    name: string;
    content: string;
    tags?: string[] | undefined;
    prerequisites?: string[] | undefined;
    author?: string | undefined;
    authorUrl?: string | undefined;
}>, z.ZodObject<{
    id: z.ZodString;
    name: z.ZodString;
    description: z.ZodString;
    author: z.ZodOptional<z.ZodString>;
    authorUrl: z.ZodOptional<z.ZodString>;
    tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
} & {
    url: z.ZodString;
    content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        content: z.ZodString;
        parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            key: z.ZodString;
            placeholder: z.ZodOptional<z.ZodString>;
            optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }, {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }>, "many">>;
        prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        content: string;
        parameters?: {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
    }, {
        name: string;
        content: string;
        parameters?: {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
    }>, "many">]>;
    parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        key: z.ZodString;
        placeholder: z.ZodOptional<z.ZodString>;
        optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        key: string;
        optional: boolean;
        placeholder?: string | undefined;
    }, {
        name: string;
        key: string;
        placeholder?: string | undefined;
        optional?: boolean | undefined;
    }>, "many">>;
} & {
    type: z.ZodLiteral<"mcp">;
}, "strip", z.ZodTypeAny, {
    type: "mcp";
    id: string;
    description: string;
    name: string;
    url: string;
    content: string | {
        name: string;
        content: string;
        parameters?: {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
    }[];
    tags?: string[] | undefined;
    parameters?: {
        name: string;
        key: string;
        optional: boolean;
        placeholder?: string | undefined;
    }[] | undefined;
    prerequisites?: string[] | undefined;
    author?: string | undefined;
    authorUrl?: string | undefined;
}, {
    type: "mcp";
    id: string;
    description: string;
    name: string;
    url: string;
    content: string | {
        name: string;
        content: string;
        parameters?: {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
    }[];
    tags?: string[] | undefined;
    parameters?: {
        name: string;
        key: string;
        placeholder?: string | undefined;
        optional?: boolean | undefined;
    }[] | undefined;
    prerequisites?: string[] | undefined;
    author?: string | undefined;
    authorUrl?: string | undefined;
}>]>;
type MarketplaceItem = z.infer<typeof marketplaceItemSchema>;
/**
 * Installation options for marketplace items
 */
declare const installMarketplaceItemOptionsSchema: z.ZodObject<{
    target: z.ZodDefault<z.ZodOptional<z.ZodEnum<["global", "project"]>>>;
    parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
}, "strip", z.ZodTypeAny, {
    target: "global" | "project";
    parameters?: Record<string, any> | undefined;
}, {
    target?: "global" | "project" | undefined;
    parameters?: Record<string, any> | undefined;
}>;
type InstallMarketplaceItemOptions = z.infer<typeof installMarketplaceItemOptionsSchema>;
interface MarketplaceInstalledMetadata {
    project: Record<string, {
        type: string;
    }>;
    global: Record<string, {
        type: string;
    }>;
}

/**
 * Maximum number of MCP tools that can be enabled before showing a warning.
 * LLMs tend to perform poorly when given too many tools to choose from.
 */
declare const MAX_MCP_TOOLS_THRESHOLD = 60;
/**
 * McpServerUse
 */
interface McpServerUse {
    type: string;
    serverName: string;
    toolName?: string;
    uri?: string;
}
/**
 * McpExecutionStatus
 */
declare const mcpExecutionStatusSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"started">;
    serverName: z.ZodString;
    toolName: z.ZodString;
}, "strip", z.ZodTypeAny, {
    status: "started";
    executionId: string;
    serverName: string;
    toolName: string;
}, {
    status: "started";
    executionId: string;
    serverName: string;
    toolName: string;
}>, z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"output">;
    response: z.ZodString;
}, "strip", z.ZodTypeAny, {
    status: "output";
    executionId: string;
    response: string;
}, {
    status: "output";
    executionId: string;
    response: string;
}>, z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"completed">;
    response: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    status: "completed";
    executionId: string;
    response?: string | undefined;
}, {
    status: "completed";
    executionId: string;
    response?: string | undefined;
}>, z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"error">;
    error: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    status: "error";
    executionId: string;
    error?: string | undefined;
}, {
    status: "error";
    executionId: string;
    error?: string | undefined;
}>, z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"polling">;
    taskId: z.ZodOptional<z.ZodString>;
    attempt: z.ZodOptional<z.ZodNumber>;
    lastStatus: z.ZodOptional<z.ZodString>;
    lastCheckedAt: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    status: "polling";
    executionId: string;
    taskId?: string | undefined;
    attempt?: number | undefined;
    lastStatus?: string | undefined;
    lastCheckedAt?: number | undefined;
}, {
    status: "polling";
    executionId: string;
    taskId?: string | undefined;
    attempt?: number | undefined;
    lastStatus?: string | undefined;
    lastCheckedAt?: number | undefined;
}>, z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"stopped_waiting">;
    reason: z.ZodEnum<["user_cancelled", "timed_out", "connection_unavailable"]>;
    taskId: z.ZodOptional<z.ZodString>;
    message: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    status: "stopped_waiting";
    reason: "user_cancelled" | "timed_out" | "connection_unavailable";
    executionId: string;
    message?: string | undefined;
    taskId?: string | undefined;
}, {
    status: "stopped_waiting";
    reason: "user_cancelled" | "timed_out" | "connection_unavailable";
    executionId: string;
    message?: string | undefined;
    taskId?: string | undefined;
}>]>;
type McpExecutionStatus = z.infer<typeof mcpExecutionStatusSchema>;
/**
 * McpServer
 */
type McpServer = {
    name: string;
    config: string;
    status: "connected" | "connecting" | "disconnected";
    error?: string;
    errorHistory?: McpErrorEntry[];
    tools?: McpTool[];
    resources?: McpResource[];
    resourceTemplates?: McpResourceTemplate[];
    disabled?: boolean;
    timeout?: number;
    source?: "global" | "project";
    projectPath?: string;
    instructions?: string;
};
type McpTool = {
    name: string;
    description?: string;
    inputSchema?: object;
    alwaysAllow?: boolean;
    enabledForPrompt?: boolean;
};
type McpResource = {
    uri: string;
    name: string;
    mimeType?: string;
    description?: string;
};
type McpResourceTemplate = {
    uriTemplate: string;
    name: string;
    description?: string;
    mimeType?: string;
};
type McpResourceResponse = {
    _meta?: Record<string, any>;
    contents: Array<{
        uri: string;
        mimeType?: string;
        text?: string;
        blob?: string;
    }>;
};
type McpToolCallResponse = {
    _meta?: Record<string, any>;
    content: Array<{
        type: "text";
        text: string;
    } | {
        type: "image";
        data: string;
        mimeType: string;
    } | {
        type: "audio";
        data: string;
        mimeType: string;
    } | {
        type: "resource";
        resource: {
            uri: string;
            mimeType?: string;
            text?: string;
            blob?: string;
        };
    } | {
        type: "resource_link";
        uri: string;
        name?: string;
        description?: string;
        mimeType?: string;
        _meta?: Record<string, any>;
    }>;
    isError?: boolean;
};
type McpErrorEntry = {
    message: string;
    timestamp: number;
    level: "error" | "warn" | "info";
};
/**
 * Result of counting enabled MCP tools across servers.
 */
interface EnabledMcpToolsCount {
    /** Number of enabled and connected MCP servers */
    enabledServerCount: number;
    /** Total number of enabled tools across all enabled servers */
    enabledToolCount: number;
}
/**
 * Count the number of enabled MCP tools across all enabled and connected servers.
 * This is a pure function that can be used in both backend and frontend contexts.
 *
 * @param servers - Array of MCP server objects
 * @returns Object with enabledToolCount and enabledServerCount
 *
 * @example
 * const { enabledToolCount, enabledServerCount } = countEnabledMcpTools(mcpServers)
 * if (enabledToolCount > MAX_MCP_TOOLS_THRESHOLD) {
 *   // Show warning
 * }
 */
declare function countEnabledMcpTools(servers: McpServer[]): EnabledMcpToolsCount;
declare const AsyncPollingToolConfigSchema: z.ZodObject<{
    statusTool: z.ZodString;
    taskIdPath: z.ZodString;
    initialArgsTemplate: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    statusArgsTemplate: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    statusPath: z.ZodString;
    resultPath: z.ZodOptional<z.ZodString>;
    errorPath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
    pendingValues: z.ZodArray<z.ZodString, "many">;
    completedValues: z.ZodArray<z.ZodString, "many">;
    failedValues: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
    statusToolErrorMode: z.ZodDefault<z.ZodEnum<["transportUnknown", "businessFailed"]>>;
    intervalMs: z.ZodDefault<z.ZodNumber>;
    statusToolTimeoutMs: z.ZodDefault<z.ZodNumber>;
    maxDurationMs: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    statusTool: string;
    taskIdPath: string;
    initialArgsTemplate: Record<string, unknown>;
    statusArgsTemplate: Record<string, unknown>;
    statusPath: string;
    pendingValues: string[];
    completedValues: string[];
    failedValues: string[];
    statusToolErrorMode: "transportUnknown" | "businessFailed";
    intervalMs: number;
    statusToolTimeoutMs: number;
    maxDurationMs: number;
    resultPath?: string | undefined;
    errorPath?: string | string[] | undefined;
}, {
    statusTool: string;
    taskIdPath: string;
    statusPath: string;
    pendingValues: string[];
    completedValues: string[];
    initialArgsTemplate?: Record<string, unknown> | undefined;
    statusArgsTemplate?: Record<string, unknown> | undefined;
    resultPath?: string | undefined;
    errorPath?: string | string[] | undefined;
    failedValues?: string[] | undefined;
    statusToolErrorMode?: "transportUnknown" | "businessFailed" | undefined;
    intervalMs?: number | undefined;
    statusToolTimeoutMs?: number | undefined;
    maxDurationMs?: number | undefined;
}>;
type AsyncPollingToolConfig = z.infer<typeof AsyncPollingToolConfigSchema>;
declare const AsyncPollingConfigSchema: z.ZodObject<{
    tools: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        statusTool: z.ZodString;
        taskIdPath: z.ZodString;
        initialArgsTemplate: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        statusArgsTemplate: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        statusPath: z.ZodString;
        resultPath: z.ZodOptional<z.ZodString>;
        errorPath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
        pendingValues: z.ZodArray<z.ZodString, "many">;
        completedValues: z.ZodArray<z.ZodString, "many">;
        failedValues: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
        statusToolErrorMode: z.ZodDefault<z.ZodEnum<["transportUnknown", "businessFailed"]>>;
        intervalMs: z.ZodDefault<z.ZodNumber>;
        statusToolTimeoutMs: z.ZodDefault<z.ZodNumber>;
        maxDurationMs: z.ZodDefault<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        statusTool: string;
        taskIdPath: string;
        initialArgsTemplate: Record<string, unknown>;
        statusArgsTemplate: Record<string, unknown>;
        statusPath: string;
        pendingValues: string[];
        completedValues: string[];
        failedValues: string[];
        statusToolErrorMode: "transportUnknown" | "businessFailed";
        intervalMs: number;
        statusToolTimeoutMs: number;
        maxDurationMs: number;
        resultPath?: string | undefined;
        errorPath?: string | string[] | undefined;
    }, {
        statusTool: string;
        taskIdPath: string;
        statusPath: string;
        pendingValues: string[];
        completedValues: string[];
        initialArgsTemplate?: Record<string, unknown> | undefined;
        statusArgsTemplate?: Record<string, unknown> | undefined;
        resultPath?: string | undefined;
        errorPath?: string | string[] | undefined;
        failedValues?: string[] | undefined;
        statusToolErrorMode?: "transportUnknown" | "businessFailed" | undefined;
        intervalMs?: number | undefined;
        statusToolTimeoutMs?: number | undefined;
        maxDurationMs?: number | undefined;
    }>>>;
}, "strip", z.ZodTypeAny, {
    tools: Record<string, {
        statusTool: string;
        taskIdPath: string;
        initialArgsTemplate: Record<string, unknown>;
        statusArgsTemplate: Record<string, unknown>;
        statusPath: string;
        pendingValues: string[];
        completedValues: string[];
        failedValues: string[];
        statusToolErrorMode: "transportUnknown" | "businessFailed";
        intervalMs: number;
        statusToolTimeoutMs: number;
        maxDurationMs: number;
        resultPath?: string | undefined;
        errorPath?: string | string[] | undefined;
    }>;
}, {
    tools?: Record<string, {
        statusTool: string;
        taskIdPath: string;
        statusPath: string;
        pendingValues: string[];
        completedValues: string[];
        initialArgsTemplate?: Record<string, unknown> | undefined;
        statusArgsTemplate?: Record<string, unknown> | undefined;
        resultPath?: string | undefined;
        errorPath?: string | string[] | undefined;
        failedValues?: string[] | undefined;
        statusToolErrorMode?: "transportUnknown" | "businessFailed" | undefined;
        intervalMs?: number | undefined;
        statusToolTimeoutMs?: number | undefined;
        maxDurationMs?: number | undefined;
    }> | undefined;
}>;
type AsyncPollingConfig = z.infer<typeof AsyncPollingConfigSchema>;

declare const McpAsyncTaskRecordSchema: z.ZodObject<{
    id: z.ZodString;
    workspacePath: z.ZodOptional<z.ZodString>;
    executionId: z.ZodOptional<z.ZodString>;
    serverName: z.ZodString;
    source: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
    originalToolName: z.ZodString;
    taskId: z.ZodString;
    statusTool: z.ZodOptional<z.ZodString>;
    createdAt: z.ZodNumber;
    updatedAt: z.ZodNumber;
    lastCheckedAt: z.ZodOptional<z.ZodNumber>;
    lastStatus: z.ZodOptional<z.ZodString>;
    lastMessage: z.ZodOptional<z.ZodString>;
    rawSummary: z.ZodOptional<z.ZodString>;
    resultFetchedAt: z.ZodOptional<z.ZodNumber>;
    terminalStatus: z.ZodOptional<z.ZodEnum<["completed", "failed", "unknown"]>>;
}, "strip", z.ZodTypeAny, {
    id: string;
    taskId: string;
    serverName: string;
    originalToolName: string;
    createdAt: number;
    updatedAt: number;
    source?: "global" | "project" | undefined;
    workspacePath?: string | undefined;
    executionId?: string | undefined;
    lastStatus?: string | undefined;
    lastCheckedAt?: number | undefined;
    statusTool?: string | undefined;
    lastMessage?: string | undefined;
    rawSummary?: string | undefined;
    resultFetchedAt?: number | undefined;
    terminalStatus?: "unknown" | "completed" | "failed" | undefined;
}, {
    id: string;
    taskId: string;
    serverName: string;
    originalToolName: string;
    createdAt: number;
    updatedAt: number;
    source?: "global" | "project" | undefined;
    workspacePath?: string | undefined;
    executionId?: string | undefined;
    lastStatus?: string | undefined;
    lastCheckedAt?: number | undefined;
    statusTool?: string | undefined;
    lastMessage?: string | undefined;
    rawSummary?: string | undefined;
    resultFetchedAt?: number | undefined;
    terminalStatus?: "unknown" | "completed" | "failed" | undefined;
}>;
type McpAsyncTaskRecord = z.infer<typeof McpAsyncTaskRecordSchema>;

declare const McpAsyncTaskSummarySchema: z.ZodObject<{
    id: z.ZodString;
    executionId: z.ZodOptional<z.ZodString>;
    serverName: z.ZodString;
    source: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
    originalToolName: z.ZodString;
    taskId: z.ZodString;
    lastStatus: z.ZodOptional<z.ZodString>;
    lastCheckedAt: z.ZodOptional<z.ZodNumber>;
    terminalStatus: z.ZodOptional<z.ZodEnum<["completed", "failed", "unknown"]>>;
    resultFetchedAt: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    id: string;
    taskId: string;
    serverName: string;
    originalToolName: string;
    source?: "global" | "project" | undefined;
    executionId?: string | undefined;
    lastStatus?: string | undefined;
    lastCheckedAt?: number | undefined;
    resultFetchedAt?: number | undefined;
    terminalStatus?: "unknown" | "completed" | "failed" | undefined;
}, {
    id: string;
    taskId: string;
    serverName: string;
    originalToolName: string;
    source?: "global" | "project" | undefined;
    executionId?: string | undefined;
    lastStatus?: string | undefined;
    lastCheckedAt?: number | undefined;
    resultFetchedAt?: number | undefined;
    terminalStatus?: "unknown" | "completed" | "failed" | undefined;
}>;
type McpAsyncTaskSummary = z.infer<typeof McpAsyncTaskSummarySchema>;
declare function summarizeRecord(record: McpAsyncTaskRecord): McpAsyncTaskSummary;

/**
 * GroupOptions
 */
declare const groupOptionsSchema: z.ZodObject<{
    fileRegex: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
    description: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    description?: string | undefined;
    fileRegex?: string | undefined;
}, {
    description?: string | undefined;
    fileRegex?: string | undefined;
}>;
type GroupOptions = z.infer<typeof groupOptionsSchema>;
/**
 * GroupEntry
 */
declare const groupEntrySchema: z.ZodUnion<[z.ZodEnum<["read", "edit", "command", "mcp", "modes", "question", "sequential_thinking", "file_outline"]>, z.ZodTuple<[z.ZodEnum<["read", "edit", "command", "mcp", "modes", "question", "sequential_thinking", "file_outline"]>, z.ZodObject<{
    fileRegex: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
    description: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    description?: string | undefined;
    fileRegex?: string | undefined;
}, {
    description?: string | undefined;
    fileRegex?: string | undefined;
}>], null>]>;
type GroupEntry = z.infer<typeof groupEntrySchema>;
/**
 * Schema for mode group entries. Preprocesses the input to strip deprecated
 * tool groups (e.g., "browser") before validation, ensuring backward compatibility
 * with older user configs.
 *
 * The type assertion to `z.ZodType<GroupEntry[], z.ZodTypeDef, GroupEntry[]>` is
 * required because `z.preprocess` erases the input type to `unknown`, which
 * propagates through `modeConfigSchema → rooCodeSettingsSchema → createRunSchema`
 * and breaks `zodResolver` generic inference in downstream consumers (e.g., web-evals).
 */
declare const groupEntryArraySchema: z.ZodType<GroupEntry[], z.ZodTypeDef, GroupEntry[]>;
declare const modeConfigSchema: z.ZodObject<{
    slug: z.ZodString;
    name: z.ZodString;
    roleDefinition: z.ZodString;
    whenToUse: z.ZodOptional<z.ZodString>;
    description: z.ZodOptional<z.ZodString>;
    customInstructions: z.ZodOptional<z.ZodString>;
    groups: z.ZodType<("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
        description?: string | undefined;
        fileRegex?: string | undefined;
    }])[], z.ZodTypeDef, ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
        description?: string | undefined;
        fileRegex?: string | undefined;
    }])[]>;
    overrideSystemPrompt: z.ZodOptional<z.ZodBoolean>;
    source: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
    costrictCodeModeGroup: z.ZodOptional<z.ZodDefault<z.ZodString>>;
    apiProvider: z.ZodOptional<z.ZodString>;
    subagents: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
    pure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
    disableSwitchMode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
    taskMode: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    name: string;
    slug: string;
    roleDefinition: string;
    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
        description?: string | undefined;
        fileRegex?: string | undefined;
    }])[];
    description?: string | undefined;
    apiProvider?: string | undefined;
    source?: "global" | "project" | undefined;
    whenToUse?: string | undefined;
    customInstructions?: string | undefined;
    overrideSystemPrompt?: boolean | undefined;
    costrictCodeModeGroup?: string | undefined;
    subagents?: string[] | undefined;
    pure?: boolean | undefined;
    disableSwitchMode?: boolean | undefined;
    taskMode?: string | undefined;
}, {
    name: string;
    slug: string;
    roleDefinition: string;
    groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
        description?: string | undefined;
        fileRegex?: string | undefined;
    }])[];
    description?: string | undefined;
    apiProvider?: string | undefined;
    source?: "global" | "project" | undefined;
    whenToUse?: string | undefined;
    customInstructions?: string | undefined;
    overrideSystemPrompt?: boolean | undefined;
    costrictCodeModeGroup?: string | undefined;
    subagents?: string[] | undefined;
    pure?: boolean | undefined;
    disableSwitchMode?: boolean | undefined;
    taskMode?: string | undefined;
}>;
type ModeConfig = z.infer<typeof modeConfigSchema>;
/**
 * CustomModesSettings
 */
declare const customModesSettingsSchema: z.ZodObject<{
    customModes: z.ZodEffects<z.ZodArray<z.ZodObject<{
        slug: z.ZodString;
        name: z.ZodString;
        roleDefinition: z.ZodString;
        whenToUse: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        customInstructions: z.ZodOptional<z.ZodString>;
        groups: z.ZodType<("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[], z.ZodTypeDef, ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[]>;
        overrideSystemPrompt: z.ZodOptional<z.ZodBoolean>;
        source: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
        costrictCodeModeGroup: z.ZodOptional<z.ZodDefault<z.ZodString>>;
        apiProvider: z.ZodOptional<z.ZodString>;
        subagents: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
        pure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
        disableSwitchMode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
        taskMode: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }, {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }>, "many">, {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }[], {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }[]>;
}, "strip", z.ZodTypeAny, {
    customModes: {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }[];
}, {
    customModes: {
        name: string;
        slug: string;
        roleDefinition: string;
        groups: ("command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline" | ["command" | "read" | "edit" | "mcp" | "modes" | "question" | "sequential_thinking" | "file_outline", {
            description?: string | undefined;
            fileRegex?: string | undefined;
        }])[];
        description?: string | undefined;
        apiProvider?: string | undefined;
        source?: "global" | "project" | undefined;
        whenToUse?: string | undefined;
        customInstructions?: string | undefined;
        overrideSystemPrompt?: boolean | undefined;
        costrictCodeModeGroup?: string | undefined;
        subagents?: string[] | undefined;
        pure?: boolean | undefined;
        disableSwitchMode?: boolean | undefined;
        taskMode?: string | undefined;
    }[];
}>;
type CustomModesSettings = z.infer<typeof customModesSettingsSchema>;
/**
 * PromptComponent
 */
declare const promptComponentSchema: z.ZodObject<{
    roleDefinition: z.ZodOptional<z.ZodString>;
    whenToUse: z.ZodOptional<z.ZodString>;
    description: z.ZodOptional<z.ZodString>;
    customInstructions: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    description?: string | undefined;
    roleDefinition?: string | undefined;
    whenToUse?: string | undefined;
    customInstructions?: string | undefined;
}, {
    description?: string | undefined;
    roleDefinition?: string | undefined;
    whenToUse?: string | undefined;
    customInstructions?: string | undefined;
}>;
type PromptComponent = z.infer<typeof promptComponentSchema>;
/**
 * CustomModePrompts
 */
declare const customModePromptsSchema: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
    roleDefinition: z.ZodOptional<z.ZodString>;
    whenToUse: z.ZodOptional<z.ZodString>;
    description: z.ZodOptional<z.ZodString>;
    customInstructions: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    description?: string | undefined;
    roleDefinition?: string | undefined;
    whenToUse?: string | undefined;
    customInstructions?: string | undefined;
}, {
    description?: string | undefined;
    roleDefinition?: string | undefined;
    whenToUse?: string | undefined;
    customInstructions?: string | undefined;
}>>>;
type CustomModePrompts = z.infer<typeof customModePromptsSchema>;
/**
 * CustomSupportPrompts
 */
declare const customSupportPromptsSchema: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>;
type CustomSupportPrompts = z.infer<typeof customSupportPromptsSchema>;
type modelType = ModeConfig & {
    [key: string]: unknown;
};
/**
 * DEFAULT_MODES
 */
declare const DEFAULT_MODES: readonly modelType[];

/**
 * ReasoningEffort
 */
declare const reasoningEfforts: readonly ["low", "medium", "high"];
declare const reasoningEffortsSchema: z.ZodEnum<["low", "medium", "high"]>;
type ReasoningEffort = z.infer<typeof reasoningEffortsSchema>;
/**
 * ReasoningEffortWithMinimal
 */
declare const reasoningEffortWithMinimalSchema: z.ZodUnion<[z.ZodEnum<["low", "medium", "high"]>, z.ZodLiteral<"minimal">]>;
type ReasoningEffortWithMinimal = z.infer<typeof reasoningEffortWithMinimalSchema>;
/**
 * Extended Reasoning Effort (includes "none" and "minimal")
 * Note: "disable" is a UI/control value, not a value sent as effort
 */
declare const reasoningEffortsExtended: readonly ["none", "minimal", "low", "medium", "high", "xhigh"];
declare const reasoningEffortExtendedSchema: z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>;
type ReasoningEffortExtended = z.infer<typeof reasoningEffortExtendedSchema>;
/**
 * Reasoning Effort user setting (includes "disable")
 */
declare const reasoningEffortSettingValues: readonly ["disable", "none", "minimal", "low", "medium", "high", "xhigh"];
declare const reasoningEffortSettingSchema: z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>;
/**
 * Verbosity
 */
declare const verbosityLevels: readonly ["low", "medium", "high"];
declare const verbosityLevelsSchema: z.ZodEnum<["low", "medium", "high"]>;
type VerbosityLevel = z.infer<typeof verbosityLevelsSchema>;
/**
 * Service tiers (OpenAI Responses API)
 */
declare const serviceTiers: readonly ["default", "flex", "priority"];
declare const serviceTierSchema: z.ZodEnum<["default", "flex", "priority"]>;
type ServiceTier = z.infer<typeof serviceTierSchema>;
/**
 * ModelParameter
 */
declare const modelParameters: readonly ["max_tokens", "temperature", "reasoning", "include_reasoning"];
declare const modelParametersSchema: z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>;
type ModelParameter = z.infer<typeof modelParametersSchema>;
declare const isModelParameter: (value: string) => value is ModelParameter;
/**
 * ModelInfo
 */
declare const modelInfoSchema: z.ZodObject<{
    maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    maxThinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
    contextWindow: z.ZodNumber;
    supportsImages: z.ZodOptional<z.ZodBoolean>;
    id: z.ZodOptional<z.ZodString>;
    maxTokensKey: z.ZodOptional<z.ZodString>;
    creditConsumption: z.ZodOptional<z.ZodNumber>;
    creditDiscount: z.ZodOptional<z.ZodNumber>;
    supportsPromptCache: z.ZodBoolean;
    promptCacheRetention: z.ZodOptional<z.ZodEnum<["in_memory", "24h"]>>;
    supportsVerbosity: z.ZodOptional<z.ZodBoolean>;
    supportsReasoningBudget: z.ZodOptional<z.ZodBoolean>;
    supportsReasoningBinary: z.ZodOptional<z.ZodBoolean>;
    supportsTemperature: z.ZodOptional<z.ZodBoolean>;
    defaultTemperature: z.ZodOptional<z.ZodNumber>;
    requiredReasoningBudget: z.ZodOptional<z.ZodBoolean>;
    supportsReasoningEffort: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["disable", "none", "minimal", "low", "medium", "high", "xhigh"]>, "many">]>>;
    requiredReasoningEffort: z.ZodOptional<z.ZodBoolean>;
    preserveReasoning: z.ZodOptional<z.ZodBoolean>;
    supportedParameters: z.ZodOptional<z.ZodArray<z.ZodEnum<["max_tokens", "temperature", "reasoning", "include_reasoning"]>, "many">>;
    inputPrice: z.ZodOptional<z.ZodNumber>;
    outputPrice: z.ZodOptional<z.ZodNumber>;
    cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
    cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
    longContextPricing: z.ZodOptional<z.ZodObject<{
        thresholdTokens: z.ZodNumber;
        inputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
        outputPriceMultiplier: z.ZodOptional<z.ZodNumber>;
        cacheWritesPriceMultiplier: z.ZodOptional<z.ZodNumber>;
        cacheReadsPriceMultiplier: z.ZodOptional<z.ZodNumber>;
        appliesToServiceTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["default", "flex", "priority"]>, "many">>;
    }, "strip", z.ZodTypeAny, {
        thresholdTokens: number;
        inputPriceMultiplier?: number | undefined;
        outputPriceMultiplier?: number | undefined;
        cacheWritesPriceMultiplier?: number | undefined;
        cacheReadsPriceMultiplier?: number | undefined;
        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
    }, {
        thresholdTokens: number;
        inputPriceMultiplier?: number | undefined;
        outputPriceMultiplier?: number | undefined;
        cacheWritesPriceMultiplier?: number | undefined;
        cacheReadsPriceMultiplier?: number | undefined;
        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
    }>>;
    description: z.ZodOptional<z.ZodString>;
    reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
    minTokensPerCachePoint: z.ZodOptional<z.ZodNumber>;
    maxCachePoints: z.ZodOptional<z.ZodNumber>;
    cachableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    deprecated: z.ZodOptional<z.ZodBoolean>;
    isStealthModel: z.ZodOptional<z.ZodBoolean>;
    isFree: z.ZodOptional<z.ZodBoolean>;
    excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    includedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    /**
     * Service tiers with pricing information.
     * Each tier can have a name (for OpenAI service tiers) and pricing overrides.
     * The top-level input/output/cache* fields represent the default/standard tier.
     */
    tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
        name: z.ZodOptional<z.ZodEnum<["default", "flex", "priority"]>>;
        contextWindow: z.ZodNumber;
        inputPrice: z.ZodOptional<z.ZodNumber>;
        outputPrice: z.ZodOptional<z.ZodNumber>;
        cacheWritesPrice: z.ZodOptional<z.ZodNumber>;
        cacheReadsPrice: z.ZodOptional<z.ZodNumber>;
    }, "strip", z.ZodTypeAny, {
        contextWindow: number;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        name?: "default" | "flex" | "priority" | undefined;
    }, {
        contextWindow: number;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        name?: "default" | "flex" | "priority" | undefined;
    }>, "many">>;
}, "strip", z.ZodTypeAny, {
    contextWindow: number;
    supportsPromptCache: boolean;
    id?: string | undefined;
    maxTokens?: number | null | undefined;
    maxThinkingTokens?: number | null | undefined;
    supportsImages?: boolean | undefined;
    maxTokensKey?: string | undefined;
    creditConsumption?: number | undefined;
    creditDiscount?: number | undefined;
    promptCacheRetention?: "in_memory" | "24h" | undefined;
    supportsVerbosity?: boolean | undefined;
    supportsReasoningBudget?: boolean | undefined;
    supportsReasoningBinary?: boolean | undefined;
    supportsTemperature?: boolean | undefined;
    defaultTemperature?: number | undefined;
    requiredReasoningBudget?: boolean | undefined;
    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
    requiredReasoningEffort?: boolean | undefined;
    preserveReasoning?: boolean | undefined;
    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
    inputPrice?: number | undefined;
    outputPrice?: number | undefined;
    cacheWritesPrice?: number | undefined;
    cacheReadsPrice?: number | undefined;
    longContextPricing?: {
        thresholdTokens: number;
        inputPriceMultiplier?: number | undefined;
        outputPriceMultiplier?: number | undefined;
        cacheWritesPriceMultiplier?: number | undefined;
        cacheReadsPriceMultiplier?: number | undefined;
        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
    } | undefined;
    description?: string | undefined;
    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    minTokensPerCachePoint?: number | undefined;
    maxCachePoints?: number | undefined;
    cachableFields?: string[] | undefined;
    deprecated?: boolean | undefined;
    isStealthModel?: boolean | undefined;
    isFree?: boolean | undefined;
    excludedTools?: string[] | undefined;
    includedTools?: string[] | undefined;
    tiers?: {
        contextWindow: number;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        name?: "default" | "flex" | "priority" | undefined;
    }[] | undefined;
}, {
    contextWindow: number;
    supportsPromptCache: boolean;
    id?: string | undefined;
    maxTokens?: number | null | undefined;
    maxThinkingTokens?: number | null | undefined;
    supportsImages?: boolean | undefined;
    maxTokensKey?: string | undefined;
    creditConsumption?: number | undefined;
    creditDiscount?: number | undefined;
    promptCacheRetention?: "in_memory" | "24h" | undefined;
    supportsVerbosity?: boolean | undefined;
    supportsReasoningBudget?: boolean | undefined;
    supportsReasoningBinary?: boolean | undefined;
    supportsTemperature?: boolean | undefined;
    defaultTemperature?: number | undefined;
    requiredReasoningBudget?: boolean | undefined;
    supportsReasoningEffort?: boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
    requiredReasoningEffort?: boolean | undefined;
    preserveReasoning?: boolean | undefined;
    supportedParameters?: ("reasoning" | "max_tokens" | "temperature" | "include_reasoning")[] | undefined;
    inputPrice?: number | undefined;
    outputPrice?: number | undefined;
    cacheWritesPrice?: number | undefined;
    cacheReadsPrice?: number | undefined;
    longContextPricing?: {
        thresholdTokens: number;
        inputPriceMultiplier?: number | undefined;
        outputPriceMultiplier?: number | undefined;
        cacheWritesPriceMultiplier?: number | undefined;
        cacheReadsPriceMultiplier?: number | undefined;
        appliesToServiceTiers?: ("default" | "flex" | "priority")[] | undefined;
    } | undefined;
    description?: string | undefined;
    reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
    minTokensPerCachePoint?: number | undefined;
    maxCachePoints?: number | undefined;
    cachableFields?: string[] | undefined;
    deprecated?: boolean | undefined;
    isStealthModel?: boolean | undefined;
    isFree?: boolean | undefined;
    excludedTools?: string[] | undefined;
    includedTools?: string[] | undefined;
    tiers?: {
        contextWindow: number;
        inputPrice?: number | undefined;
        outputPrice?: number | undefined;
        cacheWritesPrice?: number | undefined;
        cacheReadsPrice?: number | undefined;
        name?: "default" | "flex" | "priority" | undefined;
    }[] | undefined;
}>;
type ModelInfo = z.infer<typeof modelInfoSchema>;
interface ICostrictModelResponseData extends ModelInfo {
    id?: string;
}
type ModelRecord = Record<string, ModelInfo>;
type RouterModels = Record<DynamicProvider | LocalProvider, ModelRecord>;

/**
 * Skill metadata for discovery (loaded at startup)
 * Only name and description are required for now
 */
interface SkillMetadata {
    name: string;
    description: string;
    path: string;
    source: "global" | "project";
    /**
     * @deprecated Use modeSlugs instead. Kept for backward compatibility.
     * If set, skill is only available in this mode.
     */
    mode?: string;
    /**
     * Mode slugs where this skill is available.
     * - undefined or empty array means the skill is available in all modes ("Any mode").
     * - An array with one or more mode slugs restricts the skill to those modes.
     */
    metadata?: {
        modeSlugs: string[];
        [key: string]: any;
    };
}
/**
 * Skill name validation constants per agentskills.io specification:
 * https://agentskills.io/specification
 *
 * Name constraints:
 * - 1-64 characters
 * - Lowercase letters, numbers, and hyphens only
 * - Must not start or end with a hyphen
 * - Must not contain consecutive hyphens
 */
declare const SKILL_NAME_MIN_LENGTH = 1;
declare const SKILL_NAME_MAX_LENGTH = 64;
/**
 * Regex pattern for valid skill names.
 * Matches: lowercase letters/numbers, optionally followed by groups of hyphen + lowercase letters/numbers.
 * This ensures no leading/trailing hyphens and no consecutive hyphens.
 */
declare const SKILL_NAME_REGEX: RegExp;
/**
 * Error codes for skill name validation.
 * These can be mapped to translation keys in the frontend or error messages in the backend.
 */
declare enum SkillNameValidationError {
    Empty = "empty",
    TooLong = "too_long",
    InvalidFormat = "invalid_format"
}
/**
 * Result of skill name validation.
 */
interface SkillNameValidationResult {
    valid: boolean;
    error?: SkillNameValidationError;
}
/**
 * Validate a skill name according to agentskills.io specification.
 *
 * @param name - The skill name to validate
 * @returns Validation result with error code if invalid
 */
declare function validateSkillName(name: string): SkillNameValidationResult;

/**
 * CommandExecutionStatus
 */
declare const commandExecutionStatusSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"started">;
    pid: z.ZodOptional<z.ZodNumber>;
    command: z.ZodString;
    agentTimeoutMs: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    command: string;
    status: "started";
    executionId: string;
    pid?: number | undefined;
    agentTimeoutMs?: number | undefined;
}, {
    command: string;
    status: "started";
    executionId: string;
    pid?: number | undefined;
    agentTimeoutMs?: number | undefined;
}>, z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"output">;
    output: z.ZodString;
    agentTimeoutMs: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    status: "output";
    output: string;
    executionId: string;
    agentTimeoutMs?: number | undefined;
}, {
    status: "output";
    output: string;
    executionId: string;
    agentTimeoutMs?: number | undefined;
}>, z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"exited">;
    exitCode: z.ZodOptional<z.ZodNumber>;
    agentTimeoutMs: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    status: "exited";
    executionId: string;
    exitCode?: number | undefined;
    agentTimeoutMs?: number | undefined;
}, {
    status: "exited";
    executionId: string;
    exitCode?: number | undefined;
    agentTimeoutMs?: number | undefined;
}>, z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"backgrounded">;
    timeoutMs: z.ZodOptional<z.ZodNumber>;
    agentTimeoutMs: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    status: "backgrounded";
    executionId: string;
    agentTimeoutMs?: number | undefined;
    timeoutMs?: number | undefined;
}, {
    status: "backgrounded";
    executionId: string;
    agentTimeoutMs?: number | undefined;
    timeoutMs?: number | undefined;
}>, z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"fallback">;
    agentTimeoutMs: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    status: "fallback";
    executionId: string;
    agentTimeoutMs?: number | undefined;
}, {
    status: "fallback";
    executionId: string;
    agentTimeoutMs?: number | undefined;
}>, z.ZodObject<{
    executionId: z.ZodString;
    status: z.ZodLiteral<"timeout">;
    agentTimeoutMs: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    status: "timeout";
    executionId: string;
    agentTimeoutMs?: number | undefined;
}, {
    status: "timeout";
    executionId: string;
    agentTimeoutMs?: number | undefined;
}>]>;
type CommandExecutionStatus = z.infer<typeof commandExecutionStatusSchema>;
/**
 * PersistedCommandOutput
 *
 * Represents the result of a terminal command execution that may have been
 * truncated and persisted to disk.
 *
 * When command output exceeds the configured preview threshold, the full
 * output is saved to a disk artifact file. The LLM receives this structure
 * which contains:
 * - A preview of the output (for immediate display in context)
 * - Metadata about the full output (size, truncation status)
 * - A path to the artifact file for later retrieval via `read_command_output`
 *
 * ## Usage in execute_command Response
 *
 * The response format depends on whether truncation occurred:
 *
 * **Not truncated** (output fits in preview):
 * ```json
 * {
 *   "preview": "full output here...",
 *   "totalBytes": 1234,
 *   "artifactPath": null,
 *   "truncated": false
 * }
 * ```
 *
 * **Truncated** (output exceeded threshold):
 * ```json
 * {
 *   "preview": "first 4KB of output...",
 *   "totalBytes": 1048576,
 *   "artifactPath": "/path/to/tasks/123/command-output/cmd-1706119234567.txt",
 *   "truncated": true
 * }
 * ```
 *
 * @see OutputInterceptor - Creates these results during command execution
 * @see ReadCommandOutputTool - Retrieves full content from artifact files
 */
interface PersistedCommandOutput {
    /**
     * Preview of the command output, truncated to the preview threshold.
     * Always contains the beginning of the output, even if truncated.
     */
    preview: string;
    /**
     * Total size of the command output in bytes.
     * Useful for determining if additional reads are needed.
     */
    totalBytes: number;
    /**
     * Absolute path to the artifact file containing full output.
     * `null` if output wasn't truncated (no artifact was created).
     */
    artifactPath: string | null;
    /**
     * Whether the output was truncated (exceeded preview threshold).
     * When `true`, use `read_command_output` to retrieve full content.
     */
    truncated: boolean;
}

/**
 * Tool parameter type definitions for native protocol
 */
/**
 * Read mode for the read_file tool.
 * - "slice": Simple offset/limit reading (default)
 * - "indentation": Semantic block extraction based on code structure
 */
type ReadFileMode = "slice" | "indentation";
/**
 * Indentation-mode configuration for the read_file tool.
 */
interface IndentationParams {
    /** 1-based line number to anchor indentation extraction (defaults to offset) */
    anchor_line?: number;
    /** Maximum indentation levels to include above anchor (0 = unlimited) */
    max_levels?: number;
    /** Include sibling blocks at the same indentation level */
    include_siblings?: boolean;
    /** Include file header (imports, comments at top) */
    include_header?: boolean;
    /** Hard cap on lines returned for indentation mode */
    max_lines?: number;
}
/**
 * Parameters for the read_file tool (new format).
 *
 * NOTE: This is the canonical, single-file-per-call shape.
 */
interface ReadFileParams {
    /** Path to the file, relative to workspace */
    path: string;
    /** Reading mode: "slice" (default) or "indentation" */
    mode?: ReadFileMode;
    /** 1-based line number to start reading from (slice mode, default: 1) */
    offset?: number;
    /** Maximum number of lines to read (default: 2000) */
    limit?: number;
    /** Indentation-mode configuration (only used when mode === "indentation") */
    indentation?: IndentationParams;
}
/**
 * Line range specification for legacy read_file format.
 * Represents a contiguous range of lines [start, end] (1-based, inclusive).
 */
interface LineRange {
    start: number;
    end: number;
}
/**
 * File entry for legacy read_file format.
 * Supports reading multiple disjoint line ranges from a single file.
 */
interface FileEntry {
    /** Path to the file, relative to workspace */
    path: string;
    /** Optional list of line ranges to read (if omitted, reads entire file) */
    lineRanges?: LineRange[];
}
/**
 * Legacy parameters for the read_file tool (pre-refactor format).
 * Supports reading multiple files in a single call with optional line ranges.
 *
 * @deprecated Use ReadFileParams instead. This format is maintained for
 * backward compatibility with existing chat histories.
 */
interface LegacyReadFileParams {
    /** Array of file entries to read */
    files: FileEntry[];
    /** Discriminant flag for type narrowing */
    _legacyFormat: true;
}
/**
 * Union type for read_file tool parameters.
 * Supports both new single-file format and legacy multi-file format.
 */
type ReadFileToolParams = ReadFileParams | LegacyReadFileParams;
/**
 * Type guard to check if params are in legacy format.
 */
declare function isLegacyReadFileParams(params: ReadFileToolParams): params is LegacyReadFileParams;
interface Coordinate {
    x: number;
    y: number;
}
interface Size {
    width: number;
    height: number;
}
interface GenerateImageParams {
    prompt: string;
    path: string;
    image?: string;
}

/**
 * OpenAI Codex usage/rate limit information (ChatGPT subscription)
 */
interface OpenAiCodexRateLimitInfo {
    primary?: {
        /** Used percent in 0–100 */
        usedPercent: number;
        /** Window length in minutes, when provided */
        windowMinutes?: number;
        /** Reset time (unix ms since epoch), when provided */
        resetsAt?: number;
    };
    secondary?: {
        /** Used percent in 0–100 */
        usedPercent: number;
        /** Window length in minutes, when provided */
        windowMinutes?: number;
        /** Reset time (unix ms since epoch), when provided */
        resetsAt?: number;
    };
    credits?: {
        hasCredits: boolean;
        unlimited: boolean;
        balance?: string;
    };
    planType?: string;
    /** Timestamp when this was fetched (unix ms since epoch) */
    fetchedAt: number;
}

/**
 * Worktree Types
 *
 * Platform-agnostic type definitions for git worktree operations.
 * These types are decoupled from VSCode and can be used by any consumer.
 */
/**
 * Represents a git worktree
 */
interface Worktree {
    /** Absolute path to the worktree directory */
    path: string;
    /** Branch name - empty string if detached HEAD */
    branch: string;
    /** Current commit hash */
    commitHash: string;
    /** Whether this is the current worktree (matches cwd) */
    isCurrent: boolean;
    /** Whether this is the bare/main repository */
    isBare: boolean;
    /** Whether HEAD is detached (not on a branch) */
    isDetached: boolean;
    /** Whether the worktree is locked */
    isLocked: boolean;
    /** Reason for lock if locked */
    lockReason?: string;
}
/**
 * Result of a worktree operation (create, delete, etc.)
 */
interface WorktreeResult {
    /** Whether the operation succeeded */
    success: boolean;
    /** Human-readable message describing the result */
    message: string;
    /** The worktree that was affected (if applicable) */
    worktree?: Worktree;
}
/**
 * Branch information for worktree creation
 */
interface BranchInfo {
    /** Local branches available */
    localBranches: string[];
    /** Remote branches available */
    remoteBranches: string[];
    /** Currently checked out branch */
    currentBranch: string;
}
/**
 * Options for creating a worktree
 */
interface CreateWorktreeOptions {
    /** Path where the worktree will be created */
    path: string;
    /** Branch name to checkout or create */
    branch?: string;
    /** Base branch to create new branch from */
    baseBranch?: string;
    /** If true, create a new branch; if false, checkout existing branch */
    createNewBranch?: boolean;
}
/**
 * Status of .worktreeinclude file
 */
interface WorktreeIncludeStatus {
    /** Whether .worktreeinclude exists in the directory */
    exists: boolean;
    /** Whether .gitignore exists in the directory */
    hasGitignore: boolean;
    /** Content of .gitignore (for creating .worktreeinclude) */
    gitignoreContent?: string;
}
/**
 * Response for listWorktrees handler
 */
interface WorktreeListResponse {
    worktrees: Worktree[];
    isGitRepo: boolean;
    error?: string;
    isMultiRoot: boolean;
    isSubfolder: boolean;
    gitRootPath: string;
}
/**
 * Response for worktree defaults
 */
interface WorktreeDefaultsResponse {
    suggestedBranch: string;
    suggestedPath: string;
    error?: string;
}

type CostrictCodeMode = "vibe" | "strict" | "raw" | "plan";
/**
 * ExtensionMessage
 * Extension -> Webview | CLI
 */
interface ExtensionMessage {
    type: "action" | "state" | "taskHistoryUpdated" | "taskHistoryItemUpdated" | "selectedImages" | "theme" | "workspaceUpdated" | "invoke" | "messageUpdated" | "mcpServers" | "enhancedPrompt" | "commitSearchResults" | "listApiConfig" | "routerModels" | "openAiModels" | "costrictModels" | "costrictLogined" | "showReauthConfirmationDialog" | "costrictQuotaInfo" | "costrictInviteCode" | "costrictNotices" | "settingsUpdated" | "streamingStatusUpdated" | "ollamaModels" | "lmStudioModels" | "vsCodeLmModels" | "vsCodeLmApiAvailable" | "updatePrompt" | "systemPrompt" | "autoApprovalEnabled" | "updateCustomMode" | "deleteCustomMode" | "exportModeResult" | "importModeResult" | "checkRulesDirectoryResult" | "deleteCustomModeCheck" | "currentCheckpointUpdated" | "checkpointInitWarning" | "showHumanRelayDialog" | "humanRelayResponse" | "humanRelayCancel" | "ttsStart" | "ttsStop" | "fileSearchResults" | "toggleApiConfigPin" | "acceptInput" | "setHistoryPreviewCollapsed" | "commandExecutionStatus" | "mcpExecutionStatus" | "vsCodeSetting" | "authenticatedUser" | "condenseTaskContextStarted" | "condenseTaskContextResponse" | "singleRouterModelFetchResponse" | "rooCreditBalance" | "indexingStatusUpdate" | "indexCleared" | "codebaseIndexConfig" | "marketplaceInstallResult" | "marketplaceRemoveResult" | "marketplaceData" | "shareTaskSuccess" | "codeIndexSettingsSaved" | "codeIndexSecretStatus" | "showDeleteMessageDialog" | "showEditMessageDialog" | "reviewTaskUpdate" | "issueStatusUpdated" | "reviewHistoryResponse" | "reviewHistoryEntryDeleted" | "reviewIssueByIdLoaded" | "getReviewIssueById" | "commands" | "insertTextIntoTextarea" | "dismissedUpsells" | "organizationSwitchResult" | "interactionRequired" | "claudeCodeRateLimits" | "reviewFilesResponse" | "customToolsResult" | "modes" | "taskWithAggregatedCosts" | "openAiCodexRateLimits" | "worktreeList" | "worktreeResult" | "worktreeCopyProgress" | "branchList" | "worktreeDefaults" | "worktreeIncludeStatus" | "branchWorktreeIncludeResult" | "folderSelected" | "customStoragePathSelected" | "skills" | "fileContent" | "CostrictCliOutput" | "CostrictCliExit" | "CostrictCliError" | "CostrictCliClear" | "CostrictCliPasteUnavailable" | "CostrictCliRestart" | "CostrictCliHttpReady" | "CostrictCliToast";
    text?: string;
    /** For fileContent: { path, content, error? } */
    fileContent?: {
        path: string;
        content: string | null;
        error?: string;
    };
    payload?: any;
    checkpointWarning?: {
        type: "WAIT_TIMEOUT" | "INIT_TIMEOUT";
        timeout: number;
    };
    action?: "chatButtonClicked" | "settingsButtonClicked" | "openCreateModeDialog" | "historyButtonClicked" | "marketplaceButtonClicked" | "cloudButtonClicked" | "costrictAccountButtonClicked" | "didBecomeVisible" | "focusInput" | "switchTab" | "toggleAutoApprove" | "codeReviewButtonClicked";
    invoke?: "newChat" | "sendMessage" | "primaryButtonClick" | "secondaryButtonClick" | "setChatBoxMessage" | "setChatBoxMessageByContext";
    state?: Partial<ExtensionState>;
    images?: string[];
    filePaths?: string[];
    openedTabs?: Array<{
        label: string;
        isActive: boolean;
        path?: string;
    }>;
    clineMessage?: ClineMessage;
    routerModels?: RouterModels;
    openAiModels?: string[];
    ollamaModels?: ModelRecord;
    lmStudioModels?: ModelRecord;
    fullResponseData?: ICostrictModelResponseData[];
    vsCodeLmModels?: {
        vendor?: string;
        family?: string;
        version?: string;
        id?: string;
    }[];
    mcpServers?: McpServer[];
    commits?: GitCommit[];
    listApiConfig?: ProviderSettingsEntry[];
    mode?: string;
    customMode?: ModeConfig;
    slug?: string;
    success?: boolean;
    /** Generic payload for extension messages that use `values` */
    values?: Record<string, any>;
    requestId?: string;
    promptText?: string;
    results?: {
        path: string;
        type: "file" | "folder";
        label?: string;
    }[] | {
        name: string;
        description?: string;
        argumentHint?: string;
        source: "global" | "project" | "built-in";
    }[];
    error?: string;
    setting?: string;
    value?: any;
    hasContent?: boolean;
    items?: MarketplaceItem[];
    userInfo?: CloudUserInfo;
    organizationAllowList?: OrganizationAllowList;
    tab?: string;
    marketplaceItems?: MarketplaceItem[];
    organizationMcps?: MarketplaceItem[];
    marketplaceInstalledMetadata?: MarketplaceInstalledMetadata;
    errors?: string[];
    visibility?: ShareVisibility;
    rulesFolderPath?: string;
    settings?: any;
    messageTs?: number;
    hasCheckpoint?: boolean;
    context?: string;
    commands?: Command[];
    selectText?: string;
    queuedMessages?: QueuedMessage[];
    list?: string[];
    organizationId?: string | null;
    notices?: Array<INotice>;
    tools?: SerializedCustomToolDefinition[];
    skills?: SkillMetadata[];
    modes?: {
        slug: string;
        name: string;
    }[];
    aggregatedCosts?: {
        totalCost: number;
        ownCost: number;
        childrenCost: number;
    };
    historyItem?: HistoryItem;
    taskHistory?: HistoryItem[];
    /** For taskHistoryItemUpdated: single updated/added history item */
    taskHistoryItem?: HistoryItem;
    worktrees?: Array<{
        path: string;
        branch: string;
        commitHash: string;
        isCurrent: boolean;
        isBare: boolean;
        isDetached: boolean;
        isLocked: boolean;
        lockReason?: string;
    }>;
    isGitRepo?: boolean;
    isMultiRoot?: boolean;
    isSubfolder?: boolean;
    gitRootPath?: string;
    worktreeResult?: {
        success: boolean;
        message: string;
        worktree?: {
            path: string;
            branch: string;
            commitHash: string;
            isCurrent: boolean;
            isBare: boolean;
            isDetached: boolean;
            isLocked: boolean;
            lockReason?: string;
        };
    };
    localBranches?: string[];
    remoteBranches?: string[];
    currentBranch?: string;
    suggestedBranch?: string;
    suggestedPath?: string;
    worktreeIncludeExists?: boolean;
    worktreeIncludeStatus?: WorktreeIncludeStatus;
    hasGitignore?: boolean;
    gitignoreContent?: string;
    branch?: string;
    hasWorktreeInclude?: boolean;
    copyProgressBytesCopied?: number;
    copyProgressTotalBytes?: number;
    copyProgressItemName?: string;
    path?: string;
}
interface OpenAiCodexRateLimitsMessage {
    type: "openAiCodexRateLimits";
    values?: OpenAiCodexRateLimitInfo;
    error?: string;
}
type ExtensionState = Pick<GlobalSettings, "currentApiConfigName" | "useCostrictCustomConfig" | "listApiConfigMeta" | "pinnedApiConfigs" | "customInstructions" | "dismissedUpsells" | "autoApprovalEnabled" | "alwaysAllowReadOnly" | "alwaysAllowReadOnlyOutsideWorkspace" | "alwaysAllowWrite" | "autoCleanup" | "debug" | "alwaysAllowWriteOutsideWorkspace" | "alwaysAllowWriteProtected" | "alwaysAllowMcp" | "alwaysAllowModeSwitch" | "alwaysAllowSubtasks" | "alwaysAllowFollowupQuestions" | "alwaysAllowExecute" | "followupAutoApproveTimeoutMs" | "allowedCommands" | "deniedCommands" | "allowedMaxRequests" | "allowedMaxCost" | "ttsEnabled" | "ttsSpeed" | "soundEnabled" | "soundVolume" | "terminalOutputPreviewSize" | "terminalShellIntegrationTimeout" | "terminalShellIntegrationDisabled" | "terminalCommandDelay" | "terminalPowershellCounter" | "terminalZshClearEolMark" | "terminalZshOhMy" | "terminalZshP10k" | "terminalZdotdir" | "execaShellPath" | "diagnosticsEnabled" | "language" | "modeApiConfigs" | "customModePrompts" | "customSupportPrompts" | "enhancementApiConfigId" | "customCondensingPrompt" | "codebaseIndexConfig" | "codebaseIndexModels" | "profileThresholds" | "includeDiagnosticMessages" | "maxDiagnosticMessages" | "imageGenerationProvider" | "openRouterImageGenerationSelectedModel" | "includeTaskHistoryInEnhance" | "reasoningBlockCollapsed" | "showSpeedInfo" | "automaticallyFocus" | "collapseMarkdownWithoutScroll" | "errorCode" | "enterBehavior" | "includeCurrentTime" | "includeCurrentCost" | "maxGitStatusFiles" | "requestDelaySeconds" | "experimentSettings" | "showWorktreesInHomeScreen" | "disabledTools"> & {
    lockApiConfigAcrossModes?: boolean;
    version: string;
    clineMessages: ClineMessage[];
    currentTaskId?: string;
    currentTaskItem?: HistoryItem;
    currentTaskTodos?: TodoItem[];
    apiConfiguration: ProviderSettings;
    uriScheme?: string;
    shouldShowAnnouncement: boolean;
    taskHistory: HistoryItem[];
    writeDelayMs: number;
    customStoragePath?: string;
    enableCheckpoints: boolean;
    checkpointTimeout: number;
    maxOpenTabsContext: number;
    maxWorkspaceFiles: number;
    showRooIgnoredFiles: boolean;
    enableSubfolderRules: boolean;
    maxReadFileLine?: number;
    maxImageFileSize: number;
    maxTotalImageSize: number;
    experiments: Experiments;
    mcpEnabled: boolean;
    costrictCodeMode?: CostrictCodeMode;
    mode: string;
    customModes: ModeConfig[];
    toolRequirements?: Record<string, boolean>;
    cwd?: string;
    telemetrySetting: TelemetrySetting;
    telemetryKey?: string;
    machineId?: string;
    renderContext: "sidebar" | "editor";
    settingsImportedAt?: number;
    historyPreviewCollapsed?: boolean;
    cloudUserInfo: CloudUserInfo | null;
    cloudIsAuthenticated: boolean;
    cloudAuthSkipModel?: boolean;
    cloudApiUrl?: string;
    cloudOrganizations?: CloudOrganizationMembership[];
    sharingEnabled: boolean;
    publicSharingEnabled: boolean;
    organizationAllowList: OrganizationAllowList;
    organizationSettingsVersion?: number;
    autoCondenseContext: boolean;
    autoCondenseContextPercent: number;
    marketplaceItems?: MarketplaceItem[];
    marketplaceInstalledMetadata?: {
        project: Record<string, any>;
        global: Record<string, any>;
    };
    profileThresholds: Record<string, number>;
    hasOpenedModeSelector: boolean;
    hasClosedCodeReviewWelcomeTips: boolean;
    openRouterImageApiKey?: string;
    messageQueue?: QueuedMessage[];
    lastShownAnnouncementId?: string;
    apiModelId?: string;
    mcpServers?: McpServer[];
    mcpAsyncTaskRecords?: McpAsyncTaskSummary[];
    mdmCompliant?: boolean;
    taskSyncEnabled: boolean;
    claudeCodeIsAuthenticated?: boolean;
    openAiCodexIsAuthenticated?: boolean;
    debug?: boolean;
    /**
     * Monotonically increasing sequence number for clineMessages state pushes.
     * When present, the frontend should only apply clineMessages from a state push
     * if its seq is greater than the last applied seq. This prevents stale state
     * (captured during async getStateToPostToWebview) from overwriting newer messages.
     */
    clineMessagesSeq?: number;
    /**
     * Indicates whether extension is currently streaming responses from AI.
     * This state is managed by backend and updated via streamingStatusUpdated messages.
     */
    isStreaming?: boolean;
};
interface Command {
    name: string;
    source: "global" | "project" | "built-in";
    filePath?: string;
    description?: string;
    argumentHint?: string;
}
/**
 * WebviewMessage
 * Webview | CLI -> Extension
 */
type ClineAskResponse = "yesButtonClicked" | "noButtonClicked" | "messageResponse" | "objectResponse" | "multipleChoiceResponse";
type AudioType = "notification" | "celebration" | "progress_loop";
interface UpdateTodoListPayload {
    todos: any[];
}
type EditQueuedMessagePayload = Pick<QueuedMessage, "id" | "text" | "images">;
interface WebviewMessage {
    type: "copyApiError" | "showTaskWithIdInNewTab" | "costrictDeleteProfile" | "costrictLogin" | "costrictLogout" | "costrictCodeMode" | "useCostrictCustomConfig" | "fetchCostrictQuotaInfo" | "costrictProviderTip" | "costrictTelemetry" | "fetchCostrictInviteCode" | "fixHistory" | "checkReviewSuggestion" | "cancelReviewTask" | "startCodereview" | "getReviewFiles" | "createReviewTask" | "setCodeReviewWelcomeTips" | "showFileDiff" | "getReviewHistory" | "getReviewIssueById" | "deleteReviewHistoryItem" | "showReviewComment" | "humanRelayResponse" | "settingsButtonclicked" | "humanRelayCancel" | "updateTodoList" | "deleteMultipleTasksWithIds" | "currentApiConfigName" | "saveApiConfiguration" | "upsertApiConfiguration" | "deleteApiConfiguration" | "loadApiConfiguration" | "loadApiConfigurationById" | "renameApiConfiguration" | "getListApiConfiguration" | "customInstructions" | "webviewDidLaunch" | "newTask" | "askResponse" | "terminalOperation" | "clearTask" | "didShowAnnouncement" | "selectImages" | "exportCurrentTask" | "shareCurrentTask" | "showTaskWithId" | "deleteTaskWithId" | "exportTaskWithId" | "backupTasks" | "restoreTasks" | "importSettings" | "exportSettings" | "resetState" | "requestReloadWebview" | "flushRouterModels" | "requestRouterModels" | "requestOpenAiModels" | "requestOllamaModels" | "requestLmStudioModels" | "requestRooModels" | "requestRooCreditBalance" | "requestVsCodeLmModels" | "openImage" | "saveImage" | "openFile" | "readFileContent" | "openMention" | "cancelTask" | "cancelAutoApproval" | "updateVSCodeSetting" | "getVSCodeSetting" | "vsCodeSetting" | "updateCondensingPrompt" | "playSound" | "playTts" | "stopTts" | "ttsEnabled" | "ttsSpeed" | "openKeyboardShortcuts" | "openMcpSettings" | "openProjectMcpSettings" | "restartMcpServer" | "refreshAllMcpServers" | "queryMcpAsyncTask" | "toggleToolAlwaysAllow" | "toggleToolEnabledForPrompt" | "toggleMcpServer" | "updateMcpTimeout" | "enhancePrompt" | "enhancedPrompt" | "draggedImages" | "deleteMessage" | "deleteMessageConfirm" | "submitEditedMessage" | "editMessageConfirm" | "taskSyncEnabled" | "searchCommits" | "setApiConfigPassword" | "mode" | "updatePrompt" | "getSystemPrompt" | "copySystemPrompt" | "systemPrompt" | "enhancementApiConfigId" | "autoApprovalEnabled" | "updateCustomMode" | "deleteCustomMode" | "setopenAiCustomModelInfo" | "openCustomModesSettings" | "checkpointDiff" | "checkpointRestore" | "deleteMcpServer" | "codebaseIndexEnabled" | "telemetrySetting" | "searchFiles" | "toggleApiConfigPin" | "hasOpenedModeSelector" | "lockApiConfigAcrossModes" | "clearCloudAuthSkipModel" | "cloudButtonClicked" | "rooCloudSignIn" | "cloudLandingPageSignIn" | "rooCloudSignOut" | "rooCloudManualUrl" | "claudeCodeSignIn" | "claudeCodeSignOut" | "openAiCodexSignIn" | "openAiCodexSignOut" | "switchOrganization" | "condenseTaskContextRequest" | "requestIndexingStatus" | "startIndexing" | "stopIndexing" | "clearIndexData" | "indexingStatusUpdate" | "indexCleared" | "toggleWorkspaceIndexing" | "setAutoEnableDefault" | "browseForCustomStoragePath" | "focusPanelRequest" | "openExternal" | "filterMarketplaceItems" | "marketplaceButtonClicked" | "installMarketplaceItem" | "installMarketplaceItemWithParameters" | "cancelMarketplaceInstall" | "removeInstalledMarketplaceItem" | "marketplaceInstallResult" | "fetchMarketplaceData" | "switchTab" | "shareTaskSuccess" | "exportMode" | "exportModeResult" | "importMode" | "importModeResult" | "checkRulesDirectory" | "checkRulesDirectoryResult" | "saveCodeIndexSettingsAtomic" | "requestCodeIndexSecretStatus" | "requestCommands" | "openCommandFile" | "deleteCommand" | "createCommand" | "insertTextIntoTextarea" | "showMdmAuthRequiredNotification" | "imageGenerationSettings" | "queueMessage" | "removeQueuedMessage" | "editQueuedMessage" | "dismissUpsell" | "getDismissedUpsells" | "openMarkdownPreview" | "updateSettings" | "allowedCommands" | "getTaskWithAggregatedCosts" | "deniedCommands" | "openDebugApiHistory" | "openDebugUiHistory" | "downloadErrorDiagnostics" | "requestClaudeCodeRateLimits" | "requestOpenAiCodexRateLimits" | "refreshCustomTools" | "requestModes" | "switchMode" | "debugSetting" | "listWorktrees" | "createWorktree" | "deleteWorktree" | "switchWorktree" | "getAvailableBranches" | "getWorktreeDefaults" | "getWorktreeIncludeStatus" | "checkBranchWorktreeInclude" | "createWorktreeInclude" | "checkoutBranch" | "browseForWorktreePath" | "requestSkills" | "createSkill" | "deleteSkill" | "moveSkill" | "updateSkillModes" | "openSkillFile" | "CostrictCliStart" | "CostrictCliInput" | "CostrictCliRequestPaste" | "CostrictCliResize" | "CostrictCliStop" | "CostrictCliRestart";
    text?: string;
    issueId?: string;
    terminalPid?: number;
    executionId?: string;
    terminalCommand?: string;
    taskId?: string;
    editedMessageContent?: string;
    tab?: "settings" | "history" | "mcp" | "modes" | "chat" | "marketplace" | "cloud" | "costrict-account" | "codeReview" | "codeReviewHistory" | "cs-cli";
    disabled?: boolean;
    context?: string;
    dataUri?: string;
    askResponse?: ClineAskResponse;
    apiConfiguration?: ProviderSettings;
    images?: string[];
    bool?: boolean;
    value?: number;
    stepIndex?: number;
    isLaunchAction?: boolean;
    forceShow?: boolean;
    commands?: string[];
    audioType?: AudioType;
    serverName?: string;
    toolName?: string;
    recordId?: string;
    alwaysAllow?: boolean;
    isEnabled?: boolean;
    mode?: string;
    promptMode?: string | "enhance";
    customPrompt?: PromptComponent;
    dataUrls?: string[];
    /** Generic payload for webview messages that use `values` */
    values?: Record<string, any>;
    query?: string;
    setting?: string;
    slug?: string;
    modeConfig?: ModeConfig;
    timeout?: number;
    payload?: WebViewMessagePayload;
    source?: "global" | "project";
    skillName?: string;
    /** @deprecated Use skillModeSlugs instead */
    skillMode?: string;
    /** @deprecated Use newSkillModeSlugs instead */
    newSkillMode?: string;
    skillDescription?: string;
    /** Mode slugs for skill operations. undefined/empty = any mode */
    skillModeSlugs?: string[];
    /** Target mode slugs for updateSkillModes */
    newSkillModeSlugs?: string[];
    data?: string;
    cols?: number;
    rows?: number;
    exitCode?: number;
    ready?: boolean;
    port?: number | null;
    requestId?: string;
    ids?: string[];
    terminalOperation?: "continue" | "abort";
    messageTs?: number;
    restoreCheckpoint?: boolean;
    historyPreviewCollapsed?: boolean;
    filters?: {
        type?: string;
        search?: string;
        tags?: string[];
    };
    settings?: any;
    url?: string;
    mpItem?: MarketplaceItem;
    mpInstallOptions?: InstallMarketplaceItemOptions;
    config?: Record<string, any>;
    visibility?: ShareVisibility;
    hasContent?: boolean;
    checkOnly?: boolean;
    upsellId?: string;
    list?: string[];
    organizationId?: string | null;
    useProviderSignup?: boolean;
    codeIndexSettings?: {
        codebaseIndexEnabled: boolean;
        codebaseIndexQdrantUrl: string;
        codebaseIndexEmbedderProvider: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter";
        codebaseIndexEmbedderBaseUrl?: string;
        codebaseIndexEmbedderModelId: string;
        codebaseIndexEmbedderModelDimension?: number;
        codebaseIndexOpenAiCompatibleBaseUrl?: string;
        codebaseIndexBedrockRegion?: string;
        codebaseIndexBedrockProfile?: string;
        codebaseIndexSearchMaxResults?: number;
        codebaseIndexSearchMinScore?: number;
        codebaseIndexOpenRouterSpecificProvider?: string;
        codeIndexOpenAiKey?: string;
        codeIndexQdrantApiKey?: string;
        codebaseIndexOpenAiCompatibleApiKey?: string;
        codebaseIndexGeminiApiKey?: string;
        codebaseIndexMistralApiKey?: string;
        codebaseIndexVercelAiGatewayApiKey?: string;
        codebaseIndexOpenRouterApiKey?: string;
    };
    updatedSettings?: RooCodeSettings;
    /** Task configuration applied via `createTask()` when starting a cloud task. */
    taskConfiguration?: RooCodeSettings;
    worktreePath?: string;
    worktreeBranch?: string;
    worktreeBaseBranch?: string;
    worktreeCreateNewBranch?: boolean;
    worktreeForce?: boolean;
    worktreeNewWindow?: boolean;
    worktreeIncludeContent?: string;
    /** Conflict resolution strategy for restoreTasks: 'skip' (default) or 'overwrite'. */
    conflict?: "skip" | "overwrite";
}
interface RequestOpenAiCodexRateLimitsMessage {
    type: "requestOpenAiCodexRateLimits";
}
declare const checkoutDiffPayloadSchema: z.ZodObject<{
    ts: z.ZodOptional<z.ZodNumber>;
    previousCommitHash: z.ZodOptional<z.ZodString>;
    commitHash: z.ZodString;
    mode: z.ZodEnum<["full", "checkpoint", "from-init", "to-current"]>;
}, "strip", z.ZodTypeAny, {
    mode: "checkpoint" | "full" | "from-init" | "to-current";
    commitHash: string;
    ts?: number | undefined;
    previousCommitHash?: string | undefined;
}, {
    mode: "checkpoint" | "full" | "from-init" | "to-current";
    commitHash: string;
    ts?: number | undefined;
    previousCommitHash?: string | undefined;
}>;
type CheckpointDiffPayload = z.infer<typeof checkoutDiffPayloadSchema>;
declare const checkoutRestorePayloadSchema: z.ZodObject<{
    ts: z.ZodNumber;
    commitHash: z.ZodString;
    mode: z.ZodEnum<["preview", "restore"]>;
}, "strip", z.ZodTypeAny, {
    ts: number;
    mode: "preview" | "restore";
    commitHash: string;
}, {
    ts: number;
    mode: "preview" | "restore";
    commitHash: string;
}>;
type CheckpointRestorePayload = z.infer<typeof checkoutRestorePayloadSchema>;
interface IndexingStatusPayload {
    state: "Standby" | "Indexing" | "Indexed" | "Error" | "Stopping";
    message: string;
}
interface IndexClearedPayload {
    success: boolean;
    error?: string;
}
declare const installMarketplaceItemWithParametersPayloadSchema: z.ZodObject<{
    item: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
        id: z.ZodString;
        name: z.ZodString;
        description: z.ZodString;
        author: z.ZodOptional<z.ZodString>;
        authorUrl: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    } & {
        content: z.ZodString;
    } & {
        type: z.ZodLiteral<"mode">;
    }, "strip", z.ZodTypeAny, {
        type: "mode";
        id: string;
        description: string;
        name: string;
        content: string;
        tags?: string[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    }, {
        type: "mode";
        id: string;
        description: string;
        name: string;
        content: string;
        tags?: string[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    }>, z.ZodObject<{
        id: z.ZodString;
        name: z.ZodString;
        description: z.ZodString;
        author: z.ZodOptional<z.ZodString>;
        authorUrl: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    } & {
        url: z.ZodString;
        content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            content: z.ZodString;
            parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
                name: z.ZodString;
                key: z.ZodString;
                placeholder: z.ZodOptional<z.ZodString>;
                optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
            }, "strip", z.ZodTypeAny, {
                name: string;
                key: string;
                optional: boolean;
                placeholder?: string | undefined;
            }, {
                name: string;
                key: string;
                placeholder?: string | undefined;
                optional?: boolean | undefined;
            }>, "many">>;
            prerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                optional: boolean;
                placeholder?: string | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }, {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                placeholder?: string | undefined;
                optional?: boolean | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }>, "many">]>;
        parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            key: z.ZodString;
            placeholder: z.ZodOptional<z.ZodString>;
            optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
        }, "strip", z.ZodTypeAny, {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }, {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }>, "many">>;
    } & {
        type: z.ZodLiteral<"mcp">;
    }, "strip", z.ZodTypeAny, {
        type: "mcp";
        id: string;
        description: string;
        name: string;
        url: string;
        content: string | {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                optional: boolean;
                placeholder?: string | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }[];
        tags?: string[] | undefined;
        parameters?: {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    }, {
        type: "mcp";
        id: string;
        description: string;
        name: string;
        url: string;
        content: string | {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                placeholder?: string | undefined;
                optional?: boolean | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }[];
        tags?: string[] | undefined;
        parameters?: {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    }>]>;
    parameters: z.ZodRecord<z.ZodString, z.ZodAny>;
}, "strip", z.ZodTypeAny, {
    parameters: Record<string, any>;
    item: {
        type: "mode";
        id: string;
        description: string;
        name: string;
        content: string;
        tags?: string[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    } | {
        type: "mcp";
        id: string;
        description: string;
        name: string;
        url: string;
        content: string | {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                optional: boolean;
                placeholder?: string | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }[];
        tags?: string[] | undefined;
        parameters?: {
            name: string;
            key: string;
            optional: boolean;
            placeholder?: string | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    };
}, {
    parameters: Record<string, any>;
    item: {
        type: "mode";
        id: string;
        description: string;
        name: string;
        content: string;
        tags?: string[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    } | {
        type: "mcp";
        id: string;
        description: string;
        name: string;
        url: string;
        content: string | {
            name: string;
            content: string;
            parameters?: {
                name: string;
                key: string;
                placeholder?: string | undefined;
                optional?: boolean | undefined;
            }[] | undefined;
            prerequisites?: string[] | undefined;
        }[];
        tags?: string[] | undefined;
        parameters?: {
            name: string;
            key: string;
            placeholder?: string | undefined;
            optional?: boolean | undefined;
        }[] | undefined;
        prerequisites?: string[] | undefined;
        author?: string | undefined;
        authorUrl?: string | undefined;
    };
}>;
type InstallMarketplaceItemWithParametersPayload = z.infer<typeof installMarketplaceItemWithParametersPayloadSchema>;
interface ReviewFilesPayload {
    reviewType: "uncommitted" | "committed";
}
interface CreateReviewTaskPayload {
    files?: Array<{
        path: string;
        status: string;
    }>;
    mode?: string;
}
interface CodeReviewWelcomeTipsPayload {
    value: boolean;
}
type WebViewMessagePayload = CheckpointDiffPayload | CheckpointRestorePayload | IndexingStatusPayload | IndexClearedPayload | InstallMarketplaceItemWithParametersPayload | UpdateTodoListPayload | EditQueuedMessagePayload | ReviewFilesPayload | CreateReviewTaskPayload | CodeReviewWelcomeTipsPayload;
interface IndexingStatus {
    systemStatus: string;
    message?: string;
    processedItems: number;
    totalItems: number;
    currentItemUnit?: string;
    workspacePath?: string;
    workspaceEnabled?: boolean;
    autoEnableDefault?: boolean;
}
interface IndexingStatusUpdateMessage {
    type: "indexingStatusUpdate";
    values: IndexingStatus;
}
interface LanguageModelChatSelector {
    vendor?: string;
    family?: string;
    version?: string;
    id?: string;
}
interface ClineSayTool {
    tool: "editedExistingFile" | "appliedDiff" | "newFileCreated" | "codebaseSearch" | "readFile" | "readCommandOutput" | "listFilesTopLevel" | "listFilesRecursive" | "searchFiles" | "switchMode" | "newTask" | "finishTask" | "generateImage" | "imageGenerated" | "runSlashCommand" | "updateTodoList" | "skill" | "costrict_checkpoint";
    parentTaskId?: string;
    path?: string;
    readStart?: number;
    readEnd?: number;
    totalBytes?: number;
    searchPattern?: string;
    matchCount?: number;
    diff?: string;
    content?: string;
    originalContent?: string;
    diffStats?: {
        added: number;
        removed: number;
    };
    regex?: string;
    filePattern?: string;
    mode?: string;
    reason?: string;
    isOutsideWorkspace?: boolean;
    isProtected?: boolean;
    additionalFileCount?: number;
    lineNumber?: number;
    startLine?: number;
    query?: string;
    batchFiles?: Array<{
        path: string;
        lineSnippet: string;
        isOutsideWorkspace?: boolean;
        key: string;
        content?: string;
    }>;
    batchDiffs?: Array<{
        path: string;
        changeCount: number;
        key: string;
        content: string;
        diffStats?: {
            added: number;
            removed: number;
        };
        diffs?: Array<{
            content: string;
            startLine?: number;
        }>;
    }>;
    batchDirs?: Array<{
        path: string;
        recursive: boolean;
        isOutsideWorkspace?: boolean;
        key: string;
    }>;
    question?: string;
    imageData?: string;
    command?: string;
    args?: string;
    source?: string;
    description?: string;
    skill?: string;
}
interface ClineAskUseMcpServer {
    serverName: string;
    type: "use_mcp_tool" | "access_mcp_resource";
    toolName?: string;
    arguments?: string;
    uri?: string;
    response?: string;
}
interface ClineApiReqInfo {
    request?: string;
    tokensIn?: number;
    tokensOut?: number;
    cacheWrites?: number;
    cacheReads?: number;
    cost?: number;
    cancelReason?: ClineApiReqCancelReason;
    streamingFailedMessage?: string;
    apiProtocol?: "anthropic" | "openai";
    selectedLLM?: string;
    selectReason?: string;
    isAuto?: boolean;
    originModelId?: string;
    /** The fallback model ID actually used when primary model fails (set by ModelFallbackManager) */
    isFallbackActive?: boolean;
    requestIdTimestamp?: number;
    responseIdTimestamp?: number;
    responseEndTimestamp?: number;
    completionTokens?: number;
}
type ClineApiReqCancelReason = "streaming_failed" | "user_cancelled";

/**
 * CodeAction
 */
declare const codeActionIds: readonly ["explainCode", "fixCode", "improveCode", "addToContext", "newTask"];
type CodeActionId = (typeof codeActionIds)[number];
type CodeActionName = "EXPLAIN" | "FIX" | "IMPROVE" | "ADD_TO_CONTEXT" | "NEW_TASK" | "ZGSM_EXPLAIN" | "ZGSM_ADD_COMMENT" | "ZGSM_CODE_REVIEW" | "ZGSM_ADD_DEBUG_CODE" | "ZGSM_ADD_STRONG_CODE" | "ZGSM_SIMPLIFY_CODE" | "ZGSM_PERFORMANCE";
/**
 * TerminalAction
 */
declare const terminalActionIds: readonly ["terminalAddToContext", "terminalFixCommand", "terminalExplainCommand"];
type TerminalActionId = (typeof terminalActionIds)[number];
type TerminalActionName = "ADD_TO_CONTEXT" | "FIX" | "EXPLAIN";
type TerminalActionPromptType = `TERMINAL_${TerminalActionName}`;
/**
 * Command
 */
declare const commandIds: readonly ["activationCompleted", "plusButtonClicked", "historyButtonClicked", "marketplaceButtonClicked", "popoutButtonClicked", "openNewButtonClicked", "cloudButtonClicked", "settingsButtonClicked", "openInNewTab", "showHumanRelayDialog", "registerHumanRelayCallback", "unregisterHumanRelayCallback", "handleHumanRelayResponse", "newTask", "setCustomStoragePath", "importSettings", "backupTaskHistory", "restoreTaskHistory", "focusInput", "acceptInput", "focusPanel", "addFileToContext", "toggleAutoApprove", "generateCommitMessage", "reloadWebview"];
declare const costrictCommandIds: readonly ["codeReviewButtonClicked", "codeReview", "codeReviewJetbrains", "reviewFilesAndFoldersJetbrains", "securityFilesAndFoldersJetbrains", "askReviewSuggestionWithAIJetbrains", "acceptIssueJetbrains", "rejectIssueJetbrains", "reviewFilesAndFolders", "securityFilesAndFolders", "securityReviewCode", "reviewRepo", "reviewCommit", "askReviewSuggestionWithAI", "acceptIssue", "rejectIssue", "view.issue", "SidebarProvider.focus", "view.userHelperDoc", "codelens_button", "codelens_more_button", "login", "logout", "checkLoginStatus", "refreshToken", "coworkflow.updateSection", "coworkflow.runTask", "coworkflow.runAllTasks", "coworkflow.retryTask", "coworkflow.refreshCodeLens", "coworkflow.refreshDecorations", "coworkflow.runTest", "coworkflow.runTaskJetbrains", "coworkflow.runAllTasksJetbrains", "coworkflow.retryTaskJetbrains", "coworkflow.syncToDesignJetbrains", "coworkflow.syncToTasksJetbrains", "coworkflow.runTestJetbrains"];
type CostrictCommandId = (typeof costrictCommandIds)[number];
type CommandId = (typeof commandIds)[number];
/**
 * Language
 */
declare const languages: readonly ["ca", "de", "en", "es", "fr", "hi", "id", "it", "ja", "ko", "nl", "pl", "pt-BR", "ru", "tr", "vi", "zh-CN", "zh-TW"];
declare const languagesSchema: z.ZodEnum<["ca", "de", "en", "es", "fr", "hi", "id", "it", "ja", "ko", "nl", "pl", "pt-BR", "ru", "tr", "vi", "zh-CN", "zh-TW"]>;
type Language = z.infer<typeof languagesSchema>;
declare const isLanguage: (value: string) => value is Language;

type AnthropicModelId = keyof typeof anthropicModels;
declare const anthropicDefaultModelId: AnthropicModelId;
declare const anthropicModels: {
    readonly "claude-sonnet-4-6": {
        readonly maxTokens: 64000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 6;
            readonly outputPrice: 22.5;
            readonly cacheWritesPrice: 7.5;
            readonly cacheReadsPrice: 0.6;
        }];
    };
    readonly "claude-sonnet-4-5": {
        readonly maxTokens: 64000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 6;
            readonly outputPrice: 22.5;
            readonly cacheWritesPrice: 7.5;
            readonly cacheReadsPrice: 0.6;
        }];
    };
    readonly "claude-sonnet-4-20250514": {
        readonly maxTokens: 64000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 6;
            readonly outputPrice: 22.5;
            readonly cacheWritesPrice: 7.5;
            readonly cacheReadsPrice: 0.6;
        }];
    };
    readonly "claude-opus-4-6": {
        readonly maxTokens: 128000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 5;
        readonly outputPrice: 25;
        readonly cacheWritesPrice: 6.25;
        readonly cacheReadsPrice: 0.5;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 10;
            readonly outputPrice: 37.5;
            readonly cacheWritesPrice: 12.5;
            readonly cacheReadsPrice: 1;
        }];
    };
    readonly "claude-opus-4-5-20251101": {
        readonly maxTokens: 32000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 5;
        readonly outputPrice: 25;
        readonly cacheWritesPrice: 6.25;
        readonly cacheReadsPrice: 0.5;
        readonly supportsReasoningBudget: true;
    };
    readonly "claude-opus-4-1-20250805": {
        readonly maxTokens: 32000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 15;
        readonly outputPrice: 75;
        readonly cacheWritesPrice: 18.75;
        readonly cacheReadsPrice: 1.5;
        readonly supportsReasoningBudget: true;
    };
    readonly "claude-opus-4-20250514": {
        readonly maxTokens: 32000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 15;
        readonly outputPrice: 75;
        readonly cacheWritesPrice: 18.75;
        readonly cacheReadsPrice: 1.5;
        readonly supportsReasoningBudget: true;
    };
    readonly "claude-3-7-sonnet-20250219:thinking": {
        readonly maxTokens: 128000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly supportsReasoningBudget: true;
        readonly requiredReasoningBudget: true;
    };
    readonly "claude-3-7-sonnet-20250219": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
    };
    readonly "claude-3-5-sonnet-20241022": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
    };
    readonly "claude-3-5-haiku-20241022": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1;
        readonly outputPrice: 5;
        readonly cacheWritesPrice: 1.25;
        readonly cacheReadsPrice: 0.1;
    };
    readonly "claude-3-opus-20240229": {
        readonly maxTokens: 4096;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 15;
        readonly outputPrice: 75;
        readonly cacheWritesPrice: 18.75;
        readonly cacheReadsPrice: 1.5;
    };
    readonly "claude-3-haiku-20240307": {
        readonly maxTokens: 4096;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.25;
        readonly outputPrice: 1.25;
        readonly cacheWritesPrice: 0.3;
        readonly cacheReadsPrice: 0.03;
    };
    readonly "claude-haiku-4-5-20251001": {
        readonly maxTokens: 64000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1;
        readonly outputPrice: 5;
        readonly cacheWritesPrice: 1.25;
        readonly cacheReadsPrice: 0.1;
        readonly supportsReasoningBudget: true;
        readonly description: "Claude Haiku 4.5 delivers near-frontier intelligence at lightning speeds with extended thinking, vision, and multilingual support.";
    };
};
declare const ANTHROPIC_DEFAULT_MAX_TOKENS = 8192;

declare const basetenModels: {
    readonly "moonshotai/Kimi-K2-Thinking": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.5;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "Kimi K2 Thinking - A model with enhanced reasoning capabilities from Kimi K2";
    };
    readonly "zai-org/GLM-4.6": {
        readonly maxTokens: 16384;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.2;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "Frontier open model with advanced agentic, reasoning and coding capabilities";
    };
    readonly "deepseek-ai/DeepSeek-R1": {
        readonly maxTokens: 16384;
        readonly contextWindow: 163840;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 2.55;
        readonly outputPrice: 5.95;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "DeepSeek's first-generation reasoning model";
    };
    readonly "deepseek-ai/DeepSeek-R1-0528": {
        readonly maxTokens: 16384;
        readonly contextWindow: 163840;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 2.55;
        readonly outputPrice: 5.95;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "The latest revision of DeepSeek's first-generation reasoning model";
    };
    readonly "deepseek-ai/DeepSeek-V3-0324": {
        readonly maxTokens: 16384;
        readonly contextWindow: 163840;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.77;
        readonly outputPrice: 0.77;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "Fast general-purpose LLM with enhanced reasoning capabilities";
    };
    readonly "deepseek-ai/DeepSeek-V3.1": {
        readonly maxTokens: 16384;
        readonly contextWindow: 163840;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.5;
        readonly outputPrice: 1.5;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "Extremely capable general-purpose LLM with hybrid reasoning capabilities and advanced tool calling";
    };
    readonly "deepseek-ai/DeepSeek-V3.2": {
        readonly maxTokens: 16384;
        readonly contextWindow: 163840;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.3;
        readonly outputPrice: 0.45;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "DeepSeek's hybrid reasoning model with efficient long context scaling with GPT-5 level performance";
    };
    readonly "openai/gpt-oss-120b": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128072;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.5;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "Extremely capable general-purpose LLM with strong, controllable reasoning capabilities";
    };
    readonly "Qwen/Qwen3-235B-A22B-Instruct-2507": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.22;
        readonly outputPrice: 0.8;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "Mixture-of-experts LLM with math and reasoning capabilities";
    };
    readonly "Qwen/Qwen3-Coder-480B-A35B-Instruct": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.38;
        readonly outputPrice: 1.53;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "Mixture-of-experts LLM with advanced coding and reasoning capabilities";
    };
    readonly "moonshotai/Kimi-K2-Instruct-0905": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.5;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "State of the art language model for agentic and coding tasks. September Update.";
    };
};
type BasetenModelId = keyof typeof basetenModels;
declare const basetenDefaultModelId = "zai-org/GLM-4.6";

type BedrockModelId = keyof typeof bedrockModels;
declare const bedrockDefaultModelId: BedrockModelId;
declare const bedrockDefaultPromptRouterModelId: BedrockModelId;
declare const bedrockModels: {
    readonly "anthropic.claude-sonnet-4-5-20250929-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningBudget: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly minTokensPerCachePoint: 1024;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
    };
    readonly "anthropic.claude-sonnet-4-6": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningBudget: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly minTokensPerCachePoint: 1024;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 6;
            readonly outputPrice: 22.5;
            readonly cacheWritesPrice: 7.5;
            readonly cacheReadsPrice: 0.6;
        }];
    };
    readonly "amazon.nova-pro-v1:0": {
        readonly maxTokens: 5000;
        readonly contextWindow: 300000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.8;
        readonly outputPrice: 3.2;
        readonly cacheWritesPrice: 0.8;
        readonly cacheReadsPrice: 0.2;
        readonly minTokensPerCachePoint: 1;
        readonly maxCachePoints: 1;
        readonly cachableFields: ["system"];
    };
    readonly "amazon.nova-pro-latency-optimized-v1:0": {
        readonly maxTokens: 5000;
        readonly contextWindow: 300000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 1;
        readonly outputPrice: 4;
        readonly cacheWritesPrice: 1;
        readonly cacheReadsPrice: 0.25;
        readonly description: "Amazon Nova Pro with latency optimized inference";
    };
    readonly "amazon.nova-lite-v1:0": {
        readonly maxTokens: 5000;
        readonly contextWindow: 300000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.06;
        readonly outputPrice: 0.24;
        readonly cacheWritesPrice: 0.06;
        readonly cacheReadsPrice: 0.015;
        readonly minTokensPerCachePoint: 1;
        readonly maxCachePoints: 1;
        readonly cachableFields: ["system"];
    };
    readonly "amazon.nova-2-lite-v1:0": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1000000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.33;
        readonly outputPrice: 2.75;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.0825;
        readonly minTokensPerCachePoint: 1;
        readonly maxCachePoints: 1;
        readonly cachableFields: ["system"];
        readonly description: "Amazon Nova 2 Lite - Comparable to Claude Haiku 4.5";
    };
    readonly "amazon.nova-micro-v1:0": {
        readonly maxTokens: 5000;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.035;
        readonly outputPrice: 0.14;
        readonly cacheWritesPrice: 0.035;
        readonly cacheReadsPrice: 0.00875;
        readonly minTokensPerCachePoint: 1;
        readonly maxCachePoints: 1;
        readonly cachableFields: ["system"];
    };
    readonly "anthropic.claude-sonnet-4-20250514-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningBudget: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly minTokensPerCachePoint: 1024;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
    };
    readonly "anthropic.claude-opus-4-1-20250805-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningBudget: true;
        readonly inputPrice: 15;
        readonly outputPrice: 75;
        readonly cacheWritesPrice: 18.75;
        readonly cacheReadsPrice: 1.5;
        readonly minTokensPerCachePoint: 1024;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
    };
    readonly "anthropic.claude-opus-4-6-v1": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningBudget: true;
        readonly inputPrice: 5;
        readonly outputPrice: 25;
        readonly cacheWritesPrice: 6.25;
        readonly cacheReadsPrice: 0.5;
        readonly minTokensPerCachePoint: 1024;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 10;
            readonly outputPrice: 37.5;
            readonly cacheWritesPrice: 12.5;
            readonly cacheReadsPrice: 1;
        }];
    };
    readonly "anthropic.claude-opus-4-5-20251101-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningBudget: true;
        readonly inputPrice: 5;
        readonly outputPrice: 25;
        readonly cacheWritesPrice: 6.25;
        readonly cacheReadsPrice: 0.5;
        readonly minTokensPerCachePoint: 1024;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
    };
    readonly "anthropic.claude-opus-4-20250514-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningBudget: true;
        readonly inputPrice: 15;
        readonly outputPrice: 75;
        readonly cacheWritesPrice: 18.75;
        readonly cacheReadsPrice: 1.5;
        readonly minTokensPerCachePoint: 1024;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
    };
    readonly "anthropic.claude-3-7-sonnet-20250219-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningBudget: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly minTokensPerCachePoint: 1024;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
    };
    readonly "anthropic.claude-3-5-sonnet-20241022-v2:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly minTokensPerCachePoint: 1024;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
    };
    readonly "anthropic.claude-3-5-haiku-20241022-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.8;
        readonly outputPrice: 4;
        readonly cacheWritesPrice: 1;
        readonly cacheReadsPrice: 0.08;
        readonly minTokensPerCachePoint: 2048;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
    };
    readonly "anthropic.claude-haiku-4-5-20251001-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningBudget: true;
        readonly inputPrice: 1;
        readonly outputPrice: 5;
        readonly cacheWritesPrice: 1.25;
        readonly cacheReadsPrice: 0.1;
        readonly minTokensPerCachePoint: 2048;
        readonly maxCachePoints: 4;
        readonly cachableFields: ["system", "messages", "tools"];
    };
    readonly "anthropic.claude-3-5-sonnet-20240620-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
    };
    readonly "anthropic.claude-3-opus-20240229-v1:0": {
        readonly maxTokens: 4096;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 15;
        readonly outputPrice: 75;
    };
    readonly "anthropic.claude-3-sonnet-20240229-v1:0": {
        readonly maxTokens: 4096;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
    };
    readonly "anthropic.claude-3-haiku-20240307-v1:0": {
        readonly maxTokens: 4096;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.25;
        readonly outputPrice: 1.25;
    };
    readonly "deepseek.r1-v1:0": {
        readonly maxTokens: 32768;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 1.35;
        readonly outputPrice: 5.4;
    };
    readonly "openai.gpt-oss-20b-1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.5;
        readonly outputPrice: 1.5;
        readonly description: "GPT-OSS 20B - Optimized for low latency and local/specialized use cases";
    };
    readonly "openai.gpt-oss-120b-1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 2;
        readonly outputPrice: 6;
        readonly description: "GPT-OSS 120B - Production-ready, general-purpose, high-reasoning model";
    };
    readonly "meta.llama3-3-70b-instruct-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.72;
        readonly outputPrice: 0.72;
        readonly description: "Llama 3.3 Instruct (70B)";
    };
    readonly "meta.llama3-2-90b-instruct-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.72;
        readonly outputPrice: 0.72;
        readonly description: "Llama 3.2 Instruct (90B)";
    };
    readonly "meta.llama3-2-11b-instruct-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.16;
        readonly outputPrice: 0.16;
        readonly description: "Llama 3.2 Instruct (11B)";
    };
    readonly "meta.llama3-2-3b-instruct-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.15;
        readonly outputPrice: 0.15;
        readonly description: "Llama 3.2 Instruct (3B)";
    };
    readonly "meta.llama3-2-1b-instruct-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.1;
        readonly description: "Llama 3.2 Instruct (1B)";
    };
    readonly "meta.llama3-1-405b-instruct-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 2.4;
        readonly outputPrice: 2.4;
        readonly description: "Llama 3.1 Instruct (405B)";
    };
    readonly "meta.llama3-1-70b-instruct-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.72;
        readonly outputPrice: 0.72;
        readonly description: "Llama 3.1 Instruct (70B)";
    };
    readonly "meta.llama3-1-70b-instruct-latency-optimized-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.9;
        readonly outputPrice: 0.9;
        readonly description: "Llama 3.1 Instruct (70B) (w/ latency optimized inference)";
    };
    readonly "meta.llama3-1-8b-instruct-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 8000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.22;
        readonly outputPrice: 0.22;
        readonly description: "Llama 3.1 Instruct (8B)";
    };
    readonly "meta.llama3-70b-instruct-v1:0": {
        readonly maxTokens: 2048;
        readonly contextWindow: 8000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 2.65;
        readonly outputPrice: 3.5;
    };
    readonly "meta.llama3-8b-instruct-v1:0": {
        readonly maxTokens: 2048;
        readonly contextWindow: 4000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.3;
        readonly outputPrice: 0.6;
    };
    readonly "amazon.titan-text-lite-v1:0": {
        readonly maxTokens: 4096;
        readonly contextWindow: 8000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.15;
        readonly outputPrice: 0.2;
        readonly description: "Amazon Titan Text Lite";
    };
    readonly "amazon.titan-text-express-v1:0": {
        readonly maxTokens: 4096;
        readonly contextWindow: 8000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.2;
        readonly outputPrice: 0.6;
        readonly description: "Amazon Titan Text Express";
    };
    readonly "moonshot.kimi-k2-thinking": {
        readonly maxTokens: 32000;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly preserveReasoning: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.5;
        readonly description: "Kimi K2 Thinking (1T parameter MoE model with 32B active parameters)";
    };
    readonly "minimax.minimax-m2": {
        readonly maxTokens: 16384;
        readonly contextWindow: 196608;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly preserveReasoning: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 1.2;
        readonly description: "MiniMax M2 (230B parameter MoE model with 10B active parameters)";
    };
    readonly "qwen.qwen3-next-80b-a3b": {
        readonly maxTokens: 8192;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.15;
        readonly outputPrice: 1.2;
        readonly description: "Qwen3 Next 80B (MoE model with 3B active parameters)";
    };
    readonly "qwen.qwen3-coder-480b-a35b-v1:0": {
        readonly maxTokens: 8192;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.45;
        readonly outputPrice: 1.8;
        readonly description: "Qwen3 Coder 480B (MoE model with 35B active parameters)";
    };
};
declare const BEDROCK_DEFAULT_TEMPERATURE = 0.3;
declare const BEDROCK_MAX_TOKENS = 4096;
declare const BEDROCK_DEFAULT_CONTEXT = 128000;
declare const AWS_INFERENCE_PROFILE_MAPPING: Array<[string, string]>;
declare const BEDROCK_REGIONS: {
    value: string;
    label: string;
}[];
declare const BEDROCK_1M_CONTEXT_MODEL_IDS: readonly ["anthropic.claude-sonnet-4-20250514-v1:0", "anthropic.claude-sonnet-4-5-20250929-v1:0", "anthropic.claude-sonnet-4-6", "anthropic.claude-opus-4-6-v1"];
declare const BEDROCK_GLOBAL_INFERENCE_MODEL_IDS: readonly ["anthropic.claude-sonnet-4-20250514-v1:0", "anthropic.claude-sonnet-4-5-20250929-v1:0", "anthropic.claude-sonnet-4-6", "anthropic.claude-haiku-4-5-20251001-v1:0", "anthropic.claude-opus-4-5-20251101-v1:0", "anthropic.claude-opus-4-6-v1"];
type BedrockServiceTier = "STANDARD" | "FLEX" | "PRIORITY";
declare const BEDROCK_SERVICE_TIER_MODEL_IDS: readonly ["amazon.nova-lite-v1:0", "amazon.nova-2-lite-v1:0", "amazon.nova-pro-v1:0", "amazon.nova-pro-latency-optimized-v1:0", "deepseek.r1-v1:0", "qwen.qwen3-next-80b-a3b", "qwen.qwen3-coder-480b-a35b-v1:0", "openai.gpt-oss-20b-1:0", "openai.gpt-oss-120b-1:0"];
declare const BEDROCK_SERVICE_TIER_PRICING: {
    readonly STANDARD: 1;
    readonly FLEX: 0.5;
    readonly PRIORITY: 1.75;
};

/**
 * Rate limit information from Claude Code API
 */
interface ClaudeCodeRateLimitInfo {
    fiveHour: {
        status: string;
        utilization: number;
        resetTime: number;
    };
    weekly?: {
        status: string;
        utilization: number;
        resetTime: number;
    };
    weeklyUnified?: {
        status: string;
        utilization: number;
        resetTime: number;
    };
    representativeClaim?: string;
    overage?: {
        status: string;
        disabledReason?: string;
    };
    fallbackPercentage?: number;
    organizationId?: string;
    fetchedAt: number;
}
declare const claudeCodeModels: {
    readonly "claude-haiku-4-5": {
        readonly maxTokens: 32768;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["disable", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly description: "Claude Haiku 4.5 - Fast and efficient with thinking";
    };
    readonly "claude-sonnet-4-5": {
        readonly maxTokens: 32768;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["disable", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly description: "Claude Sonnet 4.5 - Balanced performance with thinking";
    };
    readonly "claude-opus-4-5": {
        readonly maxTokens: 32768;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["disable", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly description: "Claude Opus 4.5 - Most capable with thinking";
    };
};
type ClaudeCodeModelId = keyof typeof claudeCodeModels;
declare const claudeCodeDefaultModelId: ClaudeCodeModelId;
declare function getClaudeCodeModels(localDefaultModelIds?: string): Record<string, ModelInfo>;
/**
 * Normalizes a Claude model ID to a valid Claude Code model ID.
 *
 * This function handles backward compatibility for legacy model names
 * that may include version numbers or date suffixes. It maps:
 * - claude-sonnet-4-5-20250929, claude-sonnet-4-20250514, claude-3-7-sonnet-20250219, claude-3-5-sonnet-20241022 → claude-sonnet-4-5
 * - claude-opus-4-5-20251101, claude-opus-4-1-20250805, claude-opus-4-20250514 → claude-opus-4-5
 * - claude-haiku-4-5-20251001, claude-3-5-haiku-20241022 → claude-haiku-4-5
 *
 * @param modelId - The model ID to normalize (may be a legacy format)
 * @returns A valid ClaudeCodeModelId, or the original ID if already valid
 *
 * @example
 * normalizeClaudeCodeModelId("claude-sonnet-4-5") // returns "claude-sonnet-4-5"
 * normalizeClaudeCodeModelId("claude-3-5-sonnet-20241022") // returns "claude-sonnet-4-5"
 * normalizeClaudeCodeModelId("claude-opus-4-1-20250805") // returns "claude-opus-4-5"
 */
declare function normalizeClaudeCodeModelId(modelId: string): ClaudeCodeModelId;
/**
 * Reasoning effort configuration for Claude Code thinking mode.
 * Maps reasoning effort level to budget_tokens for the thinking process.
 *
 * Note: With interleaved thinking (enabled via beta header), budget_tokens
 * can exceed max_tokens as the token limit becomes the entire context window.
 * The max_tokens is drawn from the model's maxTokens definition.
 *
 * @see https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking#interleaved-thinking
 */
declare const claudeCodeReasoningConfig: {
    readonly low: {
        readonly budgetTokens: 16000;
    };
    readonly medium: {
        readonly budgetTokens: 32000;
    };
    readonly high: {
        readonly budgetTokens: 64000;
    };
};
type ClaudeCodeReasoningLevel = keyof typeof claudeCodeReasoningConfig;

type DeepSeekModelId = keyof typeof deepSeekModels;
declare const deepSeekDefaultModelId: DeepSeekModelId;
declare const deepSeekModels: {
    readonly "deepseek-chat": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.28;
        readonly outputPrice: 0.42;
        readonly cacheWritesPrice: 0.28;
        readonly cacheReadsPrice: 0.028;
        readonly description: "DeepSeek-V3.2 (Non-thinking Mode) achieves a significant breakthrough in inference speed over previous models. It tops the leaderboard among open-source models and rivals the most advanced closed-source models globally. Supports JSON output, tool calls, chat prefix completion (beta), and FIM completion (beta).";
    };
    readonly "deepseek-reasoner": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly preserveReasoning: true;
        readonly inputPrice: 0.28;
        readonly outputPrice: 0.42;
        readonly cacheWritesPrice: 0.28;
        readonly cacheReadsPrice: 0.028;
        readonly description: "DeepSeek-V3.2 (Thinking Mode) achieves performance comparable to OpenAI-o1 across math, code, and reasoning tasks. Supports Chain of Thought reasoning with up to 8K output tokens. Supports JSON output, tool calls, and chat prefix completion (beta).";
    };
    readonly "deepseek-v4-pro": {
        readonly maxTokens: 384000;
        readonly contextWindow: 1000000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly preserveReasoning: true;
        readonly inputPrice: 1.74;
        readonly outputPrice: 3.48;
        readonly cacheWritesPrice: 1.74;
        readonly cacheReadsPrice: 0.0145;
        readonly description: "DeepSeek-V4-Pro is the flagship Mixture-of-Experts model in the DeepSeek-V4 Preview series with 1.6T total parameters and 49B activated parameters. Supports a 1M-token context window with up to 384K output tokens, thinking mode (default), JSON output, tool calls, chat prefix completion (beta), and FIM completion (beta, non-thinking only). Best for complex reasoning, advanced coding, agentic workflows, and long-context analysis.";
    };
    readonly "deepseek-v4-flash": {
        readonly maxTokens: 384000;
        readonly contextWindow: 1000000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly preserveReasoning: true;
        readonly inputPrice: 0.14;
        readonly outputPrice: 0.28;
        readonly cacheWritesPrice: 0.14;
        readonly cacheReadsPrice: 0.0028;
        readonly description: "DeepSeek-V4-Flash is the fast, cost-efficient Mixture-of-Experts model in the DeepSeek-V4 Preview series with 284B total parameters and 13B activated parameters. Supports a 1M-token context window with up to 384K output tokens, thinking mode (default), JSON output, tool calls, chat prefix completion (beta), and FIM completion (beta, non-thinking only). Best for high-volume workloads, chatbots, long document processing, and cost-sensitive applications.";
    };
};
declare const DEEP_SEEK_DEFAULT_TEMPERATURE = 0.3;

type FireworksModelId = "accounts/fireworks/models/kimi-k2-instruct" | "accounts/fireworks/models/kimi-k2-instruct-0905" | "accounts/fireworks/models/kimi-k2-thinking" | "accounts/fireworks/models/kimi-k2p5" | "accounts/fireworks/models/kimi-k2p6" | "accounts/fireworks/models/minimax-m2" | "accounts/fireworks/models/minimax-m2p1" | "accounts/fireworks/models/qwen3-235b-a22b-instruct-2507" | "accounts/fireworks/models/qwen3-coder-480b-a35b-instruct" | "accounts/fireworks/models/deepseek-r1-0528" | "accounts/fireworks/models/deepseek-v3" | "accounts/fireworks/models/deepseek-v3p1" | "accounts/fireworks/models/deepseek-v3p2" | "accounts/fireworks/models/glm-4p5" | "accounts/fireworks/models/glm-4p5-air" | "accounts/fireworks/models/glm-4p6" | "accounts/fireworks/models/glm-4p7" | "accounts/fireworks/models/gpt-oss-20b" | "accounts/fireworks/models/gpt-oss-120b" | "accounts/fireworks/models/llama-v3p3-70b-instruct" | "accounts/fireworks/models/llama4-maverick-instruct-basic" | "accounts/fireworks/models/llama4-scout-instruct-basic";
declare const fireworksDefaultModelId: FireworksModelId;
declare const fireworksModels: {
    readonly "accounts/fireworks/models/kimi-k2-instruct-0905": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.5;
        readonly cacheReadsPrice: 0.15;
        readonly description: "Kimi K2 model gets a new version update: Agentic coding: more accurate, better generalization across scaffolds. Frontend coding: improved aesthetics and functionalities on web, 3d, and other tasks. Context length: extended from 128k to 256k, providing better long-horizon support.";
    };
    readonly "accounts/fireworks/models/kimi-k2-instruct": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.5;
        readonly description: "Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model with 32 billion activated parameters and 1 trillion total parameters. Trained with the Muon optimizer, Kimi K2 achieves exceptional performance across frontier knowledge, reasoning, and coding tasks while being meticulously optimized for agentic capabilities.";
    };
    readonly "accounts/fireworks/models/kimi-k2p6": {
        readonly maxTokens: 256000;
        readonly contextWindow: 262144;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.95;
        readonly outputPrice: 4;
        readonly cacheReadsPrice: 0.16;
    };
    readonly "accounts/fireworks/models/kimi-k2-thinking": {
        readonly maxTokens: 16000;
        readonly contextWindow: 256000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly supportsTemperature: true;
        readonly preserveReasoning: true;
        readonly defaultTemperature: 1;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.5;
        readonly cacheReadsPrice: 0.15;
        readonly description: "The kimi-k2-thinking model is a general-purpose agentic reasoning model developed by Moonshot AI. Thanks to its strength in deep reasoning and multi-turn tool use, it can solve even the hardest problems.";
    };
    readonly "accounts/fireworks/models/kimi-k2p5": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262144;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 3;
        readonly cacheReadsPrice: 0.1;
        readonly description: "Kimi K2.5 is Moonshot AI's flagship agentic model and a new SOTA open model. It unifies vision and text, thinking and non-thinking modes, and single-agent and multi-agent execution into one model. Fireworks enables users to control the reasoning behavior and inspect its reasoning history for greater transparency.";
    };
    readonly "accounts/fireworks/models/minimax-m2": {
        readonly maxTokens: 4096;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.3;
        readonly outputPrice: 1.2;
        readonly description: "MiniMax M2 is a high-performance language model with 204.8K context window, optimized for long-context understanding and generation tasks.";
    };
    readonly "accounts/fireworks/models/qwen3-235b-a22b-instruct-2507": {
        readonly maxTokens: 32768;
        readonly contextWindow: 256000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.22;
        readonly outputPrice: 0.88;
        readonly description: "Latest Qwen3 thinking model, competitive against the best closed source models in Jul 2025.";
    };
    readonly "accounts/fireworks/models/qwen3-coder-480b-a35b-instruct": {
        readonly maxTokens: 32768;
        readonly contextWindow: 256000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.45;
        readonly outputPrice: 1.8;
        readonly description: "Qwen3's most agentic code model to date.";
    };
    readonly "accounts/fireworks/models/deepseek-r1-0528": {
        readonly maxTokens: 20480;
        readonly contextWindow: 160000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 3;
        readonly outputPrice: 8;
        readonly description: "05/28 updated checkpoint of Deepseek R1. Its overall performance is now approaching that of leading models, such as O3 and Gemini 2.5 Pro. Compared to the previous version, the upgraded model shows significant improvements in handling complex reasoning tasks, and this version also offers a reduced hallucination rate, enhanced support for function calling, and better experience for vibe coding. Note that fine-tuning for this model is only available through contacting fireworks at https://fireworks.ai/company/contact-us.";
    };
    readonly "accounts/fireworks/models/deepseek-v3": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.9;
        readonly outputPrice: 0.9;
        readonly description: "A strong Mixture-of-Experts (MoE) language model with 671B total parameters with 37B activated for each token from Deepseek. Note that fine-tuning for this model is only available through contacting fireworks at https://fireworks.ai/company/contact-us.";
    };
    readonly "accounts/fireworks/models/deepseek-v3p1": {
        readonly maxTokens: 16384;
        readonly contextWindow: 163840;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.56;
        readonly outputPrice: 1.68;
        readonly description: "DeepSeek v3.1 is an improved version of the v3 model with enhanced performance, better reasoning capabilities, and improved code generation. This Mixture-of-Experts (MoE) model maintains the same 671B total parameters with 37B activated per token.";
    };
    readonly "accounts/fireworks/models/glm-4p5": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.55;
        readonly outputPrice: 2.19;
        readonly description: "Z.ai GLM-4.5 with 355B total parameters and 32B active parameters. Features unified reasoning, coding, and intelligent agent capabilities.";
    };
    readonly "accounts/fireworks/models/glm-4p5-air": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.55;
        readonly outputPrice: 2.19;
        readonly description: "Z.ai GLM-4.5-Air with 106B total parameters and 12B active parameters. Features unified reasoning, coding, and intelligent agent capabilities.";
    };
    readonly "accounts/fireworks/models/glm-4p6": {
        readonly maxTokens: 25344;
        readonly contextWindow: 198000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.55;
        readonly outputPrice: 2.19;
        readonly description: "Z.ai GLM-4.6 is an advanced coding model with exceptional performance on complex programming tasks. Features improved reasoning capabilities and enhanced code generation quality, making it ideal for software development workflows.";
    };
    readonly "accounts/fireworks/models/gpt-oss-20b": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.07;
        readonly outputPrice: 0.3;
        readonly description: "OpenAI gpt-oss-20b: Compact model for local/edge deployments. Optimized for low-latency and resource-constrained environments with chain-of-thought output, adjustable reasoning, and agentic workflows.";
    };
    readonly "accounts/fireworks/models/gpt-oss-120b": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.15;
        readonly outputPrice: 0.6;
        readonly description: "OpenAI gpt-oss-120b: Production-grade, general-purpose model that fits on a single H100 GPU. Features complex reasoning, configurable effort, full chain-of-thought transparency, and supports function calling, tool use, and structured outputs.";
    };
    readonly "accounts/fireworks/models/minimax-m2p1": {
        readonly maxTokens: 4096;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.3;
        readonly outputPrice: 1.2;
        readonly description: "MiniMax M2.1 is an upgraded version of M2 with improved performance on complex reasoning, coding, and long-context understanding tasks.";
    };
    readonly "accounts/fireworks/models/deepseek-v3p2": {
        readonly maxTokens: 16384;
        readonly contextWindow: 163840;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.56;
        readonly outputPrice: 1.68;
        readonly description: "DeepSeek V3.2 is the latest iteration of the V3 model family with enhanced reasoning capabilities, improved code generation, and better instruction following.";
    };
    readonly "accounts/fireworks/models/glm-4p7": {
        readonly maxTokens: 25344;
        readonly contextWindow: 198000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.55;
        readonly outputPrice: 2.19;
        readonly description: "Z.ai GLM-4.7 is the latest coding model with exceptional performance on complex programming tasks. Features improved reasoning capabilities and enhanced code generation quality.";
    };
    readonly "accounts/fireworks/models/llama-v3p3-70b-instruct": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.9;
        readonly outputPrice: 0.9;
        readonly description: "Meta Llama 3.3 70B Instruct is a highly capable instruction-tuned model with strong reasoning, coding, and general task performance.";
    };
    readonly "accounts/fireworks/models/llama4-maverick-instruct-basic": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.22;
        readonly outputPrice: 0.88;
        readonly description: "Llama 4 Maverick is Meta's latest multimodal model with vision capabilities, optimized for instruction following and coding tasks.";
    };
    readonly "accounts/fireworks/models/llama4-scout-instruct-basic": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.15;
        readonly outputPrice: 0.6;
        readonly description: "Llama 4 Scout is a smaller, faster variant of Llama 4 with multimodal capabilities, ideal for quick iterations and cost-effective deployments.";
    };
};

type GeminiModelId = keyof typeof geminiModels;
declare const geminiDefaultModelId: GeminiModelId;
declare const geminiModels: {
    readonly "gemini-3.1-pro-preview": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "low";
        readonly supportsTemperature: true;
        readonly defaultTemperature: 1;
        readonly inputPrice: 4;
        readonly outputPrice: 18;
        readonly cacheReadsPrice: 0.4;
        readonly cacheWritesPrice: 4.5;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 2;
            readonly outputPrice: 12;
            readonly cacheReadsPrice: 0.2;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 4;
            readonly outputPrice: 18;
            readonly cacheReadsPrice: 0.4;
        }];
    };
    readonly "gemini-3.1-pro-preview-customtools": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "low";
        readonly supportsTemperature: true;
        readonly defaultTemperature: 1;
        readonly inputPrice: 4;
        readonly outputPrice: 18;
        readonly cacheReadsPrice: 0.4;
        readonly cacheWritesPrice: 4.5;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 2;
            readonly outputPrice: 12;
            readonly cacheReadsPrice: 0.2;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 4;
            readonly outputPrice: 18;
            readonly cacheReadsPrice: 0.4;
        }];
    };
    readonly "gemini-3-pro-preview": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "high"];
        readonly reasoningEffort: "low";
        readonly supportsTemperature: true;
        readonly defaultTemperature: 1;
        readonly inputPrice: 4;
        readonly outputPrice: 18;
        readonly cacheReadsPrice: 0.4;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 2;
            readonly outputPrice: 12;
            readonly cacheReadsPrice: 0.2;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 4;
            readonly outputPrice: 18;
            readonly cacheReadsPrice: 0.4;
        }];
    };
    readonly "gemini-3-flash-preview": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["minimal", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly supportsTemperature: true;
        readonly defaultTemperature: 1;
        readonly inputPrice: 0.5;
        readonly outputPrice: 3;
        readonly cacheReadsPrice: 0.05;
    };
    readonly "gemini-2.5-pro": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.5;
        readonly outputPrice: 15;
        readonly cacheReadsPrice: 0.625;
        readonly cacheWritesPrice: 4.5;
        readonly maxThinkingTokens: 32768;
        readonly supportsReasoningBudget: true;
        readonly requiredReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 1.25;
            readonly outputPrice: 10;
            readonly cacheReadsPrice: 0.31;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 2.5;
            readonly outputPrice: 15;
            readonly cacheReadsPrice: 0.625;
        }];
    };
    readonly "gemini-2.5-pro-preview-06-05": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.5;
        readonly outputPrice: 15;
        readonly cacheReadsPrice: 0.625;
        readonly cacheWritesPrice: 4.5;
        readonly maxThinkingTokens: 32768;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 1.25;
            readonly outputPrice: 10;
            readonly cacheReadsPrice: 0.31;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 2.5;
            readonly outputPrice: 15;
            readonly cacheReadsPrice: 0.625;
        }];
    };
    readonly "gemini-2.5-pro-preview-05-06": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.5;
        readonly outputPrice: 15;
        readonly cacheReadsPrice: 0.625;
        readonly cacheWritesPrice: 4.5;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 1.25;
            readonly outputPrice: 10;
            readonly cacheReadsPrice: 0.31;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 2.5;
            readonly outputPrice: 15;
            readonly cacheReadsPrice: 0.625;
        }];
    };
    readonly "gemini-2.5-pro-preview-03-25": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.5;
        readonly outputPrice: 15;
        readonly cacheReadsPrice: 0.625;
        readonly cacheWritesPrice: 4.5;
        readonly maxThinkingTokens: 32768;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 1.25;
            readonly outputPrice: 10;
            readonly cacheReadsPrice: 0.31;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 2.5;
            readonly outputPrice: 15;
            readonly cacheReadsPrice: 0.625;
        }];
    };
    readonly "gemini-flash-latest": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 2.5;
        readonly cacheReadsPrice: 0.075;
        readonly cacheWritesPrice: 1;
        readonly maxThinkingTokens: 24576;
        readonly supportsReasoningBudget: true;
    };
    readonly "gemini-2.5-flash-preview-09-2025": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 2.5;
        readonly cacheReadsPrice: 0.075;
        readonly cacheWritesPrice: 1;
        readonly maxThinkingTokens: 24576;
        readonly supportsReasoningBudget: true;
    };
    readonly "gemini-2.5-flash": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 2.5;
        readonly cacheReadsPrice: 0.075;
        readonly cacheWritesPrice: 1;
        readonly maxThinkingTokens: 24576;
        readonly supportsReasoningBudget: true;
    };
    readonly "gemini-flash-lite-latest": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.4;
        readonly cacheReadsPrice: 0.025;
        readonly cacheWritesPrice: 1;
        readonly supportsReasoningBudget: true;
        readonly maxThinkingTokens: 24576;
    };
    readonly "gemini-2.5-flash-lite-preview-09-2025": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.4;
        readonly cacheReadsPrice: 0.025;
        readonly cacheWritesPrice: 1;
        readonly supportsReasoningBudget: true;
        readonly maxThinkingTokens: 24576;
    };
};

type GeminiCliModelId = keyof typeof geminiCliModels;
declare const geminiCliDefaultModelId: GeminiCliModelId;
declare const geminiCliModels: {
    readonly "gemini-2.5-flash": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly maxThinkingTokens: 24576;
        readonly supportsReasoningBudget: true;
    };
    readonly "gemini-2.5-flash-lite": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly maxThinkingTokens: 24576;
        readonly supportsReasoningBudget: true;
    };
    readonly "gemini-2.5-pro": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly maxThinkingTokens: 32768;
        readonly supportsReasoningBudget: true;
        readonly requiredReasoningBudget: true;
    };
    readonly "gemini-3-pro-preview": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsReasoningBudget: true;
        readonly maxThinkingTokens: 32786;
    };
    readonly "gemini-3-flash-preview": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsReasoningBudget: true;
        readonly maxThinkingTokens: 32768;
    };
    readonly "gemini-3.1-pro-preview": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsReasoningBudget: true;
        readonly maxThinkingTokens: 32786;
    };
};

declare const litellmDefaultModelId = "claude-3-7-sonnet-20250219";
declare const litellmDefaultModelInfo: ModelInfo;

declare const LMSTUDIO_DEFAULT_TEMPERATURE = 0;
declare const lMStudioDefaultModelId = "mistralai/devstral-small-2505";
declare const lMStudioDefaultModelInfo: ModelInfo;

type MistralModelId = keyof typeof mistralModels;
declare const mistralDefaultModelId: MistralModelId;
declare const mistralModels: {
    readonly "magistral-medium-latest": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 2;
        readonly outputPrice: 5;
    };
    readonly "devstral-medium-latest": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.4;
        readonly outputPrice: 2;
    };
    readonly "mistral-medium-latest": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.4;
        readonly outputPrice: 2;
    };
    readonly "codestral-latest": {
        readonly maxTokens: 8192;
        readonly contextWindow: 256000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.3;
        readonly outputPrice: 0.9;
    };
    readonly "mistral-large-latest": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 2;
        readonly outputPrice: 6;
    };
    readonly "ministral-8b-latest": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.1;
    };
    readonly "ministral-3b-latest": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.04;
        readonly outputPrice: 0.04;
    };
    readonly "mistral-small-latest": {
        readonly maxTokens: 8192;
        readonly contextWindow: 32000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.2;
        readonly outputPrice: 0.6;
    };
    readonly "pixtral-large-latest": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 2;
        readonly outputPrice: 6;
    };
};
declare const MISTRAL_DEFAULT_TEMPERATURE = 1;

type MoonshotModelId = keyof typeof moonshotModels;
declare const moonshotDefaultModelId: MoonshotModelId;
declare const moonshotModels: {
    readonly "kimi-k2-0711-preview": {
        readonly maxTokens: 32000;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.5;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.15;
        readonly description: "Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model with 32 billion activated parameters and 1 trillion total parameters.";
    };
    readonly "kimi-k2-0905-preview": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.5;
        readonly cacheReadsPrice: 0.15;
        readonly description: "Kimi K2 model gets a new version update: Agentic coding: more accurate, better generalization across scaffolds. Frontend coding: improved aesthetics and functionalities on web, 3d, and other tasks. Context length: extended from 128k to 256k, providing better long-horizon support.";
    };
    readonly "kimi-k2-turbo-preview": {
        readonly maxTokens: 32000;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.4;
        readonly outputPrice: 10;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.6;
        readonly description: "Kimi K2 Turbo is a high-speed version of the state-of-the-art Kimi K2 mixture-of-experts (MoE) language model, with the same 32 billion activated parameters and 1 trillion total parameters, optimized for output speeds of up to 60 tokens per second, peaking at 100 tokens per second.";
    };
    readonly "kimi-k2-thinking": {
        readonly maxTokens: 16000;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.5;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.15;
        readonly supportsTemperature: true;
        readonly preserveReasoning: true;
        readonly defaultTemperature: 1;
        readonly description: "The kimi-k2-thinking model is a general-purpose agentic reasoning model developed by Moonshot AI. Thanks to its strength in deep reasoning and multi-turn tool use, it can solve even the hardest problems.";
    };
    readonly "kimi-k2.5": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 3;
        readonly cacheReadsPrice: 0.1;
        readonly supportsTemperature: true;
        readonly defaultTemperature: 1;
        readonly description: "Kimi K2.5 is the latest generation of Moonshot AI's Kimi series, featuring improved reasoning capabilities and enhanced performance across diverse tasks.";
    };
    readonly "kimi-k2.6": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262144;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningBinary: true;
        readonly preserveReasoning: true;
        readonly inputPrice: 0.95;
        readonly outputPrice: 4;
        readonly cacheReadsPrice: 0.16;
        readonly supportsTemperature: false;
        readonly defaultTemperature: 0.6;
        readonly description: "Kimi K2.6 is Kimi's most intelligent model to date, featuring stronger and more stable long-horizon code writing capabilities and significantly enhanced autonomous execution capabilities.";
    };
};
declare const MOONSHOT_DEFAULT_TEMPERATURE = 0.6;

declare const ollamaDefaultModelId = "devstral:24b";
declare const ollamaDefaultModelInfo: ModelInfo;

type OpenAiNativeModelId = keyof typeof openAiNativeModels;
declare const openAiNativeDefaultModelId: OpenAiNativeModelId;
declare const openAiNativeModels: {
    readonly "gpt-5.1-codex-max": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly promptCacheRetention: "24h";
        readonly supportsReasoningEffort: ["low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "xhigh";
        readonly inputPrice: 1.25;
        readonly outputPrice: 10;
        readonly cacheReadsPrice: 0.125;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 2.5;
            readonly outputPrice: 20;
            readonly cacheReadsPrice: 0.25;
        }];
        readonly description: "GPT-5.1 Codex Max: Our most intelligent coding model optimized for long-horizon, agentic coding tasks";
    };
    readonly "gpt-5.4": {
        readonly maxTokens: 128000;
        readonly contextWindow: 1050000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "none";
        readonly inputPrice: 2.5;
        readonly outputPrice: 15;
        readonly cacheReadsPrice: 0.25;
        readonly longContextPricing: {
            readonly thresholdTokens: 272000;
            readonly inputPriceMultiplier: 2;
            readonly outputPriceMultiplier: 1.5;
            readonly appliesToServiceTiers: ["default", "flex"];
        };
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 1050000;
            readonly inputPrice: 1.25;
            readonly outputPrice: 7.5;
            readonly cacheReadsPrice: 0.125;
        }, {
            readonly name: "priority";
            readonly contextWindow: 1050000;
            readonly inputPrice: 5;
            readonly outputPrice: 30;
            readonly cacheReadsPrice: 0.5;
        }];
        readonly description: "GPT-5.4: Our most capable model for professional work";
    };
    readonly "gpt-5.4-mini": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "none";
        readonly inputPrice: 0.75;
        readonly outputPrice: 4.5;
        readonly cacheReadsPrice: 0.075;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.375;
            readonly outputPrice: 2.25;
            readonly cacheReadsPrice: 0.0375;
        }, {
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 1.5;
            readonly outputPrice: 9;
            readonly cacheReadsPrice: 0.15;
        }];
        readonly description: "GPT-5.4 Mini: A faster, lower-cost GPT-5.4 model for coding and agentic workflows";
    };
    readonly "gpt-5.4-nano": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "none";
        readonly inputPrice: 0.2;
        readonly outputPrice: 1.25;
        readonly cacheReadsPrice: 0.02;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.1;
            readonly outputPrice: 0.625;
            readonly cacheReadsPrice: 0.01;
        }];
        readonly description: "GPT-5.4 Nano: The smallest GPT-5.4 model for high-volume, low-latency tasks";
    };
    readonly "gpt-5.2": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly promptCacheRetention: "24h";
        readonly supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 1.75;
        readonly outputPrice: 14;
        readonly cacheReadsPrice: 0.175;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.875;
            readonly outputPrice: 7;
            readonly cacheReadsPrice: 0.0875;
        }, {
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 3.5;
            readonly outputPrice: 28;
            readonly cacheReadsPrice: 0.35;
        }];
        readonly description: "GPT-5.2: Our flagship model for coding and agentic tasks across industries";
    };
    readonly "gpt-5.2-codex": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly promptCacheRetention: "24h";
        readonly supportsReasoningEffort: ["low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 1.75;
        readonly outputPrice: 14;
        readonly cacheReadsPrice: 0.175;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 3.5;
            readonly outputPrice: 28;
            readonly cacheReadsPrice: 0.35;
        }];
        readonly description: "GPT-5.2 Codex: Our most intelligent coding model optimized for long-horizon, agentic coding tasks";
    };
    readonly "gpt-5.3-codex": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly promptCacheRetention: "24h";
        readonly supportsReasoningEffort: ["low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 1.75;
        readonly outputPrice: 14;
        readonly cacheReadsPrice: 0.175;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 3.5;
            readonly outputPrice: 28;
            readonly cacheReadsPrice: 0.35;
        }];
        readonly description: "GPT-5.3 Codex: Our most intelligent coding model optimized for long-horizon, agentic coding tasks";
    };
    readonly "gpt-5.2-chat-latest": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.75;
        readonly outputPrice: 14;
        readonly cacheReadsPrice: 0.175;
        readonly description: "GPT-5.2 Chat: Optimized for conversational AI and chat use cases";
    };
    readonly "gpt-5.3-chat-latest": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.75;
        readonly outputPrice: 14;
        readonly cacheReadsPrice: 0.175;
        readonly description: "GPT-5.3 Chat: Optimized for conversational AI and chat use cases";
    };
    readonly "gpt-5.1": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly promptCacheRetention: "24h";
        readonly supportsReasoningEffort: ["none", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 1.25;
        readonly outputPrice: 10;
        readonly cacheReadsPrice: 0.125;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.625;
            readonly outputPrice: 5;
            readonly cacheReadsPrice: 0.0625;
        }, {
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 2.5;
            readonly outputPrice: 20;
            readonly cacheReadsPrice: 0.25;
        }];
        readonly description: "GPT-5.1: The best model for coding and agentic tasks across domains";
    };
    readonly "gpt-5.1-codex": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly promptCacheRetention: "24h";
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 1.25;
        readonly outputPrice: 10;
        readonly cacheReadsPrice: 0.125;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 2.5;
            readonly outputPrice: 20;
            readonly cacheReadsPrice: 0.25;
        }];
        readonly description: "GPT-5.1 Codex: A version of GPT-5.1 optimized for agentic coding in Codex";
    };
    readonly "gpt-5.1-codex-mini": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly promptCacheRetention: "24h";
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0.25;
        readonly outputPrice: 2;
        readonly cacheReadsPrice: 0.025;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.1 Codex mini: A version of GPT-5.1 optimized for agentic coding in Codex";
    };
    readonly "gpt-5": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["minimal", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 1.25;
        readonly outputPrice: 10;
        readonly cacheReadsPrice: 0.125;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.625;
            readonly outputPrice: 5;
            readonly cacheReadsPrice: 0.0625;
        }, {
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 2.5;
            readonly outputPrice: 20;
            readonly cacheReadsPrice: 0.25;
        }];
        readonly description: "GPT-5: The best model for coding and agentic tasks across domains";
    };
    readonly "gpt-5-mini": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["minimal", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0.25;
        readonly outputPrice: 2;
        readonly cacheReadsPrice: 0.025;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.125;
            readonly outputPrice: 1;
            readonly cacheReadsPrice: 0.0125;
        }, {
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.45;
            readonly outputPrice: 3.6;
            readonly cacheReadsPrice: 0.045;
        }];
        readonly description: "GPT-5 Mini: A faster, more cost-efficient version of GPT-5 for well-defined tasks";
    };
    readonly "gpt-5-codex": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 1.25;
        readonly outputPrice: 10;
        readonly cacheReadsPrice: 0.125;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 2.5;
            readonly outputPrice: 20;
            readonly cacheReadsPrice: 0.25;
        }];
        readonly description: "GPT-5-Codex: A version of GPT-5 optimized for agentic coding in Codex";
    };
    readonly "gpt-5-nano": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["minimal", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0.05;
        readonly outputPrice: 0.4;
        readonly cacheReadsPrice: 0.005;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.025;
            readonly outputPrice: 0.2;
            readonly cacheReadsPrice: 0.0025;
        }];
        readonly description: "GPT-5 Nano: Fastest, most cost-efficient version of GPT-5";
    };
    readonly "gpt-5-chat-latest": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.25;
        readonly outputPrice: 10;
        readonly cacheReadsPrice: 0.125;
        readonly description: "GPT-5 Chat: Optimized for conversational AI and non-reasoning tasks";
    };
    readonly "gpt-4.1": {
        readonly maxTokens: 32768;
        readonly contextWindow: 1047576;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2;
        readonly outputPrice: 8;
        readonly cacheReadsPrice: 0.5;
        readonly supportsTemperature: true;
        readonly tiers: [{
            readonly name: "priority";
            readonly contextWindow: 1047576;
            readonly inputPrice: 3.5;
            readonly outputPrice: 14;
            readonly cacheReadsPrice: 0.875;
        }];
    };
    readonly "gpt-4.1-mini": {
        readonly maxTokens: 32768;
        readonly contextWindow: 1047576;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.4;
        readonly outputPrice: 1.6;
        readonly cacheReadsPrice: 0.1;
        readonly supportsTemperature: true;
        readonly tiers: [{
            readonly name: "priority";
            readonly contextWindow: 1047576;
            readonly inputPrice: 0.7;
            readonly outputPrice: 2.8;
            readonly cacheReadsPrice: 0.175;
        }];
    };
    readonly "gpt-4.1-nano": {
        readonly maxTokens: 32768;
        readonly contextWindow: 1047576;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.4;
        readonly cacheReadsPrice: 0.025;
        readonly supportsTemperature: true;
        readonly tiers: [{
            readonly name: "priority";
            readonly contextWindow: 1047576;
            readonly inputPrice: 0.2;
            readonly outputPrice: 0.8;
            readonly cacheReadsPrice: 0.05;
        }];
    };
    readonly o3: {
        readonly maxTokens: 100000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2;
        readonly outputPrice: 8;
        readonly cacheReadsPrice: 0.5;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 200000;
            readonly inputPrice: 1;
            readonly outputPrice: 4;
            readonly cacheReadsPrice: 0.25;
        }, {
            readonly name: "priority";
            readonly contextWindow: 200000;
            readonly inputPrice: 3.5;
            readonly outputPrice: 14;
            readonly cacheReadsPrice: 0.875;
        }];
    };
    readonly "o3-high": {
        readonly maxTokens: 100000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2;
        readonly outputPrice: 8;
        readonly cacheReadsPrice: 0.5;
        readonly reasoningEffort: "high";
        readonly supportsTemperature: false;
    };
    readonly "o3-low": {
        readonly maxTokens: 100000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2;
        readonly outputPrice: 8;
        readonly cacheReadsPrice: 0.5;
        readonly reasoningEffort: "low";
        readonly supportsTemperature: false;
    };
    readonly "o4-mini": {
        readonly maxTokens: 100000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.1;
        readonly outputPrice: 4.4;
        readonly cacheReadsPrice: 0.275;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 200000;
            readonly inputPrice: 0.55;
            readonly outputPrice: 2.2;
            readonly cacheReadsPrice: 0.138;
        }, {
            readonly name: "priority";
            readonly contextWindow: 200000;
            readonly inputPrice: 2;
            readonly outputPrice: 8;
            readonly cacheReadsPrice: 0.5;
        }];
    };
    readonly "o4-mini-high": {
        readonly maxTokens: 100000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.1;
        readonly outputPrice: 4.4;
        readonly cacheReadsPrice: 0.275;
        readonly reasoningEffort: "high";
        readonly supportsTemperature: false;
    };
    readonly "o4-mini-low": {
        readonly maxTokens: 100000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.1;
        readonly outputPrice: 4.4;
        readonly cacheReadsPrice: 0.275;
        readonly reasoningEffort: "low";
        readonly supportsTemperature: false;
    };
    readonly "o3-mini": {
        readonly maxTokens: 100000;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.1;
        readonly outputPrice: 4.4;
        readonly cacheReadsPrice: 0.55;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly supportsTemperature: false;
    };
    readonly "o3-mini-high": {
        readonly maxTokens: 100000;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.1;
        readonly outputPrice: 4.4;
        readonly cacheReadsPrice: 0.55;
        readonly reasoningEffort: "high";
        readonly supportsTemperature: false;
    };
    readonly "o3-mini-low": {
        readonly maxTokens: 100000;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.1;
        readonly outputPrice: 4.4;
        readonly cacheReadsPrice: 0.55;
        readonly reasoningEffort: "low";
        readonly supportsTemperature: false;
    };
    readonly o1: {
        readonly maxTokens: 100000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 15;
        readonly outputPrice: 60;
        readonly cacheReadsPrice: 7.5;
        readonly supportsTemperature: false;
    };
    readonly "o1-preview": {
        readonly maxTokens: 32768;
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 15;
        readonly outputPrice: 60;
        readonly cacheReadsPrice: 7.5;
        readonly supportsTemperature: false;
    };
    readonly "o1-mini": {
        readonly maxTokens: 65536;
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.1;
        readonly outputPrice: 4.4;
        readonly cacheReadsPrice: 0.55;
        readonly supportsTemperature: false;
    };
    readonly "gpt-4o": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.5;
        readonly outputPrice: 10;
        readonly cacheReadsPrice: 1.25;
        readonly supportsTemperature: true;
        readonly tiers: [{
            readonly name: "priority";
            readonly contextWindow: 128000;
            readonly inputPrice: 4.25;
            readonly outputPrice: 17;
            readonly cacheReadsPrice: 2.125;
        }];
    };
    readonly "gpt-4o-mini": {
        readonly maxTokens: 16384;
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.15;
        readonly outputPrice: 0.6;
        readonly cacheReadsPrice: 0.075;
        readonly supportsTemperature: true;
        readonly tiers: [{
            readonly name: "priority";
            readonly contextWindow: 128000;
            readonly inputPrice: 0.25;
            readonly outputPrice: 1;
            readonly cacheReadsPrice: 0.125;
        }];
    };
    readonly "codex-mini-latest": {
        readonly maxTokens: 16384;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 1.5;
        readonly outputPrice: 6;
        readonly cacheReadsPrice: 0.375;
        readonly supportsTemperature: false;
        readonly description: "Codex Mini: Cloud-based software engineering agent powered by codex-1, a version of o3 optimized for coding tasks. Trained with reinforcement learning to generate human-style code, adhere to instructions, and iteratively run tests.";
    };
    readonly "gpt-5-2025-08-07": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["minimal", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 1.25;
        readonly outputPrice: 10;
        readonly cacheReadsPrice: 0.125;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.625;
            readonly outputPrice: 5;
            readonly cacheReadsPrice: 0.0625;
        }, {
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 2.5;
            readonly outputPrice: 20;
            readonly cacheReadsPrice: 0.25;
        }];
        readonly description: "GPT-5: The best model for coding and agentic tasks across domains";
    };
    readonly "gpt-5-mini-2025-08-07": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["minimal", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0.25;
        readonly outputPrice: 2;
        readonly cacheReadsPrice: 0.025;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.125;
            readonly outputPrice: 1;
            readonly cacheReadsPrice: 0.0125;
        }, {
            readonly name: "priority";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.45;
            readonly outputPrice: 3.6;
            readonly cacheReadsPrice: 0.045;
        }];
        readonly description: "GPT-5 Mini: A faster, more cost-efficient version of GPT-5 for well-defined tasks";
    };
    readonly "gpt-5-nano-2025-08-07": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["minimal", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0.05;
        readonly outputPrice: 0.4;
        readonly cacheReadsPrice: 0.005;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly tiers: [{
            readonly name: "flex";
            readonly contextWindow: 400000;
            readonly inputPrice: 0.025;
            readonly outputPrice: 0.2;
            readonly cacheReadsPrice: 0.0025;
        }];
        readonly description: "GPT-5 Nano: Fastest, most cost-efficient version of GPT-5";
    };
};
declare const openAiModelInfoSaneDefaults: ModelInfo;
declare const azureOpenAiDefaultApiVersion = "2024-08-01-preview";
declare const OPENAI_NATIVE_DEFAULT_TEMPERATURE = 0;
declare const OPENAI_AZURE_AI_INFERENCE_PATH = "/models/chat/completions";

/**
 * OpenAI Codex Provider
 *
 * This provider uses OAuth authentication via ChatGPT Plus/Pro subscription
 * instead of direct API keys. Requests are routed to the Codex backend at
 * https://chatgpt.com/backend-api/codex/responses
 *
 * Key differences from openai-native:
 * - Uses OAuth Bearer tokens instead of API keys
 * - Subscription-based pricing (no per-token costs)
 * - Limited model subset available
 * - Custom routing to Codex backend
 */
type OpenAiCodexModelId = keyof typeof openAiCodexModels;
declare const openAiCodexDefaultModelId: OpenAiCodexModelId;
/**
 * Models available through the Codex OAuth flow.
 * These models are accessible to ChatGPT Plus/Pro subscribers.
 * Costs are 0 as they are covered by the subscription.
 */
declare const openAiCodexModels: {
    readonly "gpt-5.5": {
        readonly maxTokens: 128000;
        readonly contextWindow: 1000000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.5: OpenAI's latest frontier model for agentic coding via ChatGPT subscription";
    };
    readonly "gpt-5.1-codex-max": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "xhigh";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.1 Codex Max: Maximum capability coding model via ChatGPT subscription";
    };
    readonly "gpt-5.1-codex": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.1 Codex: GPT-5.1 optimized for agentic coding via ChatGPT subscription";
    };
    readonly "gpt-5.3-codex": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.3 Codex: OpenAI's flagship coding model via ChatGPT subscription";
    };
    readonly "gpt-5.3-codex-spark": {
        readonly maxTokens: 8192;
        readonly contextWindow: 128000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.3 Codex Spark: Fast, text-only coding model via ChatGPT subscription";
    };
    readonly "gpt-5.2-codex": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.2 Codex: OpenAI's flagship coding model via ChatGPT subscription";
    };
    readonly "gpt-5.1": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["none", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.1: General GPT-5.1 model via ChatGPT subscription";
    };
    readonly "gpt-5": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["minimal", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly description: "GPT-5: General GPT-5 model via ChatGPT subscription";
    };
    readonly "gpt-5-codex": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsTemperature: false;
        readonly description: "GPT-5 Codex: GPT-5 optimized for agentic coding via ChatGPT subscription";
    };
    readonly "gpt-5-codex-mini": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsTemperature: false;
        readonly description: "GPT-5 Codex Mini: Faster coding model via ChatGPT subscription";
    };
    readonly "gpt-5.1-codex-mini": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.1 Codex Mini: Faster version for coding tasks via ChatGPT subscription";
    };
    readonly "gpt-5.4": {
        readonly maxTokens: 128000;
        readonly contextWindow: 1050000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "none";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.4: Formerly most capable model via ChatGPT subscription";
    };
    readonly "gpt-5.4-mini": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "none";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsVerbosity: true;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.4 Mini: Lower-cost GPT-5.4 model via ChatGPT subscription";
    };
    readonly "gpt-5.2": {
        readonly maxTokens: 128000;
        readonly contextWindow: 400000;
        readonly includedTools: ["apply_patch"];
        readonly excludedTools: ["apply_diff", "write_to_file"];
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"];
        readonly reasoningEffort: "medium";
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly supportsTemperature: false;
        readonly description: "GPT-5.2: Latest GPT model via ChatGPT subscription";
    };
};

declare const openRouterDefaultModelId = "anthropic/claude-sonnet-4.5";
declare const openRouterDefaultModelInfo: ModelInfo;
declare const OPENROUTER_DEFAULT_PROVIDER_NAME = "[default]";
declare const OPEN_ROUTER_PROMPT_CACHING_MODELS: Set<string>;
declare const OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS: Set<string>;
declare const OPEN_ROUTER_REASONING_BUDGET_MODELS: Set<string>;

type QwenCodeModelId = "qwen3-coder-plus" | "qwen3-coder-flash";
declare const qwenCodeDefaultModelId: QwenCodeModelId;
declare const qwenCodeModels: {
    readonly "qwen3-coder-plus": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1000000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "Qwen3 Coder Plus - High-performance coding model with 1M context window for large codebases";
    };
    readonly "qwen3-coder-flash": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1000000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "Qwen3 Coder Flash - Fast coding model with 1M context window optimized for speed";
    };
};

declare const requestyDefaultModelId = "coding/claude-4-sonnet";
declare const requestyDefaultModelInfo: ModelInfo;

/**
 * Roo Code Cloud is a dynamic provider - models are loaded from the /v1/models API endpoint.
 * Default model ID used as fallback when no model is specified.
 */
declare const rooDefaultModelId = "xai/grok-code-fast-1";
/**
 * Empty models object maintained for type compatibility.
 * All model data comes dynamically from the API.
 */
declare const rooModels: {};
/**
 * Roo Code Cloud API response schemas
 */
declare const RooPricingSchema: z.ZodObject<{
    input: z.ZodString;
    output: z.ZodString;
    input_cache_read: z.ZodOptional<z.ZodString>;
    input_cache_write: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    input: string;
    output: string;
    input_cache_read?: string | undefined;
    input_cache_write?: string | undefined;
}, {
    input: string;
    output: string;
    input_cache_read?: string | undefined;
    input_cache_write?: string | undefined;
}>;
declare const RooModelSchema: z.ZodObject<{
    id: z.ZodString;
    object: z.ZodLiteral<"model">;
    created: z.ZodNumber;
    owned_by: z.ZodString;
    name: z.ZodString;
    description: z.ZodString;
    context_window: z.ZodNumber;
    max_tokens: z.ZodNumber;
    type: z.ZodLiteral<"language">;
    tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    pricing: z.ZodObject<{
        input: z.ZodString;
        output: z.ZodString;
        input_cache_read: z.ZodOptional<z.ZodString>;
        input_cache_write: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        input: string;
        output: string;
        input_cache_read?: string | undefined;
        input_cache_write?: string | undefined;
    }, {
        input: string;
        output: string;
        input_cache_read?: string | undefined;
        input_cache_write?: string | undefined;
    }>;
    deprecated: z.ZodOptional<z.ZodBoolean>;
    default_temperature: z.ZodOptional<z.ZodNumber>;
    settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    versionedSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
}, "strip", z.ZodTypeAny, {
    object: "model";
    type: "language";
    id: string;
    max_tokens: number;
    description: string;
    name: string;
    created: number;
    owned_by: string;
    context_window: number;
    pricing: {
        input: string;
        output: string;
        input_cache_read?: string | undefined;
        input_cache_write?: string | undefined;
    };
    deprecated?: boolean | undefined;
    tags?: string[] | undefined;
    default_temperature?: number | undefined;
    settings?: Record<string, unknown> | undefined;
    versionedSettings?: Record<string, Record<string, unknown>> | undefined;
}, {
    object: "model";
    type: "language";
    id: string;
    max_tokens: number;
    description: string;
    name: string;
    created: number;
    owned_by: string;
    context_window: number;
    pricing: {
        input: string;
        output: string;
        input_cache_read?: string | undefined;
        input_cache_write?: string | undefined;
    };
    deprecated?: boolean | undefined;
    tags?: string[] | undefined;
    default_temperature?: number | undefined;
    settings?: Record<string, unknown> | undefined;
    versionedSettings?: Record<string, Record<string, unknown>> | undefined;
}>;
declare const RooModelsResponseSchema: z.ZodObject<{
    object: z.ZodLiteral<"list">;
    data: z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        object: z.ZodLiteral<"model">;
        created: z.ZodNumber;
        owned_by: z.ZodString;
        name: z.ZodString;
        description: z.ZodString;
        context_window: z.ZodNumber;
        max_tokens: z.ZodNumber;
        type: z.ZodLiteral<"language">;
        tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
        pricing: z.ZodObject<{
            input: z.ZodString;
            output: z.ZodString;
            input_cache_read: z.ZodOptional<z.ZodString>;
            input_cache_write: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            input: string;
            output: string;
            input_cache_read?: string | undefined;
            input_cache_write?: string | undefined;
        }, {
            input: string;
            output: string;
            input_cache_read?: string | undefined;
            input_cache_write?: string | undefined;
        }>;
        deprecated: z.ZodOptional<z.ZodBoolean>;
        default_temperature: z.ZodOptional<z.ZodNumber>;
        settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        versionedSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    }, "strip", z.ZodTypeAny, {
        object: "model";
        type: "language";
        id: string;
        max_tokens: number;
        description: string;
        name: string;
        created: number;
        owned_by: string;
        context_window: number;
        pricing: {
            input: string;
            output: string;
            input_cache_read?: string | undefined;
            input_cache_write?: string | undefined;
        };
        deprecated?: boolean | undefined;
        tags?: string[] | undefined;
        default_temperature?: number | undefined;
        settings?: Record<string, unknown> | undefined;
        versionedSettings?: Record<string, Record<string, unknown>> | undefined;
    }, {
        object: "model";
        type: "language";
        id: string;
        max_tokens: number;
        description: string;
        name: string;
        created: number;
        owned_by: string;
        context_window: number;
        pricing: {
            input: string;
            output: string;
            input_cache_read?: string | undefined;
            input_cache_write?: string | undefined;
        };
        deprecated?: boolean | undefined;
        tags?: string[] | undefined;
        default_temperature?: number | undefined;
        settings?: Record<string, unknown> | undefined;
        versionedSettings?: Record<string, Record<string, unknown>> | undefined;
    }>, "many">;
}, "strip", z.ZodTypeAny, {
    object: "list";
    data: {
        object: "model";
        type: "language";
        id: string;
        max_tokens: number;
        description: string;
        name: string;
        created: number;
        owned_by: string;
        context_window: number;
        pricing: {
            input: string;
            output: string;
            input_cache_read?: string | undefined;
            input_cache_write?: string | undefined;
        };
        deprecated?: boolean | undefined;
        tags?: string[] | undefined;
        default_temperature?: number | undefined;
        settings?: Record<string, unknown> | undefined;
        versionedSettings?: Record<string, Record<string, unknown>> | undefined;
    }[];
}, {
    object: "list";
    data: {
        object: "model";
        type: "language";
        id: string;
        max_tokens: number;
        description: string;
        name: string;
        created: number;
        owned_by: string;
        context_window: number;
        pricing: {
            input: string;
            output: string;
            input_cache_read?: string | undefined;
            input_cache_write?: string | undefined;
        };
        deprecated?: boolean | undefined;
        tags?: string[] | undefined;
        default_temperature?: number | undefined;
        settings?: Record<string, unknown> | undefined;
        versionedSettings?: Record<string, Record<string, unknown>> | undefined;
    }[];
}>;
type RooModel = z.infer<typeof RooModelSchema>;
type RooModelsResponse = z.infer<typeof RooModelsResponseSchema>;

type SambaNovaModelId = "Meta-Llama-3.1-8B-Instruct" | "Meta-Llama-3.3-70B-Instruct" | "DeepSeek-R1" | "DeepSeek-V3-0324" | "DeepSeek-V3.1" | "Llama-4-Maverick-17B-128E-Instruct" | "Qwen3-32B" | "gpt-oss-120b";
declare const sambaNovaDefaultModelId: SambaNovaModelId;
declare const sambaNovaModels: {
    readonly "Meta-Llama-3.1-8B-Instruct": {
        readonly maxTokens: 8192;
        readonly contextWindow: 16384;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.2;
        readonly description: "Meta Llama 3.1 8B Instruct model with 16K context window.";
    };
    readonly "Meta-Llama-3.3-70B-Instruct": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.6;
        readonly outputPrice: 1.2;
        readonly description: "Meta Llama 3.3 70B Instruct model with 128K context window.";
    };
    readonly "DeepSeek-R1": {
        readonly maxTokens: 8192;
        readonly contextWindow: 32768;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly supportsReasoningBudget: true;
        readonly inputPrice: 5;
        readonly outputPrice: 7;
        readonly description: "DeepSeek R1 reasoning model with 32K context window.";
    };
    readonly "DeepSeek-V3-0324": {
        readonly maxTokens: 8192;
        readonly contextWindow: 32768;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 3;
        readonly outputPrice: 4.5;
        readonly description: "DeepSeek V3 model with 32K context window.";
    };
    readonly "DeepSeek-V3.1": {
        readonly maxTokens: 8192;
        readonly contextWindow: 32768;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 3;
        readonly outputPrice: 4.5;
        readonly description: "DeepSeek V3.1 model with 32K context window.";
    };
    readonly "Llama-4-Maverick-17B-128E-Instruct": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.63;
        readonly outputPrice: 1.8;
        readonly description: "Meta Llama 4 Maverick 17B 128E Instruct model with 128K context window.";
    };
    readonly "Qwen3-32B": {
        readonly maxTokens: 8192;
        readonly contextWindow: 8192;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.4;
        readonly outputPrice: 0.8;
        readonly description: "Alibaba Qwen 3 32B model with 8K context window.";
    };
    readonly "gpt-oss-120b": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.22;
        readonly outputPrice: 0.59;
        readonly description: "OpenAI gpt oss 120b model with 128k context window.";
    };
};

declare const unboundDefaultModelId = "anthropic/claude-sonnet-4-5";
declare const unboundDefaultModelInfo: ModelInfo;

type VertexModelId = keyof typeof vertexModels;
declare const vertexDefaultModelId: VertexModelId;
declare const vertexModels: {
    readonly "gemini-3.1-pro-preview": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "low";
        readonly supportsTemperature: true;
        readonly defaultTemperature: 1;
        readonly inputPrice: 4;
        readonly outputPrice: 18;
        readonly cacheReadsPrice: 0.4;
        readonly cacheWritesPrice: 4.5;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 2;
            readonly outputPrice: 12;
            readonly cacheReadsPrice: 0.2;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 4;
            readonly outputPrice: 18;
            readonly cacheReadsPrice: 0.4;
        }];
    };
    readonly "gemini-3.1-pro-preview-customtools": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "medium", "high"];
        readonly reasoningEffort: "low";
        readonly supportsTemperature: true;
        readonly defaultTemperature: 1;
        readonly inputPrice: 4;
        readonly outputPrice: 18;
        readonly cacheReadsPrice: 0.4;
        readonly cacheWritesPrice: 4.5;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 2;
            readonly outputPrice: 12;
            readonly cacheReadsPrice: 0.2;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 4;
            readonly outputPrice: 18;
            readonly cacheReadsPrice: 0.4;
        }];
    };
    readonly "gemini-3-pro-preview": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["low", "high"];
        readonly reasoningEffort: "low";
        readonly supportsTemperature: true;
        readonly defaultTemperature: 1;
        readonly inputPrice: 4;
        readonly outputPrice: 18;
        readonly cacheReadsPrice: 0.4;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 2;
            readonly outputPrice: 12;
            readonly cacheReadsPrice: 0.2;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 4;
            readonly outputPrice: 18;
            readonly cacheReadsPrice: 0.4;
        }];
    };
    readonly "gemini-3-flash-preview": {
        readonly maxTokens: 65536;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["minimal", "low", "medium", "high"];
        readonly reasoningEffort: "medium";
        readonly supportsTemperature: true;
        readonly defaultTemperature: 1;
        readonly inputPrice: 0.5;
        readonly outputPrice: 3;
        readonly cacheReadsPrice: 0.05;
    };
    readonly "gemini-2.5-flash-preview-05-20:thinking": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.15;
        readonly outputPrice: 3.5;
        readonly maxThinkingTokens: 24576;
        readonly supportsReasoningBudget: true;
        readonly requiredReasoningBudget: true;
    };
    readonly "gemini-2.5-flash-preview-05-20": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.15;
        readonly outputPrice: 0.6;
    };
    readonly "gemini-2.5-flash": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 2.5;
        readonly cacheReadsPrice: 0.075;
        readonly cacheWritesPrice: 1;
        readonly maxThinkingTokens: 24576;
        readonly supportsReasoningBudget: true;
    };
    readonly "gemini-2.5-flash-preview-04-17:thinking": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.15;
        readonly outputPrice: 3.5;
        readonly maxThinkingTokens: 24576;
        readonly supportsReasoningBudget: true;
        readonly requiredReasoningBudget: true;
    };
    readonly "gemini-2.5-flash-preview-04-17": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.15;
        readonly outputPrice: 0.6;
    };
    readonly "gemini-2.5-pro-preview-03-25": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.5;
        readonly outputPrice: 15;
    };
    readonly "gemini-2.5-pro-preview-05-06": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.5;
        readonly outputPrice: 15;
    };
    readonly "gemini-2.5-pro-preview-06-05": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.5;
        readonly outputPrice: 15;
        readonly maxThinkingTokens: 32768;
        readonly supportsReasoningBudget: true;
    };
    readonly "gemini-2.5-pro": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.5;
        readonly outputPrice: 15;
        readonly maxThinkingTokens: 32768;
        readonly supportsReasoningBudget: true;
        readonly requiredReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 200000;
            readonly inputPrice: 1.25;
            readonly outputPrice: 10;
            readonly cacheReadsPrice: 0.31;
        }, {
            readonly contextWindow: number;
            readonly inputPrice: 2.5;
            readonly outputPrice: 15;
            readonly cacheReadsPrice: 0.625;
        }];
    };
    readonly "gemini-2.5-pro-exp-03-25": {
        readonly maxTokens: 65535;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
    };
    readonly "gemini-2.0-pro-exp-02-05": {
        readonly maxTokens: 8192;
        readonly contextWindow: 2097152;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
    };
    readonly "gemini-2.0-flash-001": {
        readonly maxTokens: 8192;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.15;
        readonly outputPrice: 0.6;
    };
    readonly "gemini-2.0-flash-lite-001": {
        readonly maxTokens: 8192;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.075;
        readonly outputPrice: 0.3;
    };
    readonly "gemini-2.0-flash-thinking-exp-01-21": {
        readonly maxTokens: 8192;
        readonly contextWindow: 32768;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
    };
    readonly "gemini-1.5-flash-002": {
        readonly maxTokens: 8192;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.075;
        readonly outputPrice: 0.3;
    };
    readonly "gemini-1.5-pro-002": {
        readonly maxTokens: 8192;
        readonly contextWindow: 2097152;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 1.25;
        readonly outputPrice: 5;
    };
    readonly "claude-sonnet-4@20250514": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 6;
            readonly outputPrice: 22.5;
            readonly cacheWritesPrice: 7.5;
            readonly cacheReadsPrice: 0.6;
        }];
    };
    readonly "claude-sonnet-4-5@20250929": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 6;
            readonly outputPrice: 22.5;
            readonly cacheWritesPrice: 7.5;
            readonly cacheReadsPrice: 0.6;
        }];
    };
    readonly "claude-sonnet-4-6": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 6;
            readonly outputPrice: 22.5;
            readonly cacheWritesPrice: 7.5;
            readonly cacheReadsPrice: 0.6;
        }];
    };
    readonly "claude-haiku-4-5@20251001": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1;
        readonly outputPrice: 5;
        readonly cacheWritesPrice: 1.25;
        readonly cacheReadsPrice: 0.1;
        readonly supportsReasoningBudget: true;
    };
    readonly "claude-opus-4-6": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 5;
        readonly outputPrice: 25;
        readonly cacheWritesPrice: 6.25;
        readonly cacheReadsPrice: 0.5;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 10;
            readonly outputPrice: 37.5;
            readonly cacheWritesPrice: 12.5;
            readonly cacheReadsPrice: 1;
        }];
    };
    readonly "claude-opus-4-7": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 5;
        readonly outputPrice: 25;
        readonly cacheWritesPrice: 6.25;
        readonly cacheReadsPrice: 0.5;
        readonly supportsReasoningBudget: true;
        readonly tiers: [{
            readonly contextWindow: 1000000;
            readonly inputPrice: 10;
            readonly outputPrice: 37.5;
            readonly cacheWritesPrice: 12.5;
            readonly cacheReadsPrice: 1;
        }];
    };
    readonly "claude-opus-4-5@20251101": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 5;
        readonly outputPrice: 25;
        readonly cacheWritesPrice: 6.25;
        readonly cacheReadsPrice: 0.5;
        readonly supportsReasoningBudget: true;
    };
    readonly "claude-opus-4-1@20250805": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 15;
        readonly outputPrice: 75;
        readonly cacheWritesPrice: 18.75;
        readonly cacheReadsPrice: 1.5;
        readonly supportsReasoningBudget: true;
    };
    readonly "claude-opus-4@20250514": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 15;
        readonly outputPrice: 75;
        readonly cacheWritesPrice: 18.75;
        readonly cacheReadsPrice: 1.5;
    };
    readonly "claude-3-7-sonnet@20250219:thinking": {
        readonly maxTokens: 64000;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
        readonly supportsReasoningBudget: true;
        readonly requiredReasoningBudget: true;
    };
    readonly "claude-3-7-sonnet@20250219": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
    };
    readonly "claude-3-5-sonnet-v2@20241022": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
    };
    readonly "claude-3-5-sonnet@20240620": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 3.75;
        readonly cacheReadsPrice: 0.3;
    };
    readonly "claude-3-5-haiku@20241022": {
        readonly maxTokens: 8192;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1;
        readonly outputPrice: 5;
        readonly cacheWritesPrice: 1.25;
        readonly cacheReadsPrice: 0.1;
    };
    readonly "claude-3-opus@20240229": {
        readonly maxTokens: 4096;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 15;
        readonly outputPrice: 75;
        readonly cacheWritesPrice: 18.75;
        readonly cacheReadsPrice: 1.5;
    };
    readonly "claude-3-haiku@20240307": {
        readonly maxTokens: 4096;
        readonly contextWindow: 200000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.25;
        readonly outputPrice: 1.25;
        readonly cacheWritesPrice: 0.3;
        readonly cacheReadsPrice: 0.03;
    };
    readonly "gemini-2.5-flash-lite-preview-06-17": {
        readonly maxTokens: 64000;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.4;
        readonly cacheReadsPrice: 0.025;
        readonly cacheWritesPrice: 1;
        readonly maxThinkingTokens: 24576;
        readonly supportsReasoningBudget: true;
    };
    readonly "llama-4-maverick-17b-128e-instruct-maas": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.35;
        readonly outputPrice: 1.15;
        readonly description: "Meta Llama 4 Maverick 17B Instruct model, 128K context.";
    };
    readonly "deepseek-r1-0528-maas": {
        readonly maxTokens: 32768;
        readonly contextWindow: 163840;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 1.35;
        readonly outputPrice: 5.4;
        readonly description: "DeepSeek R1 (0528). Available in us-central1";
    };
    readonly "deepseek-v3.1-maas": {
        readonly maxTokens: 32768;
        readonly contextWindow: 163840;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.6;
        readonly outputPrice: 1.7;
        readonly description: "DeepSeek V3.1. Available in us-west2";
    };
    readonly "gpt-oss-120b-maas": {
        readonly maxTokens: 32768;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.15;
        readonly outputPrice: 0.6;
        readonly description: "OpenAI gpt-oss 120B. Available in us-central1";
    };
    readonly "gpt-oss-20b-maas": {
        readonly maxTokens: 32768;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.075;
        readonly outputPrice: 0.3;
        readonly description: "OpenAI gpt-oss 20B. Available in us-central1";
    };
    readonly "qwen3-coder-480b-a35b-instruct-maas": {
        readonly maxTokens: 32768;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 1;
        readonly outputPrice: 4;
        readonly description: "Qwen3 Coder 480B A35B Instruct. Available in us-south1";
    };
    readonly "qwen3-235b-a22b-instruct-2507-maas": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262144;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.25;
        readonly outputPrice: 1;
        readonly description: "Qwen3 235B A22B Instruct. Available in us-south1";
    };
    readonly "moonshotai/kimi-k2-thinking-maas": {
        readonly maxTokens: 16384;
        readonly contextWindow: 262144;
        readonly supportsPromptCache: false;
        readonly supportsImages: false;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.5;
        readonly description: "Kimi K2 Thinking Model with 256K context window.";
    };
};
declare const VERTEX_1M_CONTEXT_MODEL_IDS: readonly ["claude-sonnet-4@20250514", "claude-sonnet-4-5@20250929", "claude-sonnet-4-6", "claude-opus-4-6", "claude-opus-4-7"];
declare const VERTEX_REGIONS: {
    value: string;
    label: string;
}[];

type VscodeLlmModelId = keyof typeof vscodeLlmModels;
declare const vscodeLlmDefaultModelId: VscodeLlmModelId;
declare const vscodeLlmModels: {
    readonly "gpt-3.5-turbo": {
        readonly contextWindow: 12114;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "gpt-3.5-turbo";
        readonly version: "gpt-3.5-turbo-0613";
        readonly name: "GPT 3.5 Turbo";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 12114;
    };
    readonly "gpt-4o-mini": {
        readonly contextWindow: 12115;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "gpt-4o-mini";
        readonly version: "gpt-4o-mini-2024-07-18";
        readonly name: "GPT-4o mini";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 12115;
    };
    readonly "gpt-4": {
        readonly contextWindow: 28501;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "gpt-4";
        readonly version: "gpt-4-0613";
        readonly name: "GPT 4";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 28501;
    };
    readonly "gpt-4-0125-preview": {
        readonly contextWindow: 63826;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "gpt-4-turbo";
        readonly version: "gpt-4-0125-preview";
        readonly name: "GPT 4 Turbo";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 63826;
    };
    readonly "gpt-4o": {
        readonly contextWindow: 63827;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "gpt-4o";
        readonly version: "gpt-4o-2024-11-20";
        readonly name: "GPT-4o";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 63827;
    };
    readonly o1: {
        readonly contextWindow: 19827;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "o1-ga";
        readonly version: "o1-2024-12-17";
        readonly name: "o1 (Preview)";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 19827;
    };
    readonly "o3-mini": {
        readonly contextWindow: 63827;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "o3-mini";
        readonly version: "o3-mini-2025-01-31";
        readonly name: "o3-mini";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 63827;
    };
    readonly "claude-3.5-sonnet": {
        readonly contextWindow: 81638;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "claude-3.5-sonnet";
        readonly version: "claude-3.5-sonnet";
        readonly name: "Claude 3.5 Sonnet";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 81638;
    };
    readonly "claude-4-sonnet": {
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "claude-sonnet-4";
        readonly version: "claude-sonnet-4";
        readonly name: "Claude Sonnet 4";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 111836;
    };
    readonly "gemini-2.0-flash-001": {
        readonly contextWindow: 127827;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "gemini-2.0-flash";
        readonly version: "gemini-2.0-flash-001";
        readonly name: "Gemini 2.0 Flash";
        readonly supportsToolCalling: false;
        readonly maxInputTokens: 127827;
    };
    readonly "gemini-2.5-pro": {
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "gemini-2.5-pro";
        readonly version: "gemini-2.5-pro-preview-03-25";
        readonly name: "Gemini 2.5 Pro (Preview)";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 108637;
    };
    readonly "o4-mini": {
        readonly contextWindow: 128000;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "o4-mini";
        readonly version: "o4-mini-2025-04-16";
        readonly name: "o4-mini (Preview)";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 111452;
    };
    readonly "gpt-4.1": {
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "gpt-4.1";
        readonly version: "gpt-4.1-2025-04-14";
        readonly name: "GPT-4.1 (Preview)";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 111452;
    };
    readonly "gpt-5-mini": {
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "gpt-5-mini";
        readonly version: "gpt-5-mini";
        readonly name: "GPT-5 mini (Preview)";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 108637;
    };
    readonly "gpt-5": {
        readonly contextWindow: 128000;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly family: "gpt-5";
        readonly version: "gpt-5";
        readonly name: "GPT-5 (Preview)";
        readonly supportsToolCalling: true;
        readonly maxInputTokens: 108637;
    };
};

type XAIModelId = keyof typeof xaiModels;
declare const xaiDefaultModelId: XAIModelId;
declare const xaiModels: {
    readonly "grok-4.20": {
        readonly maxTokens: 65536;
        readonly contextWindow: 2000000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2;
        readonly outputPrice: 6;
        readonly cacheWritesPrice: 0.5;
        readonly cacheReadsPrice: 0.5;
        readonly description: "xAI's flagship Grok 4.20 model with 2M context and reasoning support via Responses API.";
        readonly includedTools: ["search_replace"];
        readonly excludedTools: ["apply_diff"];
    };
    readonly "grok-code-fast-1": {
        readonly maxTokens: 16384;
        readonly contextWindow: 256000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.2;
        readonly outputPrice: 1.5;
        readonly cacheWritesPrice: 0.02;
        readonly cacheReadsPrice: 0.02;
        readonly description: "xAI's Grok Code Fast model with 256K context window";
        readonly includedTools: ["search_replace"];
        readonly excludedTools: ["apply_diff"];
    };
    readonly "grok-4-1-fast-reasoning": {
        readonly maxTokens: 65536;
        readonly contextWindow: 2000000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.2;
        readonly outputPrice: 0.5;
        readonly cacheWritesPrice: 0.05;
        readonly cacheReadsPrice: 0.05;
        readonly description: "xAI's Grok 4.1 Fast model with 2M context window, optimized for high-performance agentic tool calling with reasoning";
        readonly includedTools: ["search_replace"];
        readonly excludedTools: ["apply_diff"];
    };
    readonly "grok-4-1-fast-non-reasoning": {
        readonly maxTokens: 65536;
        readonly contextWindow: 2000000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.2;
        readonly outputPrice: 0.5;
        readonly cacheWritesPrice: 0.05;
        readonly cacheReadsPrice: 0.05;
        readonly description: "xAI's Grok 4.1 Fast model with 2M context window, optimized for high-performance agentic tool calling";
        readonly includedTools: ["search_replace"];
        readonly excludedTools: ["apply_diff"];
    };
    readonly "grok-4-fast-reasoning": {
        readonly maxTokens: 65536;
        readonly contextWindow: 2000000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.2;
        readonly outputPrice: 0.5;
        readonly cacheWritesPrice: 0.05;
        readonly cacheReadsPrice: 0.05;
        readonly description: "xAI's Grok 4 Fast model with 2M context window, optimized for high-performance agentic tool calling with reasoning";
        readonly includedTools: ["search_replace"];
        readonly excludedTools: ["apply_diff"];
    };
    readonly "grok-4-fast-non-reasoning": {
        readonly maxTokens: 65536;
        readonly contextWindow: 2000000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.2;
        readonly outputPrice: 0.5;
        readonly cacheWritesPrice: 0.05;
        readonly cacheReadsPrice: 0.05;
        readonly description: "xAI's Grok 4 Fast model with 2M context window, optimized for high-performance agentic tool calling";
        readonly includedTools: ["search_replace"];
        readonly excludedTools: ["apply_diff"];
    };
    readonly "grok-4-0709": {
        readonly maxTokens: 8192;
        readonly contextWindow: 256000;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 0.75;
        readonly cacheReadsPrice: 0.75;
        readonly description: "xAI's Grok-4 model with 256K context window";
        readonly includedTools: ["search_replace"];
        readonly excludedTools: ["apply_diff"];
    };
    readonly "grok-3-mini": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 0.5;
        readonly cacheWritesPrice: 0.07;
        readonly cacheReadsPrice: 0.07;
        readonly description: "xAI's Grok-3 mini model with 128K context window";
        readonly supportsReasoningEffort: ["low", "high"];
        readonly reasoningEffort: "low";
        readonly includedTools: ["search_replace"];
        readonly excludedTools: ["apply_diff"];
    };
    readonly "grok-3": {
        readonly maxTokens: 8192;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 3;
        readonly outputPrice: 15;
        readonly cacheWritesPrice: 0.75;
        readonly cacheReadsPrice: 0.75;
        readonly description: "xAI's Grok-3 model with 128K context window";
        readonly includedTools: ["search_replace"];
        readonly excludedTools: ["apply_diff"];
    };
};

declare const costrictDefaultModelId = "Auto";
declare const costrictModelsConfig: {
    readonly default: ModelInfo;
};

declare const vercelAiGatewayDefaultModelId = "anthropic/claude-sonnet-4";
declare const VERCEL_AI_GATEWAY_PROMPT_CACHING_MODELS: Set<string>;
declare const VERCEL_AI_GATEWAY_VISION_ONLY_MODELS: Set<string>;
declare const VERCEL_AI_GATEWAY_VISION_AND_TOOLS_MODELS: Set<string>;
declare const vercelAiGatewayDefaultModelInfo: ModelInfo;
declare const VERCEL_AI_GATEWAY_DEFAULT_TEMPERATURE = 0.7;

type InternationalZAiModelId = keyof typeof internationalZAiModels;
declare const internationalZAiDefaultModelId: InternationalZAiModelId;
declare const internationalZAiModels: {
    readonly "glm-4.5": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.2;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.11;
        readonly description: "GLM-4.5 is Zhipu's latest featured model. Its comprehensive capabilities in reasoning, coding, and agent reach the state-of-the-art (SOTA) level among open-source models, with a context length of up to 128k.";
    };
    readonly "glm-4.5-air": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.2;
        readonly outputPrice: 1.1;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.03;
        readonly description: "GLM-4.5-Air is the lightweight version of GLM-4.5. It balances performance and cost-effectiveness, and can flexibly switch to hybrid thinking models.";
    };
    readonly "glm-4.5-x": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 2.2;
        readonly outputPrice: 8.9;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.45;
        readonly description: "GLM-4.5-X is a high-performance variant optimized for strong reasoning with ultra-fast responses.";
    };
    readonly "glm-4.5-airx": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 1.1;
        readonly outputPrice: 4.5;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.22;
        readonly description: "GLM-4.5-AirX is a lightweight, ultra-fast variant delivering strong performance with lower cost.";
    };
    readonly "glm-4.5-flash": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "GLM-4.5-Flash is a free, high-speed model excellent for reasoning, coding, and agentic tasks.";
    };
    readonly "glm-4.5v": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 1.8;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.11;
        readonly description: "GLM-4.5V is Z.AI's multimodal visual reasoning model (image/video/text/file input), optimized for GUI tasks, grounding, and document/video understanding.";
    };
    readonly "glm-4.6v": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 0.9;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.05;
        readonly description: "GLM-4.6V is an advanced multimodal vision model with improved performance and cost-efficiency for visual understanding tasks.";
    };
    readonly "glm-4.6": {
        readonly maxTokens: 16384;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.2;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.11;
        readonly description: "GLM-4.6 is Zhipu's newest model with an extended context window of up to 200k tokens, providing enhanced capabilities for processing longer documents and conversations.";
    };
    readonly "glm-4.7": {
        readonly maxTokens: 16384;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["disable", "medium"];
        readonly reasoningEffort: "medium";
        readonly preserveReasoning: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.2;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.11;
        readonly description: "GLM-4.7 is Zhipu's latest model with built-in thinking capabilities enabled by default. It provides enhanced reasoning for complex tasks while maintaining fast response times.";
    };
    readonly "glm-5": {
        readonly maxTokens: 16384;
        readonly contextWindow: 202752;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["disable", "medium"];
        readonly reasoningEffort: "medium";
        readonly preserveReasoning: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.2;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.11;
        readonly description: "GLM-5 is Zhipu's next-generation model with a 202k context window and built-in thinking capabilities. It delivers state-of-the-art reasoning, coding, and agentic performance.";
    };
    readonly "glm-5-turbo": {
        readonly maxTokens: 131072;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["disable", "medium"];
        readonly reasoningEffort: "medium";
        readonly preserveReasoning: true;
        readonly inputPrice: 1.2;
        readonly outputPrice: 4;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.24;
        readonly description: "GLM-5-Turbo is a model deeply optimized for the OpenClaw agentic scenario, with enhanced capabilities in tool invocation, instruction following, scheduled tasks, and long-chain execution.";
    };
    readonly "glm-5.1": {
        readonly maxTokens: 131072;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["disable", "medium"];
        readonly reasoningEffort: "medium";
        readonly preserveReasoning: true;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "GLM-5.1 is the latest iteration of the GLM-5 series, available via the GLM Coding Plan with enhanced capabilities for coding and agentic tasks.";
    };
    readonly "glm-4.7-flash": {
        readonly maxTokens: 16384;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "GLM-4.7-Flash is a free, high-speed variant of GLM-4.7 offering fast responses for reasoning and coding tasks.";
    };
    readonly "glm-4.7-flashx": {
        readonly maxTokens: 16384;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.07;
        readonly outputPrice: 0.4;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.01;
        readonly description: "GLM-4.7-FlashX is an ultra-fast variant of GLM-4.7 with exceptional speed and cost-effectiveness for high-throughput applications.";
    };
    readonly "glm-4.6v-flash": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "GLM-4.6V-Flash is a free, high-speed multimodal vision model for rapid image understanding and visual reasoning tasks.";
    };
    readonly "glm-4.6v-flashx": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.04;
        readonly outputPrice: 0.4;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.004;
        readonly description: "GLM-4.6V-FlashX is an ultra-fast multimodal vision model optimized for high-speed visual processing at low cost.";
    };
    readonly "glm-4-32b-0414-128k": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.1;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "GLM-4-32B is a 32 billion parameter model with 128k context length, optimized for efficiency.";
    };
};
type MainlandZAiModelId = keyof typeof mainlandZAiModels;
declare const mainlandZAiDefaultModelId: MainlandZAiModelId;
declare const mainlandZAiModels: {
    readonly "glm-4.5": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.29;
        readonly outputPrice: 1.14;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.057;
        readonly description: "GLM-4.5 is Zhipu's latest featured model. Its comprehensive capabilities in reasoning, coding, and agent reach the state-of-the-art (SOTA) level among open-source models, with a context length of up to 128k.";
    };
    readonly "glm-4.5-air": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.6;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.02;
        readonly description: "GLM-4.5-Air is the lightweight version of GLM-4.5. It balances performance and cost-effectiveness, and can flexibly switch to hybrid thinking models.";
    };
    readonly "glm-4.5-x": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.29;
        readonly outputPrice: 1.14;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.057;
        readonly description: "GLM-4.5-X is a high-performance variant optimized for strong reasoning with ultra-fast responses.";
    };
    readonly "glm-4.5-airx": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.1;
        readonly outputPrice: 0.6;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.02;
        readonly description: "GLM-4.5-AirX is a lightweight, ultra-fast variant delivering strong performance with lower cost.";
    };
    readonly "glm-4.5-flash": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "GLM-4.5-Flash is a free, high-speed model excellent for reasoning, coding, and agentic tasks.";
    };
    readonly "glm-4.5v": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.29;
        readonly outputPrice: 0.93;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.057;
        readonly description: "GLM-4.5V is Z.AI's multimodal visual reasoning model (image/video/text/file input), optimized for GUI tasks, grounding, and document/video understanding.";
    };
    readonly "glm-4.6": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.29;
        readonly outputPrice: 1.14;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.057;
        readonly description: "GLM-4.6 is Zhipu's newest model with an extended context window of up to 200k tokens, providing enhanced capabilities for processing longer documents and conversations.";
    };
    readonly "glm-4.7": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["disable", "medium"];
        readonly reasoningEffort: "medium";
        readonly preserveReasoning: true;
        readonly inputPrice: 0.29;
        readonly outputPrice: 1.14;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.057;
        readonly description: "GLM-4.7 is Zhipu's latest model with built-in thinking capabilities enabled by default. It provides enhanced reasoning for complex tasks while maintaining fast response times.";
    };
    readonly "glm-5": {
        readonly maxTokens: 16384;
        readonly contextWindow: 202752;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["disable", "medium"];
        readonly reasoningEffort: "medium";
        readonly preserveReasoning: true;
        readonly inputPrice: 0.29;
        readonly outputPrice: 1.14;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.057;
        readonly description: "GLM-5 is Zhipu's next-generation model with a 202k context window and built-in thinking capabilities. It delivers state-of-the-art reasoning, coding, and agentic performance.";
    };
    readonly "glm-5.1": {
        readonly maxTokens: 131072;
        readonly contextWindow: 200000;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly supportsReasoningEffort: ["disable", "medium"];
        readonly reasoningEffort: "medium";
        readonly preserveReasoning: true;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "GLM-5.1 is the latest iteration of the GLM-5 series, available via the GLM Coding Plan with enhanced capabilities for coding and agentic tasks.";
    };
    readonly "glm-4.7-flash": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "GLM-4.7-Flash is a free, high-speed variant of GLM-4.7 offering fast responses for reasoning and coding tasks.";
    };
    readonly "glm-4.7-flashx": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.035;
        readonly outputPrice: 0.2;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.005;
        readonly description: "GLM-4.7-FlashX is an ultra-fast variant of GLM-4.7 with exceptional speed and cost-effectiveness for high-throughput applications.";
    };
    readonly "glm-4.6v": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.15;
        readonly outputPrice: 0.45;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.025;
        readonly description: "GLM-4.6V is an advanced multimodal vision model with improved performance and cost-efficiency for visual understanding tasks.";
    };
    readonly "glm-4.6v-flash": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0;
        readonly outputPrice: 0;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0;
        readonly description: "GLM-4.6V-Flash is a free, high-speed multimodal vision model for rapid image understanding and visual reasoning tasks.";
    };
    readonly "glm-4.6v-flashx": {
        readonly maxTokens: 16384;
        readonly contextWindow: 131072;
        readonly supportsImages: true;
        readonly supportsPromptCache: true;
        readonly inputPrice: 0.02;
        readonly outputPrice: 0.2;
        readonly cacheWritesPrice: 0;
        readonly cacheReadsPrice: 0.002;
        readonly description: "GLM-4.6V-FlashX is an ultra-fast multimodal vision model optimized for high-speed visual processing at low cost.";
    };
};
declare const ZAI_DEFAULT_TEMPERATURE = 0.6;
declare const zaiApiLineConfigs: {
    international_coding: {
        name: string;
        baseUrl: string;
        isChina: false;
    };
    china_coding: {
        name: string;
        baseUrl: string;
        isChina: true;
    };
    international_api: {
        name: string;
        baseUrl: string;
        isChina: false;
    };
    china_api: {
        name: string;
        baseUrl: string;
        isChina: true;
    };
};

type MinimaxModelId = keyof typeof minimaxModels;
declare const minimaxDefaultModelId: MinimaxModelId;
declare const minimaxModels: {
    readonly "MiniMax-M2.7": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly includedTools: ["search_and_replace"];
        readonly excludedTools: ["apply_diff"];
        readonly preserveReasoning: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 1.2;
        readonly cacheWritesPrice: 0.375;
        readonly cacheReadsPrice: 0.06;
        readonly description: "MiniMax M2.7, the latest MiniMax model with recursive self-improvement capabilities. See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Note: When using TokenPlan, usage is billed per request, not per token.";
    };
    readonly "MiniMax-M2.7-highspeed": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly includedTools: ["search_and_replace"];
        readonly excludedTools: ["apply_diff"];
        readonly preserveReasoning: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.4;
        readonly cacheWritesPrice: 0.375;
        readonly cacheReadsPrice: 0.06;
        readonly description: "MiniMax M2.7 highspeed: same performance as M2.7 but with faster response (approximately 100 tps vs 60 tps). See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Requires TokenPlan High-Speed subscription for use with TokenPlan keys. Note: When using TokenPlan, usage is billed per request, not per token.";
    };
    readonly "MiniMax-M2.5": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly includedTools: ["search_and_replace"];
        readonly excludedTools: ["apply_diff"];
        readonly preserveReasoning: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 1.2;
        readonly cacheWritesPrice: 0.375;
        readonly cacheReadsPrice: 0.03;
        readonly description: "MiniMax M2.5, the latest MiniMax model with enhanced coding and agentic capabilities, building on the strengths of the M2 series. See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Note: When using TokenPlan, usage is billed per request, not per token.";
    };
    readonly "MiniMax-M2.5-highspeed": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly includedTools: ["search_and_replace"];
        readonly excludedTools: ["apply_diff"];
        readonly preserveReasoning: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.4;
        readonly cacheWritesPrice: 0.375;
        readonly cacheReadsPrice: 0.03;
        readonly description: "MiniMax M2.5 highspeed: same performance as M2.5 but with faster response (approximately 100 tps vs 60 tps). See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Requires TokenPlan High-Speed subscription for use with TokenPlan keys. Note: When using TokenPlan, usage is billed per request, not per token.";
    };
    readonly "MiniMax-M2": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly includedTools: ["search_and_replace"];
        readonly excludedTools: ["apply_diff"];
        readonly preserveReasoning: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 1.2;
        readonly cacheWritesPrice: 0.375;
        readonly cacheReadsPrice: 0.03;
        readonly description: "MiniMax M2, a model born for Agents and code, featuring Top-tier Coding Capabilities, Powerful Agentic Performance, and Ultimate Cost-Effectiveness & Speed. See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Note: When using TokenPlan, usage is billed per request, not per token.";
    };
    readonly "MiniMax-M2-Stable": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly includedTools: ["search_and_replace"];
        readonly excludedTools: ["apply_diff"];
        readonly preserveReasoning: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 1.2;
        readonly cacheWritesPrice: 0.375;
        readonly cacheReadsPrice: 0.03;
        readonly description: "MiniMax M2 Stable (High Concurrency, Commercial Use), a model born for Agents and code, featuring Top-tier Coding Capabilities, Powerful Agentic Performance, and Ultimate Cost-Effectiveness & Speed. See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Note: When using TokenPlan, usage is billed per request, not per token.";
    };
    readonly "MiniMax-M2.1": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly includedTools: ["search_and_replace"];
        readonly excludedTools: ["apply_diff"];
        readonly preserveReasoning: true;
        readonly inputPrice: 0.3;
        readonly outputPrice: 1.2;
        readonly cacheWritesPrice: 0.375;
        readonly cacheReadsPrice: 0.03;
        readonly description: "MiniMax M2.1 builds on M2 with improved overall performance for agentic coding tasks and significantly faster response times. See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Note: When using TokenPlan, usage is billed per request, not per token.";
    };
    readonly "MiniMax-M2.1-highspeed": {
        readonly maxTokens: 16384;
        readonly contextWindow: 204800;
        readonly supportsImages: false;
        readonly supportsPromptCache: true;
        readonly includedTools: ["search_and_replace"];
        readonly excludedTools: ["apply_diff"];
        readonly preserveReasoning: true;
        readonly inputPrice: 0.6;
        readonly outputPrice: 2.4;
        readonly cacheWritesPrice: 0.375;
        readonly cacheReadsPrice: 0.03;
        readonly description: "MiniMax M2.1 highspeed: same performance as M2.1 but with faster response (approximately 100 tps vs 60 tps). See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Requires TokenPlan High-Speed subscription for use with TokenPlan keys. Note: When using TokenPlan, usage is billed per request, not per token.";
    };
};
declare const minimaxDefaultModelInfo: ModelInfo;
declare const MINIMAX_DEFAULT_MAX_TOKENS = 16384;
declare const MINIMAX_DEFAULT_TEMPERATURE = 1;

type MimoModelId = keyof typeof mimoModels;
declare const mimoDefaultModelId: MimoModelId;
declare const mimoModels: {
    readonly "mimo-v2.5-pro": {
        readonly maxTokens: 131072;
        readonly contextWindow: 1048576;
        readonly supportsImages: false;
        readonly supportsPromptCache: false;
        readonly preserveReasoning: true;
        readonly inputPrice: 1;
        readonly outputPrice: 3;
        readonly cacheReadsPrice: 0.2;
        readonly cacheWritesPrice: 0;
        readonly longContextPricing: {
            readonly thresholdTokens: 256000;
            readonly inputPriceMultiplier: 2;
            readonly outputPriceMultiplier: 2;
            readonly cacheReadsPriceMultiplier: 2;
        };
        readonly description: "MiMo V2.5 Pro - Xiaomi's flagship reasoning model with 1M context, deep thinking, tool calling, and structured output.";
    };
    readonly "mimo-v2.5": {
        readonly maxTokens: 131072;
        readonly contextWindow: 1048576;
        readonly supportsImages: true;
        readonly supportsPromptCache: false;
        readonly preserveReasoning: true;
        readonly inputPrice: 0.4;
        readonly outputPrice: 2;
        readonly cacheReadsPrice: 0.08;
        readonly cacheWritesPrice: 0;
        readonly longContextPricing: {
            readonly thresholdTokens: 256000;
            readonly inputPriceMultiplier: 2;
            readonly outputPriceMultiplier: 2;
            readonly cacheReadsPriceMultiplier: 2;
        };
        readonly description: "MiMo V2.5 - Full-modal understanding model (text, image, audio, video) with 1M context, deep thinking, tool calling, and structured output.";
    };
};
declare const mimoDefaultModelInfo: ModelInfo;
declare const MIMO_DEFAULT_TEMPERATURE = 1;

/**
 * Get the default model ID for a given provider.
 * This function returns only the provider's default model ID, without considering user configuration.
 * Used as a fallback when provider models are still loading.
 */
declare function getProviderDefaultModelId(provider: ProviderName, options?: {
    isChina?: boolean;
}, apiConfiguration?: ProviderSettings): string;

declare function resolveI18nPrompt(modeSlug: string, language?: string, modelFamily?: string): PromptComponent | undefined;

declare const PROJECT_WIKI_VERSION = "v2.0.1";
declare const PROJECT_RULES_OUTPUT_FILE = "generated_rules.md";
declare function getHomeDir(): string;
declare function getGlobalCommandsDir(): string;
declare function getSubtaskDir(language?: string): string;
declare const SUBTASK_FILENAMES: {
    readonly PROJECT_CLASSIFICATION_AGENT: "01_project-classification-agent.md";
    readonly THINK_CATALOGUE_AGENT: "02_catalogue-design-agent.md";
    readonly DOCUMENT_GENERATION_AGENT: "03_document-generation-agent.md";
    readonly INDEX_GENERATION_AGENT: "04_index-generation-agent.md";
};
declare const AGENT_OUTPUT_FILENAMES: {
    readonly PROJECT_CLASSIFICATION_AGENT: "project-classification.md";
    readonly REPOSITORY_ANALYSIS_AGENT: "repository-analysis.md";
    readonly THINK_CATALOGUE_AGENT: "think-catalogue.md";
    readonly DOCUMENT_GENERATION_AGENT: "technical-documentation.md";
    readonly INDEX_GENERATION_AGENT: "index.md";
};
declare const MAIN_WIKI_FILENAME = "project-wiki.md";
declare const WIKI_OUTPUT_FILE_PATHS: {
    readonly STAGING_OUTPUT_DIR: ".cospec/wiki/.staging/";
    readonly WIKI_OUTPUT_DIR: ".cospec/wiki/";
    readonly GENERAL_RULES_OUTPUT_DIR: ".roo/rules-code/";
    readonly PROJECT_BASIC_ANALYZE_JSON: ".cospec/wiki/.staging/basic_analyze.json";
    readonly OUTPUT_CATALOGUE_JSON: ".cospec/wiki/.staging/catalogue.json";
    readonly DOCUMENT_INDEX_MD: ".cospec/wiki/index.md";
};
declare const MODE_THRESHOLDS: {
    readonly SMALL_PROJECT: 50;
    readonly MEDIUM_PROJECT: 200;
    readonly LARGE_PROJECT: 201;
};
type WikiPromptConstants = {
    PROJECT_WIKI_VERSION: typeof PROJECT_WIKI_VERSION;
    SUBTASK_FILENAMES: typeof SUBTASK_FILENAMES;
    AGENT_OUTPUT_FILENAMES: typeof AGENT_OUTPUT_FILENAMES;
    MAIN_WIKI_FILENAME: typeof MAIN_WIKI_FILENAME;
    WIKI_OUTPUT_FILE_PATHS: typeof WIKI_OUTPUT_FILE_PATHS;
    MODE_THRESHOLDS: typeof MODE_THRESHOLDS;
    NEW_SUBTASK: string;
    COMMON_RULES: string;
};
declare function resolveI18nWikiPromptConstants(language?: string): WikiPromptConstants;

type CommandContentFactory = (params: {
    workspace: string;
    language?: string;
}) => string;
type SubtaskTemplateFactory = (workspace: string) => string;
type SubtaskTemplates = Record<string, SubtaskTemplateFactory>;
/**
 * Register a command content factory for a specific language
 * @param slug Command slug (e.g., 'tdd', 'project-wiki')
 * @param language Language code (e.g., 'en', 'zh-CN')
 * @param content Command content factory or static string
 */
declare function registerI18nCommandContent(slug: string, language: string, content: CommandContentFactory | string): void;
/**
 * Register subtask templates for a specific language
 * @param language Language code (e.g., 'en', 'zh-CN')
 * @param templates Subtask templates object
 */
declare function registerI18nSubtaskTemplates(language: string, templates: SubtaskTemplates): void;
/**
 * Resolve i18n command content
 * @param slug Command slug
 * @param language Language code (defaults to 'en')
 * @param params Parameters for content factory
 * @returns Command content string or undefined if not found
 */
declare function resolveI18nCommandContent(slug: string, language: string | undefined, params: {
    workspace: string;
}): string | undefined;
/**
 * Resolve i18n subtask templates
 * @param language Language code (defaults to 'en')
 * @returns Subtask templates object or empty object if not found
 */
declare function resolveI18nSubtaskTemplates(language?: string): SubtaskTemplates;
/**
 * Check if a command has i18n content for a language
 * @param slug Command slug
 * @param language Language code
 */
declare function hasI18nCommandContent(slug: string, language: string): boolean;
/**
 * Check if subtask templates exist for a language
 * @param language Language code
 */
declare function hasI18nSubtaskTemplates(language: string): boolean;

export { AGENT_OUTPUT_FILENAMES, ANTHROPIC_DEFAULT_MAX_TOKENS, ANTHROPIC_STYLE_PROVIDERS, AWS_INFERENCE_PROFILE_MAPPING, type Ack, type AnthropicModelId, ApiProviderError, type AppProperties, type AssertEqual, type AsyncPollingConfig, AsyncPollingConfigSchema, type AsyncPollingToolConfig, AsyncPollingToolConfigSchema, type AudioType, type AuthService, type AuthServiceEvents, type AuthState, type AutoCleanupSettings, BEDROCK_1M_CONTEXT_MODEL_IDS, BEDROCK_DEFAULT_CONTEXT, BEDROCK_DEFAULT_TEMPERATURE, BEDROCK_GLOBAL_INFERENCE_MODEL_IDS, BEDROCK_MAX_TOKENS, BEDROCK_REGIONS, BEDROCK_SERVICE_TIER_MODEL_IDS, BEDROCK_SERVICE_TIER_PRICING, type BasetenModelId, type BedrockModelId, type BedrockServiceTier, type BranchInfo, CODEBASE_INDEX_DEFAULTS, CONSENT_COOKIE_NAME, CONTEXT_MANAGEMENT_EVENTS, COOKIE_CONSENT_EVENTS, type CheckpointDiffPayload, type CheckpointRestorePayload, type ClaudeCodeModelId, type ClaudeCodeRateLimitInfo, type ClaudeCodeReasoningLevel, type CleanupResult, CleanupStrategy, type ClineApiReqCancelReason, type ClineApiReqInfo, type ClineAsk, type ClineAskResponse, type ClineAskUseMcpServer, type ClineMessage, type ClineSay, type ClineSayTool, type CloudAppProperties, type CloudOrganization, type CloudOrganizationMembership, type CloudServiceEvents, type CloudUserInfo, type CodeActionId, type CodeActionName, type CodeReviewWelcomeTipsPayload, type CodebaseIndexConfig, type CodebaseIndexModels, type CodebaseIndexProvider, type Command, type CommandContentFactory, type CommandExecutionStatus, type CommandId, ConnectionState, ConsecutiveMistakeError, type ConsecutiveMistakeReason, type ConsentCookieValue, type ContextCondense, type ContextManagementEvent, type ContextTruncation, type Coordinate, type CostrictCodeMode, type CostrictCommandId, type CostrictUserInfo, type CreateReviewTaskPayload, type CreateTaskOptions, type CreateWorktreeOptions, type CustomModePrompts, type CustomModesSettings, type CustomProvider, type CustomSupportPrompts, type CustomToolContext, type CustomToolDefinition, type CustomToolParametersSchema, DEEP_SEEK_DEFAULT_TEMPERATURE, DEFAULT_AUTO_CLEANUP_SETTINGS, DEFAULT_CHECKPOINT_TIMEOUT_SECONDS, DEFAULT_CONSECUTIVE_MISTAKE_LIMIT, DEFAULT_FILE_READ_CHARACTER_LIMIT, DEFAULT_MODES, DEFAULT_TERMINAL_OUTPUT_PREVIEW_SIZE, DEFAULT_WRITE_DELAY_MS, type DeepSeekModelId, type DynamicAppProperties, type DynamicProvider, EVALS_SETTINGS, EVALS_TIMEOUT, EXPECTED_API_ERROR_CODES, type EditQueuedMessagePayload, type EmbedderProvider, type EmbeddingModelProfile, type EmbeddingModelProfiles, type EnabledMcpToolsCount, type Equals, type ExperimentId, type ExperimentSettings, type Experiments, type ExtensionInstance, type ExtensionMessage, ExtensionSocketEvents, type ExtensionState, type ExtensionTask, type FauxProvider, type FileEntry, type FireworksModelId, type FollowUpData, type FollowUpDataType, GLOBAL_SECRET_KEYS, GLOBAL_SETTINGS_KEYS, GLOBAL_STATE_KEYS, type GeminiCliModelId, type GeminiModelId, type GenerateImageParams, type GitCommit, type GitProperties, type GitRepositoryInfo, type GlobalSettings, type GlobalState, type GroupEntry, type GroupOptions, HEARTBEAT_INTERVAL_MS, type HistoryItem, type ICostrictModelResponseData, IMAGE_GENERATION_MODELS, IMAGE_GENERATION_MODEL_IDS, INSTANCE_TTL_SECONDS, type INotice, type INoticesResponse, type IdleAsk, type ImageGenerationApiMethod, type ImageGenerationModel, type ImageGenerationProvider, type IndentationParams, type IndexClearedPayload, type IndexingStatus, type IndexingStatusPayload, type IndexingStatusUpdateMessage, type InstallMarketplaceItemOptions, type InstallMarketplaceItemWithParametersPayload, type InteractiveAsk, type InternalProvider, type InternationalZAiModelId, type InviteCodeInfo, type IpcClientEvents, type IpcMessage, IpcMessageType, IpcOrigin, type IpcServerEvents, type JWTPayload, type JoinResponse, type Keys, LMSTUDIO_DEFAULT_TEMPERATURE, type Language, type LanguageModelChatSelector, type LeaveResponse, type LegacyReadFileParams, type LineRange, type LocalProvider, MAIN_WIKI_FILENAME, MAX_CHECKPOINT_TIMEOUT_SECONDS, MAX_MCP_TOOLS_THRESHOLD, MAX_WORKSPACE_FILES, MIMO_DEFAULT_TEMPERATURE, MINIMAX_DEFAULT_MAX_TOKENS, MINIMAX_DEFAULT_TEMPERATURE, MIN_CHECKPOINT_TIMEOUT_SECONDS, MISTRAL_DEFAULT_TEMPERATURE, MODELS_BY_PROVIDER, MODE_THRESHOLDS, MOONSHOT_DEFAULT_TEMPERATURE, type MainlandZAiModelId, type MarketplaceInstalledMetadata, type MarketplaceItem, type MarketplaceItemType, type McpAsyncTaskRecord, McpAsyncTaskRecordSchema, type McpAsyncTaskSummary, McpAsyncTaskSummarySchema, type McpErrorEntry, type McpExecutionStatus, type McpInstallationMethod, type McpMarketplaceItem, type McpParameter, type McpResource, type McpResourceResponse, type McpResourceTemplate, type McpServer, type McpServerUse, type McpTool, type McpToolCallResponse, type MimoModelId, type MinimaxModelId, type MistralModelId, type ModeConfig, type ModeMarketplaceItem, type ModelIdKey, type ModelInfo, type ModelParameter, type ModelRecord, type MoonshotModelId, type MultipleChoiceData, type MultipleChoiceDataType, type MultipleChoiceOption, type MultipleChoiceQuestion, type MultipleChoiceQuestionResponse, type MultipleChoiceResponse, type NonBlockingAsk, OPENAI_AZURE_AI_INFERENCE_PATH, OPENAI_NATIVE_DEFAULT_TEMPERATURE, OPENROUTER_DEFAULT_PROVIDER_NAME, OPEN_ROUTER_PROMPT_CACHING_MODELS, OPEN_ROUTER_REASONING_BUDGET_MODELS, OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS, ORGANIZATION_ALLOW_ALL, ORGANIZATION_DEFAULT, type OpenAiCodexModelId, type OpenAiCodexRateLimitInfo, type OpenAiCodexRateLimitsMessage, type OpenAiNativeModelId, type OrganizationAllowList, type OrganizationCloudSettings, type OrganizationDefaultSettings, type OrganizationFeatures, type OrganizationSettings, PROJECT_RULES_OUTPUT_FILE, PROJECT_WIKI_VERSION, PROVIDER_SETTINGS_KEYS, type PersistedCommandOutput, type PromptComponent, type ProviderName, type ProviderNameWithRetired, type ProviderSettings, type ProviderSettingsEntry, type ProviderSettingsWithId, type QueuedMessage, type QuotaInfo, type QwenCodeModelId, type ReadFileMode, type ReadFileParams, type ReadFileToolParams, type ReasoningEffort, type ReasoningEffortExtended, type ReasoningEffortWithMinimal, type RequestOpenAiCodexRateLimitsMessage, type ResumableAsk, type RetiredProviderName, type RetryConfig, type ReviewFilesPayload, type RooCliCancelCommand, type RooCliCommandBase, type RooCliCommandName, type RooCliControlEvent, type RooCliControlSubtype, type RooCliCost, type RooCliEventType, type RooCliFinalOutput, type RooCliInputCommand, type RooCliMessageCommand, type RooCliOutputFormat, type RooCliPingCommand, type RooCliQueueItem, type RooCliShutdownCommand, type RooCliStartCommand, type RooCliStreamEvent, type RooCliToolResult, type RooCliToolUse, type RooCodeAPI, type RooCodeAPIEvents, RooCodeEventName, type RooCodeEvents, type RooCodeIpcServer, type RooCodeSettings, type RooCodeTelemetryEvent, type RooModel, RooModelSchema, type RooModelsResponse, RooModelsResponseSchema, RooPricingSchema, type RouterModels, SECRET_STATE_KEYS, SKILL_NAME_MAX_LENGTH, SKILL_NAME_MIN_LENGTH, SKILL_NAME_REGEX, SUBTASK_FILENAMES, type SambaNovaModelId, type SecretState, type SerializedCustomToolDefinition, type SerializedCustomToolParameters, type ServiceTier, type SettingsService, type SettingsServiceEvents, type ShareResponse, type ShareVisibility, type Size, type SkillMetadata, SkillNameValidationError, type SkillNameValidationResult, type SmartMistakeDetectionConfig, type StaticAppProperties, type SubtaskTemplateFactory, type SubtaskTemplates, type SuggestionItem, TERMINAL_PREVIEW_BYTES, type TaskBridgeCommand, TaskBridgeCommandName, type TaskBridgeEvent, TaskBridgeEventName, type TaskCommand, TaskCommandName, type TaskEvent, type TaskEvents, type TaskLike, type TaskMetadata, type TaskProperties, type TaskProviderEvents, type TaskProviderLike, TaskSocketEvents, TaskStatus, type TelemetryClient, type TelemetryEvent, TelemetryEventName, type TelemetryEventSubscription, type TelemetryProperties, type TelemetryPropertiesProvider, type TelemetrySetting, type TerminalActionId, type TerminalActionName, type TerminalActionPromptType, type TerminalOutputPreviewSize, type TodoItem, type TodoStatus, type TokenUsage, type ToolGroup, type ToolName, type ToolProgressStatus, type ToolUsage, type TypedCustomToolDefinition, type TypicalProvider, type UpdateTodoListPayload, type UsageStats, type UserFeatures, type UserSettingsConfig, type UserSettingsData, VERCEL_AI_GATEWAY_DEFAULT_TEMPERATURE, VERCEL_AI_GATEWAY_PROMPT_CACHING_MODELS, VERCEL_AI_GATEWAY_VISION_AND_TOOLS_MODELS, VERCEL_AI_GATEWAY_VISION_ONLY_MODELS, VERTEX_1M_CONTEXT_MODEL_IDS, VERTEX_REGIONS, type Values, type VerbosityLevel, type VertexModelId, type VscodeLlmModelId, WIKI_OUTPUT_FILE_PATHS, type WebViewMessagePayload, type WebviewMessage, type WikiPromptConstants, type WorkspaceTaskVisibility, type Worktree, type WorktreeDefaultsResponse, type WorktreeIncludeStatus, type WorktreeListResponse, type WorktreeResult, type XAIModelId, ZAI_DEFAULT_TEMPERATURE, type ZaiApiLine, ackSchema, anthropicDefaultModelId, anthropicModels, appPropertiesSchema, autoCleanupSettingsSchema, azureOpenAiDefaultApiVersion, basetenDefaultModelId, basetenModels, bedrockDefaultModelId, bedrockDefaultPromptRouterModelId, bedrockModels, checkoutDiffPayloadSchema, checkoutRestorePayloadSchema, claudeCodeDefaultModelId, claudeCodeModels, claudeCodeReasoningConfig, clineAskSchema, clineAsks, clineMessageSchema, clineSaySchema, clineSays, cloudAppPropertiesSchema, codeActionIds, codebaseIndexConfigSchema, codebaseIndexModelsSchema, codebaseIndexProviderSchema, commandExecutionStatusSchema, commandIds, contextCondenseSchema, contextTruncationSchema, costrictCommandIds, costrictDefaultModelId, costrictModelsConfig, countEnabledMcpTools, customModePromptsSchema, customModesSettingsSchema, customProviders, customSupportPromptsSchema, deepSeekDefaultModelId, deepSeekModels, defineCustomTool, deprecatedToolGroups, discriminatedProviderSettingsWithIdSchema, dynamicAppPropertiesSchema, dynamicProviders, experimentIds, experimentIdsSchema, experimentSettingsSchema, experimentsSchema, extensionInstanceSchema, extractApiProviderErrorProperties, extractConsecutiveMistakeErrorProperties, extractMessageFromJsonPayload, fauxProviders, fireworksDefaultModelId, fireworksModels, followUpDataSchema, geminiCliDefaultModelId, geminiCliModels, geminiDefaultModelId, geminiModels, getApiProtocol, getClaudeCodeModels, getErrorMessage, getErrorStatusCode, getGlobalCommandsDir, getHomeDir, getImageGenerationProvider, getModelId, getProviderDefaultModelId, getSubtaskDir, gitPropertiesSchema, globalSettingsSchema, groupEntryArraySchema, groupEntrySchema, groupOptionsSchema, hasI18nCommandContent, hasI18nSubtaskTemplates, historyItemSchema, idleAsks, installMarketplaceItemOptionsSchema, installMarketplaceItemWithParametersPayloadSchema, interactiveAsks, internalProviders, internationalZAiDefaultModelId, internationalZAiModels, ipcMessageSchema, isApiProviderError, isConsecutiveMistakeError, isContextManagementEvent, isCustomProvider, isDynamicProvider, isFauxProvider, isGlobalStateKey, isIdleAsk, isInteractiveAsk, isInternalProvider, isLanguage, isLegacyReadFileParams, isLocalProvider, isModelParameter, isNonBlockingAsk, isProviderName, isResumableAsk, isRetiredProvider, isSecretStateKey, isTypicalProvider, lMStudioDefaultModelId, lMStudioDefaultModelInfo, languages, languagesSchema, litellmDefaultModelId, litellmDefaultModelInfo, localProviders, mainlandZAiDefaultModelId, mainlandZAiModels, marketplaceItemSchema, marketplaceItemTypeSchema, mcpExecutionStatusSchema, mcpInstallationMethodSchema, mcpMarketplaceItemSchema, mcpParameterSchema, mimoDefaultModelId, mimoDefaultModelInfo, mimoModels, minimaxDefaultModelId, minimaxDefaultModelInfo, minimaxModels, mistralDefaultModelId, mistralModels, modeConfigSchema, modeMarketplaceItemSchema, modelIdKeys, modelIdKeysByProvider, modelInfoSchema, modelParameters, modelParametersSchema, type modelType, moonshotDefaultModelId, moonshotModels, multipleChoiceDataSchema, multipleChoiceOptionSchema, multipleChoiceQuestionSchema, nonBlockingAsks, normalizeClaudeCodeModelId, ollamaDefaultModelId, ollamaDefaultModelInfo, openAiCodexDefaultModelId, openAiCodexModels, openAiModelInfoSaneDefaults, openAiNativeDefaultModelId, openAiNativeModels, openRouterDefaultModelId, openRouterDefaultModelInfo, organizationAllowListSchema, organizationCloudSettingsSchema, organizationDefaultSettingsSchema, organizationFeaturesSchema, organizationSettingsSchema, promptComponentSchema, providerNames, providerNamesSchema, providerNamesWithRetiredSchema, providerSettingsEntrySchema, providerSettingsSchema, providerSettingsSchemaDiscriminated, providerSettingsWithIdSchema, queuedMessageSchema, qwenCodeDefaultModelId, qwenCodeModels, reasoningEffortExtendedSchema, reasoningEffortSettingSchema, reasoningEffortSettingValues, reasoningEffortWithMinimalSchema, reasoningEfforts, reasoningEffortsExtended, reasoningEffortsSchema, registerI18nCommandContent, registerI18nSubtaskTemplates, requestyDefaultModelId, requestyDefaultModelInfo, resolveI18nCommandContent, resolveI18nPrompt, resolveI18nSubtaskTemplates, resolveI18nWikiPromptConstants, resumableAsks, retiredProviderNames, retiredProviderNamesSchema, rooCliCancelCommandSchema, rooCliCommandBaseSchema, rooCliCommandNameSchema, rooCliCommandNames, rooCliControlEventSchema, rooCliControlSubtypeSchema, rooCliControlSubtypes, rooCliCostSchema, rooCliEventTypeSchema, rooCliEventTypes, rooCliFinalOutputSchema, rooCliInputCommandSchema, rooCliMessageCommandSchema, rooCliOutputFormatSchema, rooCliOutputFormats, rooCliPingCommandSchema, rooCliQueueItemSchema, rooCliShutdownCommandSchema, rooCliStartCommandSchema, rooCliStreamEventSchema, rooCliToolResultSchema, rooCliToolUseSchema, rooCodeEventsSchema, rooCodeSettingsSchema, rooCodeTelemetryEventSchema, rooDefaultModelId, rooModels, sambaNovaDefaultModelId, sambaNovaModels, serviceTierSchema, serviceTiers, shareResponseSchema, shouldReportApiErrorToTelemetry, smartMistakeDetectionConfigSchema, staticAppPropertiesSchema, suggestionItemSchema, summarizeRecord, taskBridgeCommandSchema, taskBridgeEventSchema, taskCommandSchema, taskEventSchema, taskMetadataSchema, taskPropertiesSchema, telemetryPropertiesSchema, telemetrySettings, telemetrySettingsSchema, terminalActionIds, todoItemSchema, todoStatusSchema, tokenUsageSchema, toolGroups, toolGroupsSchema, toolNames, toolNamesSchema, toolProgressStatusSchema, toolUsageSchema, unboundDefaultModelId, unboundDefaultModelInfo, usageStatsSchema, userFeaturesSchema, userSettingsConfigSchema, userSettingsDataSchema, validateSkillName, verbosityLevels, verbosityLevelsSchema, vercelAiGatewayDefaultModelId, vercelAiGatewayDefaultModelInfo, vertexDefaultModelId, vertexModels, vscodeLlmDefaultModelId, vscodeLlmModels, xaiDefaultModelId, xaiModels, zaiApiLineConfigs, zaiApiLineSchema };
