import type { Api, Model } from "@mariozechner/pi-ai"; import type { AgentCompactionIdentifierPolicy } from "../../config/types.agent-defaults.js"; export type CompactionSafeguardRuntimeValue = { maxHistoryShare?: number; contextWindowTokens?: number; identifierPolicy?: AgentCompactionIdentifierPolicy; identifierInstructions?: string; /** * Model to use for compaction summarization. * Passed through runtime because `ctx.model` is undefined in the compact.ts workflow * (extensionRunner.initialize() is never called in that path). */ model?: Model; recentTurnsPreserve?: number; qualityGuardEnabled?: boolean; qualityGuardMaxRetries?: number; }; export declare const setCompactionSafeguardRuntime: (sessionManager: unknown, value: CompactionSafeguardRuntimeValue | null) => void; export declare const getCompactionSafeguardRuntime: (sessionManager: unknown) => CompactionSafeguardRuntimeValue | null;