import { TemplateRef, ViewContainerRef } from "@angular/core"; import { SalaxyContext } from "../services/index"; /** * Shows the element if the user is in the given role / in one of the given roles. * The attribute value should resolve to either role string or array of role strings. * @see [Based on Angular structural directive sample]{@link https://angular.io/guide/structural-directives#write-a-structural-directive} */ export declare class IfRoleDirective { private templateRef; private viewContainer; private context; /** If true, the template view has been created */ private hasView; /** Roles that are checked by this component. This is defined by the salaxyIfRole input */ private roles; /** Creates a new IfRoleDirective */ constructor(templateRef: TemplateRef, viewContainer: ViewContainerRef, context: SalaxyContext); /** Value of the salaxyIfRole attribute should resolve to either role string or array of role strings. */ salaxyIfRole: string | string[]; /** Assures that the view is created if necessary. */ private checkViewContainer(); }