import type { OAuthCredentials } from "./types"; export interface CursorAuthParams { verifier: string; challenge: string; uuid: string; loginUrl: string; } export declare function generateCursorAuthParams(): Promise; export declare function pollCursorAuth(uuid: string, verifier: string): Promise<{ accessToken: string; refreshToken: string; }>; export declare function loginCursor(onAuthUrl: (url: string) => void, onPollStart?: () => void): Promise; export declare function refreshCursorToken(apiKeyOrRefreshToken: string): Promise; export declare function isCursorTokenExpiringSoon(token: string, thresholdSeconds?: number): boolean;