/** * @license * Copyright 2025 Vybestack LLC * SPDX-License-Identifier: Apache-2.0 */ import type { GitService } from '../services/gitService.js'; import type { GeminiClient } from '../core/client.js'; import { z } from 'zod'; import type { Content } from '@google/genai'; import type { ToolCallRequestInfo } from '../core/turn.js'; export interface ToolCallData { history?: HistoryType; clientHistory?: Content[]; commitHash?: string; toolCall: { name: string; args: ArgsType; }; messageId?: string; } export declare function getToolCallDataSchema(historyItemSchema?: z.ZodTypeAny): z.ZodObject<{ history: z.ZodOptional>; clientHistory: z.ZodOptional; parts: z.ZodArray, "many">; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ role: z.ZodOptional; parts: z.ZodArray, "many">; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ role: z.ZodOptional; parts: z.ZodArray, "many">; }, z.ZodTypeAny, "passthrough">>, "many">>; commitHash: z.ZodOptional; toolCall: z.ZodObject<{ name: z.ZodString; args: z.ZodRecord; }, "strip", z.ZodTypeAny, { name: string; args: Record; }, { name: string; args: Record; }>; messageId: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ history: z.ZodOptional>; clientHistory: z.ZodOptional; parts: z.ZodArray, "many">; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ role: z.ZodOptional; parts: z.ZodArray, "many">; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ role: z.ZodOptional; parts: z.ZodArray, "many">; }, z.ZodTypeAny, "passthrough">>, "many">>; commitHash: z.ZodOptional; toolCall: z.ZodObject<{ name: z.ZodString; args: z.ZodRecord; }, "strip", z.ZodTypeAny, { name: string; args: Record; }, { name: string; args: Record; }>; messageId: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ history: z.ZodOptional>; clientHistory: z.ZodOptional; parts: z.ZodArray, "many">; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ role: z.ZodOptional; parts: z.ZodArray, "many">; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ role: z.ZodOptional; parts: z.ZodArray, "many">; }, z.ZodTypeAny, "passthrough">>, "many">>; commitHash: z.ZodOptional; toolCall: z.ZodObject<{ name: z.ZodString; args: z.ZodRecord; }, "strip", z.ZodTypeAny, { name: string; args: Record; }, { name: string; args: Record; }>; messageId: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; export declare function generateCheckpointFileName(toolCall: ToolCallRequestInfo): string | null; export declare function formatCheckpointDisplayList(filenames: string[]): string; export declare function getTruncatedCheckpointNames(filenames: string[]): string[]; export declare function processRestorableToolCalls(toolCalls: ToolCallRequestInfo[], gitService: GitService, geminiClient: GeminiClient, history?: HistoryType): Promise<{ checkpointsToWrite: Map; toolCallToCheckpointMap: Map; errors: string[]; }>; export interface CheckpointInfo { messageId: string; checkpoint: string; } export declare function getCheckpointInfoList(checkpointFiles: Map): CheckpointInfo[];