import { TemplateRef, ViewContainerRef, OnInit, OnDestroy, ChangeDetectorRef, OnChanges } from '@angular/core'; import { AuthenticationService } from '../../services'; import * as i0 from "@angular/core"; /** * Directive that displays element if use is authorized */ export declare class AuthorizeDirective implements OnInit, OnChanges, OnDestroy { private _template; private _viewContainer; private _authService; private _changeDetector; /** * Subscription for changes in authentication */ private _subscription; /** * Indication whether on init was already called or not */ private _afterOnInit; /** * Indication whether is content rendered or not */ private _rendered; /** * Name of permission that is requested for displaying element */ permission: string | string[]; /** * Indication that AND condition should be used instead of OR condition if multiple permissions are provided */ andCondition: boolean; /** * Indication that provided string is set of loggical operations among permission names, if this is true andCondition is ignored */ conditionString: boolean; /** * Additional condition that is added to evaluation of permission */ addCondition: boolean; constructor(_template: TemplateRef, _viewContainer: ViewContainerRef, _authService: AuthenticationService, _changeDetector: ChangeDetectorRef); /** * Initialize component */ ngOnInit(): void; /** * Called when input value changes */ ngOnChanges(): void; /** * Called when component is destroyed */ ngOnDestroy(): void; /** * Renders content if user has permissions */ private _renderIfPermission; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } //# sourceMappingURL=authorize.directive.d.ts.map