import type { ExtensionUIDialogOptions } from "./extensions/types.ts";
type Select = (title: string, options: string[], opts?: ExtensionUIDialogOptions) => Promise<string | undefined>;
/** Each RPC connection registers only if its own handshake advertises grant_select. */
export declare function attachMcpGrantPresentation(sessionId: string, select: Select): () => void;
export declare function getMcpGrantPresentation(sessionId: string | undefined): Select | undefined;
export declare function clearMcpGrantPresentations(sessionId: string): void;
/** Bound the decision even when an embedding's select ignores dialog options; any failure is no answer. */
export declare function selectLocalGrant(select: Select | undefined, title: string, choices: readonly [grant: string, decline: string], signal?: AbortSignal): Promise<string | undefined>;
export declare function selectMcpGrant(select: Select | undefined, title: string, signal?: AbortSignal): Promise<boolean>;
export {};
//# sourceMappingURL=mcp-grant-presentations.d.ts.map