/**
 * Compaction Marker Manager
 *
 * Coordinates compaction marker injection/update/removal with historian
 * publication. Called after compartments are published, behind the
 * `compaction_markers` config flag (default: true).
 *
 * The marker summary text is a static placeholder — the real <session-history>
 * is injected by the transform pipeline via inject-compartments.ts. The marker
 * exists solely to make OpenCode's filterCompacted stop at the boundary so the
 * transform receives only the live tail.
 */
import type { Database } from "bun:sqlite";
/**
 * After historian publishes new compartments, inject or move the compaction marker.
 * Only moves the boundary forward; summary text is a static placeholder.
 */
export declare function updateCompactionMarkerAfterPublication(db: Database, sessionId: string, lastCompartmentEnd: number, directory?: string): void;
/**
 * Remove the compaction marker for a session (e.g. on session.deleted).
 */
export declare function removeCompactionMarkerForSession(db: Database, sessionId: string): void;
/**
 * Close the writable OpenCode DB connection used for marker injection.
 */
export declare function closeCompactionMarkerConnection(): void;
//# sourceMappingURL=compaction-marker-manager.d.ts.map