import type { OpenClawConfig } from "../../config/types.openclaw.js"; import { TranscriptFileState } from "./transcript-file-state.js"; type ReadonlySessionManagerForRotation = Pick; export type CompactionTranscriptRotation = { rotated: boolean; reason?: string; sessionId?: string; sessionFile?: string; compactionEntryId?: string; leafId?: string; entriesWritten?: number; }; export declare function shouldRotateCompactionTranscript(config?: OpenClawConfig): boolean; export declare function rotateTranscriptAfterCompaction(params: { sessionManager: ReadonlySessionManagerForRotation; sessionFile: string; now?: () => Date; }): Promise; export declare function rotateTranscriptFileAfterCompaction(params: { sessionFile: string; now?: () => Date; }): Promise; export {};