import type { AgentConfig, ResumeHistoryTurn } from '../../types/config-types.js'; import type { ProviderUserTurn } from '../../provider.js'; export interface OpenAITextPart { type: 'text'; text: string; } export interface OpenAIImagePart { type: 'image_url'; image_url: { url: string; }; } export type OpenAIContentPart = OpenAITextPart | OpenAIImagePart; export interface OpenAIMessage { role: 'system' | 'user' | 'assistant' | 'tool'; content: string | OpenAIContentPart[]; tool_call_id?: string; reasoning_content?: string; } export declare function imageOmittedNotice(model: string | undefined, count: number): string; export declare function flattenUserContent(content: ProviderUserTurn['content'], model?: string): string; export declare function buildUserContent(content: ProviderUserTurn['content'], opts: { vision: boolean; model: string; }): string | OpenAIContentPart[]; export declare function resolveSystemPrompt(config: AgentConfig): string | undefined; export declare function buildMessages(args: { config: AgentConfig; resumeHistory?: ResumeHistoryTurn[]; priorTurns?: OpenAIMessage[]; currentUserText?: string; vision?: boolean; }): OpenAIMessage[];