export type Role = 'admin' | 'manager' | 'user' | 'viewer' | 'guest';

export type CompanyId = 'beletage' | 'urban-switch' | 'studii-de-teren' | 'group';

export interface User {
  id: string;
  name: string;
  email: string;
  role: Role;
  company: CompanyId;
}

export interface AuthContextValue {
  user: User | null;
  role: Role;
  isAuthenticated: boolean;
  hasRole: (role: Role) => boolean;
  canAccessModule: (moduleId: string) => boolean;
}
