interface CompactedHistory {
    /** Concise narrative summary of the older portion of the conversation. */
    summary: string;
    /** The most recent N messages, preserved verbatim. */
    recent: Array<{
        role: 'user' | 'assistant';
        content: string;
    }>;
    /** Number of messages folded into the summary. */
    compactedCount: number;
}
export declare function shouldCompact(messageCount: number): boolean;
/**
 * Summarize the older portion of the conversation. The result + the
 * most-recent KEEP_RECENT messages become the brain's history window
 * for this turn.
 */
export declare function compactConversationHistory(tenantId: string, customerId: string, history: Array<{
    role: 'user' | 'assistant';
    content: string;
}>): Promise<CompactedHistory>;
export {};
//# sourceMappingURL=compaction.d.ts.map