import type { ContextItem } from "./contextItem.js";
export type CompactionPressure = "ok" | "compact" | "critical";
export type CompactionPlanOptions = {
    targetTokens: number;
    currentTask?: string;
    minItemsToCompact?: number;
    now?: string;
};
export type PlannedCompactionItem = {
    item: ContextItem;
    reason: string;
};
export type CompactionPlan = {
    pressure: CompactionPressure;
    usedTokens: number;
    targetTokens: number;
    keep: PlannedCompactionItem[];
    summarize: PlannedCompactionItem[];
    drop: PlannedCompactionItem[];
    blockedSecrets: PlannedCompactionItem[];
};
export declare function planCompaction(items: ContextItem[], options: CompactionPlanOptions): CompactionPlan;
export declare function isSecretLikeText(value: string): boolean;
