import type { ToolCall } from '../../../types/ToolCall';
import type { ChatMessage } from '../types/ChatMessage';
/**
 * Resolves the latest known snapshot of one tool call from rendered chat messages.
 *
 * @param messages - Chat messages currently rendered in the UI.
 * @param toolCallIdentity - Stable tool-call identity.
 * @param fallbackToolCall - Optional fallback snapshot used before live state is found.
 * @returns Latest matching tool call or the fallback snapshot.
 *
 * @private internal helper for chat tool-call modal state
 */
export declare function resolveToolCallFromChatMessages(messages: ReadonlyArray<ChatMessage>, toolCallIdentity: string | null, fallbackToolCall: ToolCall | null): ToolCall | null;
