import { type Database } from "./database.js"; /** Call only while holding the canonical session lock. A label is not an * execution obligation, but neither age nor an absent active pointer proves * the queue empty. Keep every accepted input and physical writer authoritative. */ export declare function sessionQueueIsEmptyInTransaction(db: Database, workspaceId: string, sessionId: string): Promise; export type EmptyQueuedSessionRepairTarget = { accountId: string; workspaceId: string; sessionId: string; expectedLastSequence: number; }; /** The existing operator manifest can correct an uninitialized shell without * manufacturing a failed turn, a parent result, or permission to replay it. */ export declare function repairEmptyQueuedSessionProjection(db: Database, input: EmptyQueuedSessionRepairTarget & { operationId: string; }): Promise;