import type { Database } from '../data/database.js'; export declare function onRoomDeleted(listener: (id: string) => void): () => void; export interface RoomDeletionHooks { /** Both hooks run in the same SQL transaction that closes the room. No await/filesystem. */ cancelPending(sourceRef: string): void; purge(scopeId: string, db: Database): void; /** Interrupt only this source's in-flight turn; retain members and other-source queues. */ quiesce(sourceRef: string): Promise; } export declare class RoomDeletionService { private db; private root; private hooks; constructor(db: Database, root: string, hooks: RoomDeletionHooks); delete(roomId: string): Promise; recoverPending(): Promise; private perform; } //# sourceMappingURL=room-deletion.d.ts.map