import type { AgentMessage } from "@mariozechner/pi-agent-core";
import type { ImageContent } from "@mariozechner/pi-ai";
/**
 * Inject preloaded images into their original positions in the conversation history.
 * Returns `true` when any message was mutated.
 */
export declare function injectHistoryImagesIntoMessages(messages: AgentMessage[], historyImagesByIndex: Map<number, ImageContent[]>): boolean;
export declare function summarizeMessagePayload(msg: AgentMessage): {
    textChars: number;
    imageBlocks: number;
};
export declare function summarizeSessionContext(messages: AgentMessage[]): {
    roleCounts: string;
    totalTextChars: number;
    totalImageBlocks: number;
    maxMessageTextChars: number;
};
