#!/usr/bin/env node /** * NeuroLink Auth Command * * Unified authentication command for AI providers supporting: * - API key authentication (traditional) * - OAuth 2.1 authentication with PKCE (for Claude subscription) * * Subcommands: * - login: Authenticate with a provider (supports --add/--label for multi-account) * - logout: Clear stored credentials * - status: Show authentication status * - refresh: Manually refresh OAuth tokens * - list: List all authenticated accounts * - remove: Remove an authenticated account * * Currently supports: * - Anthropic (API key + OAuth) */ import type { AuthCommandArgs } from "../../lib/types/index.js"; /** * Handle the login subcommand * `neurolink auth login ` * * When --add is specified, saves tokens to the TokenStore with a compound key * (e.g., "anthropic:alice") to support multi-account pools. */ export declare function handleLogin(argv: AuthCommandArgs): Promise; /** * Handle the list subcommand * `neurolink auth list` * * Lists all authenticated accounts from the TokenStore. */ export declare function handleList(argv: AuthCommandArgs): Promise; /** * Handle the remove subcommand * `neurolink auth remove --label