import type { AutoCompactResult, CompactTrigger, ConvergencePlan, InFlightBatchProbe } from '../context/auto-compact-types.js'; import type { AutoCompactInput } from './auto-compact-run-types.js'; export type { AutoCompactInput, AutoCompactTestHooks } from './auto-compact-run-types.js'; export { evaluateCompactTrigger, evaluateAutoCompactDecision, buildConvergencePlan } from './auto-compact-decision.js'; export type { CompactHistoryEvent } from './auto-compact-history.js'; export { appendCompactHistoryEvent } from './auto-compact-history.js'; export type { CompactTrigger, ConvergencePlan, InFlightBatchProbe, AutoCompactResult }; /** * Execute the auto-compact flow. The caller handles the return — the post-compact * detector picks the checkpoint up on the next turn. For the red line the caller keeps * working: it re-probes and, if the ratio is still rising with no compact from the * harness, reports that instead of stalling. */ export declare function runAutoCompact(input: AutoCompactInput): Promise;