import type { AssistantMessage, Message } from "@earendil-works/pi-ai";
import { type CacheState } from "../cache.js";
export type AgentCacheInput = {
    pageUrl: string;
    cacheContent: string;
    model: string | null;
    length: unknown;
    language: unknown;
    automationEnabled: boolean;
};
export declare function buildAgentCacheKey({ pageUrl, cacheContent, model, length, language, automationEnabled, }: AgentCacheInput): string;
export declare function readAgentHistory({ cacheState, cacheInput, }: {
    cacheState: CacheState;
    cacheInput: AgentCacheInput;
}): Message[] | null;
export declare function writeAgentHistory({ cacheState, cacheInput, messages, assistant, }: {
    cacheState: CacheState;
    cacheInput: AgentCacheInput;
    messages: unknown;
    assistant: AssistantMessage;
}): void;
