import type { ChatMessage } from "./types.js";
export declare const LIVE_TOOL_RESULT_MAX_CHARS = 16000;
export declare const LIVE_TOOL_RESULT_AGGREGATE_MAX_CHARS = 64000;
export type LiveToolResultGuardStats = {
    cappedCount: number;
    inputChars: number;
    outputChars: number;
};
export declare function truncateLiveToolResultText(text: string, maxChars: number): string;
export declare function guardLiveToolResults(messages: ChatMessage[], opts?: {
    liveToolResultMaxChars?: number;
    liveToolResultAggregateMaxChars?: number;
}): {
    messages: ChatMessage[];
    stats: LiveToolResultGuardStats;
};
