import type { ExtensionUIContext } from "../../core/extensions/types.ts";
import type { SecurityNoticeSnapshot, SecurityNoticeState } from "../../core/security-notices.ts";
import { type ConnectionLocality } from "./raiser-notices.ts";
import type { SessionEventFanout } from "./session-event-fanout.ts";
/** Actual socket presentations; a shared session has one handler, not one per window. */
export declare class RpcSecurityPresentations {
    #private;
    private readonly fanout;
    private readonly inConnection;
    private readonly flush;
    private readonly locality;
    private readonly notices;
    constructor(fanout: SessionEventFanout, inConnection: <T>(id: string, task: () => T) => T, flush: () => void, locality: ConnectionLocality);
    bind(sessionId: string, durableId: string, notices: SecurityNoticeSnapshot, select: ExtensionUIContext["select"]): () => void;
    acceptSnapshot(sessionId: string, snapshot: SecurityNoticeState): void;
    attach(id: string, sessionId: string): void;
    detach(id: string, sessionId: string): void;
    dropConnection(id: string): void;
    capabilitiesChanged(id: string): void;
    routeWorkerGrant(sessionId: string, requestId: string, preferred: string | undefined, fallbackCapabilities: readonly string[], cancel: () => void, title?: string): {
        readonly accepted: boolean;
        readonly connection?: string;
    };
    /** Attached connections other than the presenter see that a grant select is pending; only the presenter answers. */
    noticeGrant(sessionId: string, requestId: string, title: string, presenter: string | undefined): void;
    acceptWorkerResponse(sessionId: string, requestId: string, connection: string | undefined): boolean | undefined;
    settleGrant(sessionId: string, requestId: string): void;
    dropSession(sessionId: string): void;
}
//# sourceMappingURL=security-presentations.d.ts.map