import type { McpConnectIdentity } from "../shared/mcp-connect-content.js"; export type McpConnectIdentityState = { status: "loading"; } | { status: "ready"; identity: McpConnectIdentity; } | { status: "error"; error: Error; }; /** * The server name and MCP URL this app hands to MCP clients, as the server * resolves them. Surfaces must not derive a name from the hostname: that is * how settings, the connect page and the CLI wrote three different names. * Nor may they rewrite the URLs, even to the page's own scheme: they are the * resource OAuth discovery advertises, and a client installed at any other * URL fails resource matching when it signs in. */ export declare function fetchMcpConnectIdentity(): Promise; export declare function useMcpConnectIdentity(): McpConnectIdentityState & { retry: () => void; };