import type { OpenGeniBrowserClient as OpenGeniClient } from "@opengeni/sdk/browser"; import type { CapabilityCatalogItem } from "../types.js"; export type McpCapabilityOAuthReturn = { name: string; /** A personal account still needs its own review on the card before this chat may use it. */ needsPersonalReview: boolean; }; /** * Finish an MCP capability's OAuth redirect back into a chat: bind the new * connection, verify the capability is enabled, add its tools to this chat * and let the agent continue the request that asked for it. Throws when any * step cannot be verified, so a failed setup never wakes the agent. */ export declare function finishMcpCapabilityOAuthReturn(input: { client: OpenGeniClient; workspaceId: string; sessionId: string; capabilityId: string; params: URLSearchParams; catalog: readonly CapabilityCatalogItem[]; refreshCatalog: (workspaceId: string) => Promise; }): Promise;