import { type Conversation } from "./protocol.js"; export interface DeferredForegroundUserCloseCleanupResult { transfer_id?: string; transfer_finalized: boolean; detached_session_ids: string[]; warnings: string[]; } /** * Release only AKK-owned metadata for one explicitly closed Turn. The linked * transfer is finalized before either Session is touched, so a Session cleanup * failure cannot keep the old transfer live. Missing, drifted, or concurrently * changed records are warnings: explicit Close owns the user-facing outcome. */ export declare function cleanupDeferredForegroundUserClose(input: { storeDir: string; conversation: Conversation; at: string; }): DeferredForegroundUserCloseCleanupResult;