import type { Context } from '@deepseek-ai/cordis'; import { type Session } from '@deepseek-ai/dsh-session'; export interface ApprovalReviewerSessionEventRegistration { /** Whether this registration proved the reader currently live in its Context. */ isReady(): boolean; /** Join late provision/HMR and reject unless the resulting live reader is proven. */ assertReady(): Promise; } /** Fail synchronously before a managed Session appends this required custom event. */ export declare function assertApprovalReviewerSessionEventReady(session: Session): void; /** Async seam for Delivery and other durable writers that can wait for late provision/HMR. */ export declare function waitForApprovalReviewerSessionEventReady(session: Session): Promise; /** * Register the required reviewer event for the process lifetime. * * Session persistence can drain after downstream plugin effects dispose, and * hot-reloaded module copies cannot safely coordinate ownership of this global * catalog. Removing the type would therefore make a valid durable tail (or an * already stored session) unreadable. The catalog is metadata only, so the * safe compatibility behavior is a monotonic add until process exit. */ export declare function registerApprovalReviewerSessionEvent(ctx: Context): ApprovalReviewerSessionEventRegistration; //# sourceMappingURL=session-event-registration.d.ts.map