import { AgentChatMessage } from "../services/agentService";
import { EditOperation } from "../../types";
import { Message } from "./types";
export interface MessageGroup {
    type: "user" | "assistant-group" | "heartbeat";
    messages: AgentChatMessage[];
}
export declare const groupConsecutiveMessages: (agentMessages: AgentChatMessage[]) => MessageGroup[];
export declare const mergeMessagesById: (dbMessages: AgentChatMessage[], localMessages: AgentChatMessage[]) => AgentChatMessage[];
export declare const calculateTotalTokens: (messages: AgentChatMessage[]) => {
    input: number;
    output: number;
    cached: number;
    cacheWrite: number;
    inputCost: number;
    outputCost: number;
    cachedCost: number;
    cacheWriteCost: number;
    imageCost: number;
    totalCost: number;
};
export declare const getOperationsForMessageGroup: (messages: Message[], agentOperations: EditOperation[]) => EditOperation[];
