import type { Database } from "./database.js"; /** Caller holds the session write lock. An unaccepted call has no lifecycle event. */ export declare function endSessionRealtimePreparationsInTransaction(db: Database, input: { workspaceId: string; sessionId: string; callId?: string; exceptModeId?: string; exceptDevice?: string; expiredBefore?: Date; reason: "browser_unload" | "lease_expired" | "authority_revoked"; now: Date; }): Promise;