import type { ContextPolicy } from "@topaca/nova-ai";
export type LocalCompactionTriggerReason = "none" | "hard_threshold" | "soft_threshold" | "maintenance" | "repair_failures";
export type LocalCompactionTrigger = {
    shouldCompact: boolean;
    reason: LocalCompactionTriggerReason;
    usageRatio: number;
};
export type LocalCompactionTriggerInput = {
    contextTokens: number;
    contextWindow: number;
    turnIndex: number;
    lastCompactionTurn: number;
    repairFailures: number;
    policy: ContextPolicy;
};
export declare function evaluateLocalCompactionTrigger(input: LocalCompactionTriggerInput): LocalCompactionTrigger;
//# sourceMappingURL=context-policy.d.ts.map