/**
 * Cursor IDE Authentication Handler
 *
 * Handles token import and authentication for Cursor IDE integration.
 * Supports auto-detection from Cursor's SQLite database.
 *
 * Token Location:
 * - Linux: ~/.config/Cursor/User/globalStorage/state.vscdb
 * - macOS: ~/Library/Application Support/Cursor/User/globalStorage/state.vscdb
 * - Windows: %APPDATA%\Cursor\User\globalStorage\state.vscdb
 *
 * Database Keys:
 * - cursorAuth/accessToken: Access token
 * - storage.serviceMachineId: Machine ID for checksum
 */
import type { CursorCredentials, CursorAuthStatus, AutoDetectResult } from './types';
/**
 * Get platform-specific path to Cursor's state.vscdb
 */
export declare function getTokenStorageCandidates(): string[];
export declare function getTokenStoragePath(): string;
/**
 * Auto-detect tokens from Cursor's SQLite database
 */
export declare function autoDetectTokens(): AutoDetectResult;
/**
 * Validate token and machine ID format
 */
export declare function validateToken(accessToken: string, machineId: string): boolean;
/**
 * Extract user info from token if possible
 * Cursor tokens may contain encoded user info as JWT
 */
export declare function extractUserInfo(accessToken: string): {
    email?: string;
    userId?: string;
    exp?: number;
} | null;
/**
 * Get path to credentials file
 */
export declare function getCredentialsPath(): string;
/**
 * Save credentials to CCS config directory
 */
export declare function saveCredentials(credentials: CursorCredentials): void;
/**
 * Load credentials from CCS config directory
 */
export declare function loadCredentials(): CursorCredentials | null;
/**
 * Check authentication status
 */
export declare function checkAuthStatus(): CursorAuthStatus;
/**
 * Delete credentials file
 */
export declare function deleteCredentials(): boolean;
//# sourceMappingURL=cursor-auth.d.ts.map