import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, Router, RouterStateSnapshot } from '@angular/router';
import { AuthorizationStateService } from '../../authorization/state.service';
import { WorkspaceParams } from '../types/commons';
import * as i0 from "@angular/core";
export declare type GetWorkspaceUrl = (params: WorkspaceParams, activateRoute?: ActivatedRouteSnapshot) => string | string[];
export declare class ProjectNamespaceGuard implements CanActivate, CanActivateChild {
    private readonly router;
    private readonly auth;
    constructor(router: Router, auth: AuthorizationStateService);
    canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): true | import("rxjs").Observable<import("@angular/router").UrlTree>;
    canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): true | import("rxjs").Observable<import("@angular/router").UrlTree>;
    static ɵfac: i0.ɵɵFactoryDeclaration<ProjectNamespaceGuard, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<ProjectNamespaceGuard>;
}
export declare class ProjectGuard implements CanActivate, CanActivateChild {
    private readonly router;
    private readonly auth;
    constructor(router: Router, auth: AuthorizationStateService);
    canActivate(route: ActivatedRouteSnapshot, _state: RouterStateSnapshot): import("rxjs").Observable<true | import("@angular/router").UrlTree>;
    canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): import("rxjs").Observable<true | import("@angular/router").UrlTree>;
    static ɵfac: i0.ɵɵFactoryDeclaration<ProjectGuard, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<ProjectGuard>;
}
