import type { LanguageModel, LanguageModelUsage } from "ai";
import { LLMObsTracer } from "../../llmobs/tracer.js";
import type { ContextOptionsV2 } from "./config.js";
import type { StoredMessage, CompactionResult, CompactionCallbacks } from "./types.js";
export interface CompactOptions {
    messages: StoredMessage[];
    usage: LanguageModelUsage;
    model: LanguageModel;
    rootDir: string;
    config?: Partial<ContextOptionsV2>;
    callbacks?: CompactionCallbacks;
    tracer?: LLMObsTracer;
}
export declare function needsCompaction(usage: LanguageModelUsage, options: ContextOptionsV2): boolean;
export declare function compact(options: CompactOptions): Promise<CompactionResult>;
//# sourceMappingURL=compactor.d.ts.map