import type { CompactionAudit, CompactionHandover } from '../../session/compaction-types.js'; import type { TranscriptSourceEntry } from '../../storage/sqlite/transcript-repository.js'; export interface PromoteCompactionLedgerInput { sessionKey: string; sessionId: string; sourceAgentId: string; workspaceId: string; projectId?: string; handover: CompactionHandover; audit: CompactionAudit; sourceEntries: readonly TranscriptSourceEntry[]; writePolicy: 'deny' | 'confirm' | 'allow'; } export interface PromoteCompactionLedgerResult { episodicRecordIds: string[]; durableRecordIds: string[]; rejectedRecordIds: string[]; } export declare function promoteCompactionLedger(input: PromoteCompactionLedgerInput): PromoteCompactionLedgerResult;