export interface CursorAuthParams { verifier: string; challenge: string; uuid: string; loginUrl: string; } export interface CursorCredentials { access: string; refresh: string; expires: number; } export declare function generateCursorAuthParams(): Promise; export declare function pollCursorAuth(uuid: string, verifier: string): Promise<{ accessToken: string; refreshToken: string; }>; export declare function refreshCursorToken(refreshToken: string): Promise; /** * Extract JWT expiry with 5-minute safety margin. * Falls back to a conservative ~5 minutes from now if the token can't be * parsed, so an unparseable token triggers a proactive refresh rather than * being trusted for an hour. */ export declare function getTokenExpiry(token: string): number;