/**
 * Holds turns that extensions request while `session_start` handlers are still being
 * dispatched, and starts them once every handler has returned. Handlers run one after
 * another in registration order, so a turn started from an early handler used to reach
 * the provider before a later handler had restored per-session state it depends on
 * (senpi#1972: the Claude continuity binding, forcing a full re-send). Holding the turn
 * makes that order irrelevant. Extension turn requests are fire-and-forget, so no
 * handler can be waiting on a held turn.
 */
export declare class SessionStartTurnGate {
    private held;
    private readonly onStartError;
    constructor(onStartError: (error: unknown) => void);
    /** True while `session_start` handlers run: turns they trigger start once dispatch ends. */
    get holding(): boolean;
    admit(start: () => void): void;
    dispatch<T>(run: () => Promise<T>): Promise<T>;
}
//# sourceMappingURL=session-start-turn-gate.d.ts.map