import { AuthenticatedUser } from "../authenticated-user.model"; import * as i0 from "@angular/core"; /** * Service to manage permission-related logic */ export declare class PermissionService { private userPermissions; /** * Refreshes permissions based on the logged in user roles */ refresh(user: AuthenticatedUser): void; /** * Check if user has proper set of permissions * @param all Boolean; if true, all roles passed are required. if false, only one is required. * @param permissions Set of permissions to check against */ hasPermission(all: boolean, permissions: string | string[]): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }