export declare class SessionWorkBarrier {
    private activeWork;
    private activeWorkResolve;
    private activeWorkDepth;
    private readonly onActiveChange;
    /**
     * `onActiveChange` runs when the last holder releases the barrier: work it held (compaction admission, reload,
     * extension binding) is a lifecycle fact, and its end must be an edge. Its start is not signalled here: every
     * holder that makes the session busy raises its own start edge, and a start edge would recompute during restore.
     */
    constructor(onActiveChange?: () => void);
    get hasActiveWork(): boolean;
    begin(): () => void;
    waitForSettled(getEventQueue: () => Promise<void>): Promise<void>;
}
//# sourceMappingURL=session-work-barrier.d.ts.map