import type { AgentContext } from '../../service.types.js';
import type { LifecycleHandler, LifecycleEventData, LLMResponsePayload } from '../types.js';
export interface CompactionHandlerConfig {
    minMessages: number;
    maxTokens: number;
    preserveReasoning: boolean;
    accumulateUsage: boolean;
}
export declare class CompactionLifecycleHandler implements LifecycleHandler<LLMResponsePayload> {
    readonly name = "CompactionLifecycleHandler";
    private config;
    constructor(config?: Partial<CompactionHandlerConfig>);
    handle(event: LifecycleEventData<LLMResponsePayload>, _context: AgentContext): Promise<void>;
    private shouldCompact;
}
