UNPKG

emotionctl

Version:

A secure terminal-based journaling system designed as a safe space for developers going through heartbreak, breakups, or betrayal

39 lines 1.02 kB
export declare class AuthManager { private static readonly CONFIG_DIR; private static readonly AUTH_FILE; private passwordHash; constructor(); /** * Ensures the configuration directory exists */ private ensureConfigDir; /** * Checks if the journal is already initialized */ isInitialized(): Promise<boolean>; /** * Initializes the journal with a password */ initialize(password: string): Promise<void>; /** * Authenticates with the provided password */ authenticate(password: string): Promise<boolean>; /** * Changes the password */ changePassword(currentPassword: string, newPassword: string): Promise<void>; /** * Gets the configuration directory path */ getConfigDir(): string; /** * Checks if user is currently authenticated */ isAuthenticated(): boolean; /** * Clears authentication state */ logout(): void; } //# sourceMappingURL=AuthManager.d.ts.map