export type ChatMessage = {
    role: "system" | "user" | "assistant" | "function";
    content: string | null | undefined;
    name?: string;
};
type OpenAIChatMessage = {
    role: "system" | "user" | "assistant";
    content: string;
} | {
    role: "function";
    name: string;
    content: string;
};
/**
 * Normalize chat messages (including function responses) so that the OpenAI
 * Chat Completions API receives the full conversation context.
 */
export declare function serializeChatMessagesForOpenAI(messages: ChatMessage[]): OpenAIChatMessage[];
export {};
//# sourceMappingURL=chat.d.ts.map