import { User } from "../generated/graphql"; import { AuthTenantUserResponseDto } from "./auth-tenant-user-response.dto"; export declare class CurrentUser { authenticated: boolean; user?: AuthTenantUserResponseDto; constructor(user?: AuthTenantUserResponseDto); getRole(): string; /** * Returns current email domain */ getDomain(): string; /** Checks if a User from Graphql lists is the same as this current user */ isSameUser(user: User): boolean; hasRole(roles: string[]): boolean; hasNotRole(roles: string[]): boolean; private _isAnonymous; }