import type { PrecompactionDrainReport, PrecompactionDrainOptions } from '../../types/claude-code-runtime.js';
/**
 * Drain learnings buffer to MEMORY.md fragments, autopush unpushed commits,
 * and write session-context.md — all before context compaction completes.
 *
 * Every operation is best-effort: a failure in one step does not prevent
 * the others from running. The drain report captures all outcomes.
 */
export declare function runPrecompactionDrain(projectPath: string, options?: PrecompactionDrainOptions): Promise<PrecompactionDrainReport>;
//# sourceMappingURL=precompaction-drain.d.ts.map