/**
 * Message processing utilities for AI SDK format conversion
 */
interface RawMessage {
    id?: string;
    message_id?: string;
    body_json?: string | object;
    body_text?: string;
    body?: string;
    role?: 'user' | 'assistant';
    sender_name?: string;
    tool_calls?: ToolCall[];
    created_on: string | Date;
}
interface ToolCall {
    id: string;
    type?: string;
    function?: {
        name?: string;
        arguments?: string | object;
    };
}
interface MessagePart {
    type: string;
    text?: string;
    toolCallId?: string;
    toolName?: string;
    args?: object;
}
export interface ProcessedMessage {
    id: string;
    role: 'user' | 'assistant';
    content: string;
    parts: MessagePart[];
}
/**
 * Processes raw message data from the API into AI SDK message format
 * Handles various message formats including tool calls and parts structure
 */
export declare function processMessagesData(rawData: RawMessage[]): ProcessedMessage[];
export {};
