//#region src/connect.d.ts type ConnectAuthMode = "oauth" | "bearer" | "api-key" | "public"; type AgentClientId = "claude" | "chatgpt" | "claude-code" | "cursor" | "cli"; type AgentClientAvailability = "ready" | "unsupported_auth_mode" | "requires_https_endpoint"; interface ConnectCliMetadata { readonly packageName: string; readonly binaryName: string; /** Env var name shown in headless/API-key examples (default: `_TOKEN`). Never pass a secret value! */ readonly tokenEnvVar?: string; } interface ConnectToAgentInput { /** Human-facing product name (e.g. "Acme Ops"). */ readonly productName: string; /** Short slug for `claude mcp add` and `.cursor/mcp.json` (default: kebab-case `productName`). */ readonly serverSlug?: string; /** Canonical MCP URL (HTTPS in production, or loopback HTTP in local dev). */ readonly endpoint: string; /** Server authentication mode (`oauth` default). */ readonly authMode?: ConnectAuthMode; /** Custom token header name for `api-key` / `bearer` modes (default: `"Authorization"`). */ readonly headerName?: string; /** Environment variable placeholder used in `claude-code`, `cursor`, and `cli` snippets (default: `_TOKEN`). */ readonly tokenEnvVar?: string; /** Optional sign-in guidance for OAuth (e.g. "Sign in with your work email and 8-digit code."). */ readonly signInNote?: string; /** Optional in-app path where users revoke connections (e.g. "Settings -> Integrations"). */ readonly disconnectLocation?: string; /** Optional support contact line (e.g. "support@acme.com"). */ readonly supportContact?: string; /** Optional starter prompts shown under "What you can ask". */ readonly samplePrompts?: readonly string[]; /** Optional branded CLI metadata; enables the ` CLI` tab. */ readonly cli?: ConnectCliMetadata; } interface CopyableSnippet { readonly id: string; readonly label: string; readonly language: "sh" | "json" | "url"; readonly code: string; } interface AgentClientConnection { readonly id: AgentClientId; readonly label: string; readonly availability: AgentClientAvailability; readonly unavailableReason?: string; readonly summary: string; readonly steps: readonly string[]; readonly snippets: readonly CopyableSnippet[]; /** Present on `cursor` when `availability === "ready"`. Never contains raw secrets. */ readonly deeplink?: { readonly label: string; readonly href: string; }; readonly notes: readonly string[]; readonly reconnectHint?: string; readonly disconnectHint?: string; } interface AgentConnectionPlan { readonly valid: boolean; readonly error?: string; readonly productName: string; readonly serverSlug: string; readonly endpoint: string; readonly isLoopback: boolean; readonly authMode: ConnectAuthMode; /** Truthful authority summary matching the active `authMode`. */ readonly authoritySummary: string; readonly clients: readonly AgentClientConnection[]; readonly samplePrompts: readonly string[]; } declare function describeAgentConnections(input: ConnectToAgentInput): AgentConnectionPlan; /** Renders a complete end-user Markdown setup guide for the configured MCP server. */ declare function renderConnectMarkdown(input: ConnectToAgentInput): string; //#endregion export { AgentClientAvailability, AgentClientConnection, AgentClientId, AgentConnectionPlan, ConnectAuthMode, ConnectCliMetadata, ConnectToAgentInput, CopyableSnippet, describeAgentConnections, renderConnectMarkdown }; //# sourceMappingURL=connect.d.ts.map