import type { AIServerMessage } from '../../../types/ai';
export declare const serverMessageToAction: (msg: AIServerMessage) => {
    content: string;
    conversationId: string;
    messageId: string;
    type: "chunk";
    input?: undefined;
    name?: undefined;
    result?: undefined;
    status?: undefined;
    data?: undefined;
    format?: undefined;
    imageId?: undefined;
    isPartial?: undefined;
    revisedPrompt?: undefined;
    durationMs?: undefined;
    model?: undefined;
    sources?: undefined;
    usage?: undefined;
    message?: undefined;
} | {
    content: string;
    conversationId: string;
    messageId: string;
    type: "thinking";
    input?: undefined;
    name?: undefined;
    result?: undefined;
    status?: undefined;
    data?: undefined;
    format?: undefined;
    imageId?: undefined;
    isPartial?: undefined;
    revisedPrompt?: undefined;
    durationMs?: undefined;
    model?: undefined;
    sources?: undefined;
    usage?: undefined;
    message?: undefined;
} | {
    conversationId: string;
    input: unknown;
    messageId: string;
    name: string;
    result: string | undefined;
    status: "complete" | "running";
    type: "tool_status";
    content?: undefined;
    data?: undefined;
    format?: undefined;
    imageId?: undefined;
    isPartial?: undefined;
    revisedPrompt?: undefined;
    durationMs?: undefined;
    model?: undefined;
    sources?: undefined;
    usage?: undefined;
    message?: undefined;
} | {
    conversationId: string;
    data: string;
    format: string;
    imageId: string | undefined;
    isPartial: boolean;
    messageId: string;
    revisedPrompt: string | undefined;
    type: "image";
    content?: undefined;
    input?: undefined;
    name?: undefined;
    result?: undefined;
    status?: undefined;
    durationMs?: undefined;
    model?: undefined;
    sources?: undefined;
    usage?: undefined;
    message?: undefined;
} | {
    conversationId: string;
    durationMs: number | undefined;
    messageId: string;
    model: string | undefined;
    sources: import("..").RAGSource[] | undefined;
    type: "complete";
    usage: import("../..").AIUsage | undefined;
    content?: undefined;
    input?: undefined;
    name?: undefined;
    result?: undefined;
    status?: undefined;
    data?: undefined;
    format?: undefined;
    imageId?: undefined;
    isPartial?: undefined;
    revisedPrompt?: undefined;
    message?: undefined;
} | {
    conversationId: string;
    messageId: string;
    sources: import("..").RAGSource[];
    type: "rag_retrieved";
    content?: undefined;
    input?: undefined;
    name?: undefined;
    result?: undefined;
    status?: undefined;
    data?: undefined;
    format?: undefined;
    imageId?: undefined;
    isPartial?: undefined;
    revisedPrompt?: undefined;
    durationMs?: undefined;
    model?: undefined;
    usage?: undefined;
    message?: undefined;
} | {
    message: string;
    type: "error";
    content?: undefined;
    conversationId?: undefined;
    messageId?: undefined;
    input?: undefined;
    name?: undefined;
    result?: undefined;
    status?: undefined;
    data?: undefined;
    format?: undefined;
    imageId?: undefined;
    isPartial?: undefined;
    revisedPrompt?: undefined;
    durationMs?: undefined;
    model?: undefined;
    sources?: undefined;
    usage?: undefined;
} | null;
