import type Database from "better-sqlite3"; import type { SessionDelivery } from "../shared/types.js"; export declare function pendingCompletionBatch(database: Database.Database, delivery: SessionDelivery, targetSessionId: string, sessionKey: string): { queueItemId: string; prompt: string; } | undefined; /** * Upgrade/restart repair for the pre-batching durable shape. Only contiguous * pending completion rows are compacted, so an operator, workflow, approval or * other callback row remains an ordering fence. Superseded queue rows are kept * as cancelled evidence; every receipt and transcript message stays intact. */ export declare function coalescePendingParentCompletionQueueItems(): number; //# sourceMappingURL=completion-batching.d.ts.map