/**
 * Authentication & Session Management
 * User authentication for 4Runr OS with session management
 */
export interface UserSession {
    username: string;
    loggedInAt: number;
    lastActivityAt: number;
    expiresAt: number;
    gatewayUrl?: string;
}
/**
 * Save session to file (ENCRYPTED)
 */
export declare function saveSession(session: UserSession): void;
/**
 * Load session from file (ENCRYPTED + VALIDATED)
 */
export declare function loadSession(): UserSession | null;
/**
 * Clear session file
 */
export declare function clearSession(): void;
/**
 * Update session activity timestamp
 */
export declare function updateActivity(session: UserSession): void;
/**
 * Check if session is still valid
 */
export declare function isSessionValid(session: UserSession | null): boolean;
/**
 * Get time remaining in session (in minutes)
 */
export declare function getSessionTimeRemaining(session: UserSession | null): number;
/**
 * Create a new session for a user
 */
export declare function createSession(username: string, gatewayUrl?: string): UserSession;
/**
 * Get user-specific config directory
 */
export declare function getUserConfigDir(username: string): string;
/**
 * Get user-specific agents file path
 */
export declare function getUserAgentsPath(username: string): string;
/**
 * Get user-specific chats file path
 */
export declare function getUserChatsPath(username: string): string;
/**
 * Get user-specific tools file path
 */
export declare function getUserToolsPath(username: string): string;
//# sourceMappingURL=auth.d.ts.map