import type { ChatMessage } from "../types.js"; export declare const CATASTROPHIC_SUMMARY_MIN_CHARS = 120; export declare const CATASTROPHIC_BEFORE_TOKENS_MIN = 8000; export declare const CATASTROPHIC_AFTER_RATIO = 0.05; export interface AcceptPlanImplementCompactionInput { readonly summarized: boolean; readonly summaryBody: string; readonly beforeTokens: number; readonly afterTokens: number; readonly afterMessages: readonly ChatMessage[]; } export type AcceptPlanImplementCompactionResult = { readonly accept: true; } | { readonly accept: false; readonly reason: string; }; export declare function acceptPlanImplementCompaction(input: AcceptPlanImplementCompactionInput): AcceptPlanImplementCompactionResult; export declare function extractCompactionSummaryBody(messages: readonly ChatMessage[]): string; export declare const PLAN_IMPLEMENT_COMPACT_MIN_TOKENS = 6000;