import type { AIMessage, AIMessageContent } from '../types'; /** * Normalize an entire `messages` array for the requested provider. * Messages whose `content` is a plain string pass through unchanged. * Messages with a content array get each block translated. */ export declare function normalizeMessagesForProvider(messages: AIMessage[], provider: 'openai' | 'anthropic'): AIMessage[]; /** * Convenience: convert a single command + optional image inputs into * an `AIMessage` content array suitable for `chat()` calls. Used by * the higher-level `text()` / `chat()` helpers when a user passes * `{ command, images }` together. * * @example * ```ts * const content = buildMessageWithImages('What is in this image?', [ * { url: 'https://example.com/cat.jpg' }, * ]) * await chat([{ role: 'user', content }]) * ``` */ export declare function buildMessageWithImages(command: string, images: Array<{ url?: string, dataBase64?: string, mediaType?: string, detail?: 'auto' | 'low' | 'high' }>): AIMessageContent[];