import { LLMRoles, type LLMHistoryEntry, type LLMMessageTextContent } from '../LLMService.typedefs'; import { type LLMHistoryMessage, type LLMPlainMessage } from '../client/llmClient.typedefs'; export interface LLMPlainTextContentMessage { role: LLMRoles; content: LLMMessageTextContent[]; } /** * Maps the client's persisted plain-message history into the gateway's * content-message shape. The single mapper both `generate` and `runAgent` use, * so a persisted session replays identically through either surface. */ export declare function plainMessagesToContentMessages(history: LLMPlainMessage[] | undefined): LLMPlainTextContentMessage[]; /** * Maps a restored agent conversation into the gateway's history entries: a * plain message becomes a content message, while a tool call, a tool result * and a context entry pass through as themselves for the provider to render * natively. The pairing repair runs here, so every provider receives a history * whose calls and results already match. */ export declare function historyMessagesToEntries(history: LLMHistoryMessage[] | undefined): LLMHistoryEntry[];