import type { CacheStrategy, PromptEntry } from "./types.js"; /** Create a deterministic compaction summary that is byte-stable after creation. */ export declare function createSummaryEntry(cutTurn: number, summaryTokens: number): PromptEntry; /** Baseline: never compact. Prompt grows monotonically (best cache, until overflow). */ export declare function keepAll(): CacheStrategy; /** Continuous sliding window: always keep only the last `windowTurns` entries. */ export declare function truncateSliding(windowTurns: number): CacheStrategy; /** Batched truncation: cut to the last `keepLastTurns` entries once per `cutEveryTurns`. */ export declare function truncateBatched(cutEveryTurns: number, keepLastTurns: number): CacheStrategy; /** Batched summarization: replace the dropped span with a fixed-size summary. */ export declare function summarizeBatched(cutEveryTurns: number, keepRecentTurns: number, summaryTokens: number): CacheStrategy; /** * Mirror the fork's autoOlderHistory policy: when estimated context tokens exceed * `contextWindow * ratio`, replace the older span with a summary and keep a raw * recent tail of ~`keepRecentTokens` tokens. */ export declare function summarizeOnTokenRatio(contextWindow: number, ratio: number, keepRecentTokens: number, summaryTokens: number): CacheStrategy; //# sourceMappingURL=strategies.d.ts.map