hackages
Version:
CLI tool for learning software development concepts through test-driven development
22 lines (21 loc) • 672 B
TypeScript
import { LearningGoal } from "../types/index.js";
interface User {
login: string;
id: string | number;
name: string;
avatar_url?: string;
email?: string;
}
interface AuthToken {
access_token: string;
user: User;
expires_at?: number;
}
export declare function checkIfLearningJSONIsEmpty(): boolean;
export declare function writeLearningGoal(learningGoal: LearningGoal): void;
export declare function getStoredAuth(): AuthToken | null;
export declare function clearAuth(): void;
export declare function loginWithGitHub(): Promise<void>;
export declare function isLoggedIn(): boolean;
export declare function getCurrentUser(): any;
export {};