import { type CompactionResult, type ExtensionAPI, type ExtensionContext, type SessionBeforeCompactEvent } from "@earendil-works/pi-coding-agent"; import type { AdapterState } from "../activation/state.ts"; export declare function handleCodexSessionBeforeCompact(event: SessionBeforeCompactEvent, ctx: ExtensionContext, state: AdapterState, pi: ExtensionAPI): Promise<{ cancel: boolean; compaction?: never; } | { cancel?: never; compaction: CompactionResult; } | undefined>;