import { AuthenticationContext, CNDConfig } from '../types.js'; export declare class AuthenticationManager { private config; private activeSessions; constructor(config: CNDConfig['auth']); /** * Authenticate user with credentials */ authenticate(username: string, password: string): Promise; /** * Authenticate with JWT token */ authenticateToken(token: string): Promise; /** * Validate session */ validateSession(sessionId: string): Promise; /** * Check if user has permission */ hasPermission(context: AuthenticationContext, permission: string): boolean; /** * Check if user has role */ hasRole(context: AuthenticationContext, role: string): boolean; /** * Logout user */ logout(sessionId: string): Promise; /** * Get active sessions count */ getActiveSessionsCount(): number; /** * Cleanup expired sessions */ cleanupExpiredSessions(): Promise; private validateCredentials; private generateSessionId; /** * Generate JWT token */ generateJWT(userId: string, permissions: string[], roles: string[], tenant?: string): string; } //# sourceMappingURL=authentication.d.ts.map