/**
 * Message Builder Utility
 * Centralized logic for building message arrays from TextGenerationOptions
 * Enhanced with multimodal support for images
 */
import type { ModelMessage } from "ai";
import type { MultimodalChatMessage } from "../types/conversation.js";
import type { GenerateOptions } from "../types/generateTypes.js";
import type { TextGenerationOptions } from "../types/index.js";
import type { StreamOptions } from "../types/streamTypes.js";
/**
 * Type-safe conversion from MultimodalChatMessage[] to ModelMessage[]
 * Filters out invalid content and ensures strict ModelMessage contract compliance
 */
export declare function convertToModelMessages(messages: MultimodalChatMessage[]): ModelMessage[];
/**
 * Build a properly formatted message array for AI providers
 * Combines system prompt, conversation history, and current user prompt
 * Supports both TextGenerationOptions and StreamOptions
 * Enhanced with CSV file processing support
 */
export declare function buildMessagesArray(options: TextGenerationOptions | StreamOptions): Promise<ModelMessage[]>;
/**
 * Build multimodal message array with image support
 * Detects when images are present and routes through provider adapter
 */
export declare function buildMultimodalMessagesArray(options: GenerateOptions, provider: string, model: string): Promise<MultimodalChatMessage[]>;
