import { type SessionCompactionCheckpoint, type SessionCompactionCheckpointReason, type SessionCompactionTranscriptReference, type SessionEntry } from "../config/sessions.js";
export declare const MAX_SESSION_COMPACTION_CHECKPOINTS = 25;
export declare const MAX_SESSION_COMPACTION_CHECKPOINT_SNAPSHOT_BYTES: number;
export declare function listSessionCompactionCheckpoints(entry: Pick<SessionEntry, "compactionCheckpoints"> | undefined): SessionCompactionCheckpoint[];
export declare function getSessionCompactionCheckpoint(entry: Pick<SessionEntry, "compactionCheckpoints"> | undefined, checkpointId: string): SessionCompactionCheckpoint | null;
export declare function cleanupSessionCompactionSnapshot(reference: SessionCompactionTranscriptReference): void;
export declare function captureSessionCompactionSnapshot(params: {
    sessionId: string;
    sessionFile: string | undefined;
    maxBytes?: number;
}): SessionCompactionTranscriptReference | null;
export declare function persistSessionCompactionCheckpoint(params: {
    entry: SessionEntry;
    sessionKey: string;
    reason: SessionCompactionCheckpointReason;
    preCompaction: SessionCompactionTranscriptReference;
    postCompaction: SessionCompactionTranscriptReference;
    checkpointId?: string;
    createdAt?: number;
    tokensBefore?: number;
    tokensAfter?: number;
    summary?: string;
    firstKeptEntryId?: string;
}): SessionCompactionCheckpoint;
