import type { UIMessage } from 'ai';
/**
 * Fixes tool calls with error states by copying rawInput to input field.
 * This is required because error tool calls from the frontend use rawInput
 * but the AI SDK's convertToModelMessages expects input to generate arguments
 * for the OpenAI API.
 * @param messages - Array of message objects from the chat request
 * @returns Messages with error tool calls fixed, typed as UIMessage[]
 */
export declare const fixErrorToolCalls: (messages: {
    [x: string]: unknown;
}[]) => UIMessage[];
