import { type McpFormBinding } from "../../core/mcp-form-types.ts";
import { McpPresenterAuthority, type McpPresenterConnection } from "./mcp-presenter-authority.ts";
import { type PresenterHostSurface } from "./mcp-presenter-host-surface.ts";
import type { SealedSecretSource } from "./secret-sealed-holders.ts";
import { SessionEventWriterConnections } from "./session-event-writer-connections.ts";
/** The MCP form presenter surface and its private-record handler (MCP forms and sealed secret answers). */
export declare abstract class SessionEventWriterPresenters extends SessionEventWriterConnections implements PresenterHostSurface {
    private presenterControlEndpoint?;
    /** Deployment switch. Ordinary RPC behavior is unchanged unless the host explicitly enables it. */
    enableMcpPresenters(): McpPresenterAuthority;
    /** The presenter control's view: reading it enables the authority, as `enableMcpPresenters()` does. */
    get authority(): McpPresenterAuthority;
    get mcpPresenters(): McpPresenterAuthority | undefined;
    advertiseMcpPresenterControl(path: string): void;
    withdrawMcpPresenterControl(path: string): void;
    /** The listening account-enrolling control endpoint, if any (`mcp_presenter_control_info`, senpi#4249 R-1b d2). */
    get mcpPresenterControlEndpoint(): string | undefined;
    /**
     * Writes the private reply to `request` straight to the current connection: never an event queue, snapshot,
     * mirror or replay. A failed write detaches that connection's presenter.
     */
    writeMcpFormReply(requestId: string | undefined, reply: object): void;
    attachSealedSecrets(source: SealedSecretSource): () => void;
    /**
     * The `mcp_presenter_context` reply. `controlEndpoint` is added only on an explicit `discover: true` and only
     * when an account-enrolling control is advertised; otherwise the reply keeps the shape strict clients decode.
     */
    protected mcpPresenterContextReply(sender: McpPresenterConnection | undefined, request: object): object;
    /** Private records bypass event queues, snapshots, mirrors, replay, and overflow preview errors. */
    handleMcpForm(value: unknown): boolean;
    getMcpPresenterConnection(id: string): McpPresenterConnection | undefined;
    findMcpPresenterConnection(nonce: string): McpPresenterConnection | undefined;
    getMcpFormBinding(sessionId: string): McpFormBinding | undefined;
    bindMcpForms(sessionId: string, durableId: string, ui: object, admit: () => void): (() => void) | undefined | Promise<(() => void) | undefined>;
}
//# sourceMappingURL=session-event-writer-presenters.d.ts.map