/** * OpenCode Cursor Auth Plugin * * An OpenCode plugin that provides OAuth authentication for Cursor's AI backend, * following the architecture established by opencode-gemini-auth. * * This plugin uses a custom fetch function to intercept OpenAI API requests * and route them through Cursor's Agent API. */ import type { PluginContext, PluginResult } from "./types"; export declare const CURSOR_PROVIDER_ID = "cursor"; /** * Cursor OAuth Plugin for OpenCode * * Provides authentication for Cursor's AI backend using: * - Browser-based OAuth flow with PKCE * - API key authentication * - Automatic token refresh * - Custom fetch function (no proxy server needed) */ export declare const CursorOAuthPlugin: ({ client, }: PluginContext) => Promise; export declare const CursorCLIOAuthPlugin: ({ client, }: PluginContext) => Promise;