import type { Part } from "./message-parts.js"; export interface HistoryMessage { info: { id: string; sessionID: string; role: "user" | "assistant"; time?: { created?: number; completed?: number; }; modelID?: string; providerID?: string; variant?: string; agent?: string; mode?: string; }; parts: Part[]; } /** One message from OpenCode's message list, projected for the chat presentation layer. * Only user and assistant messages are chat content; other kinds (agent, model or location * switches, system, skill, compaction, idle) are the caller's to skip before parsing. */ export declare function convertMessage(raw: unknown, sessionID: string): HistoryMessage; //# sourceMappingURL=message-history.d.ts.map