import type { ExtensionAPI, ExtensionContext } from "../../sdk/coding-agent/index.js"; import { type CompactionPolicy } from "../../sdk/coding-agent/core/compaction/index.js"; import type { Runtime } from "../runtime.js"; /** * Resolve the active model's context window. Prefers the live usage report, * falls back to the model definition; returns undefined when unknown. */ export declare function getContextWindow(ctx: Pick): number | null | undefined; /** * Effective post-run compaction threshold: the configured/policy floor, capped * at AUTO_COMPACTION_WINDOW_RATIO × the model context window when the window * is known. An unknown window (0/undefined, e.g. synthetic/proxy models) keeps * the uncapped formula. */ export declare function getPostRunCompactionThresholdTokens(runtime: Runtime, policy: CompactionPolicy, contextWindow?: number | null): number; export declare function registerCompactionTrigger(ext: ExtensionAPI, runtime: Runtime): void; //# sourceMappingURL=compaction-trigger.d.ts.map