/**
 * @license
 * Copyright 2026 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { type ConversationRecord } from '../services/chatRecordingService.js';
export { partListUnionToString } from '../core/geminiRequest.js';
import { type HistoryTurn } from '../core/agentChatHistory.js';
/**
 * Ensures that all function calls and responses in a chat history have stable IDs.
 * If IDs are missing (e.g. legacy data or manually constructed tests), it synthesizes
 * them and MUTATES the underlying Part objects.
 *
 * It uses a deterministic pairing heuristic for adjacent turns to link calls and responses.
 */
export declare function ensureStableToolIds(history: HistoryTurn[]): void;
export declare function isIgnoredUserContent(trimmedContent: string): boolean;
/**
 * Converts session/conversation data into Gemini client history formats.
 */
export declare function convertSessionToClientHistory(messages: ConversationRecord['messages']): HistoryTurn[];
