import type { OhMyOpenCodeConfig } from "../config"; import { type ContextLimitModelCacheState } from "../shared/context-limit-resolver"; import type { CachedCompactionState, PreemptiveCompactionContext } from "./preemptive-compaction-types"; export declare function runPreemptiveCompactionIfNeeded(args: { ctx: PreemptiveCompactionContext; pluginConfig: OhMyOpenCodeConfig; modelCacheState?: ContextLimitModelCacheState; sessionID: string; tokenCache: Map; compactionInProgress: Set; compactedSessions: Set; lastCompactionTime: Map; }): Promise;