import { OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver-v2';
import { ConfigurationsService, MultilingualTranslationsService, NsInstanceConfig } from '@sunbird-cb/utils-v2';
import { BtnPageBackService } from './btn-page-back.service';
import { DiscussUtilsService } from '../../services/discuss-utils.service';
import { TranslateService } from '@ngx-translate/core';
import * as i0 from "@angular/core";
type TUrl = undefined | 'none' | 'back' | string;
export declare class BtnPageBackComponent extends WidgetBaseComponent implements OnInit, NsWidgetResolver.IWidgetData<{
    url: TUrl;
}> {
    private btnBackSvc;
    router: Router;
    private configSvc;
    private discussUtilitySvc;
    private translate;
    private langtranslations;
    private environment;
    widgetData: {
        url: TUrl;
        titles?: NsWidgetResolver.ITitle[];
        textClass?: string;
    };
    presentUrl: string;
    id: string;
    visible: boolean;
    enablePeopleSearch: boolean;
    loggedinUser: boolean;
    hubsList: NsInstanceConfig.IHubs[];
    constructor(btnBackSvc: BtnPageBackService, router: Router, configSvc: ConfigurationsService, discussUtilitySvc: DiscussUtilsService, translate: TranslateService, langtranslations: MultilingualTranslationsService, environment: any);
    ngOnInit(): void;
    get isUserLoggegIn(): boolean;
    get backUrl(): {
        fragment?: string;
        routeUrl: string;
        queryParams: any;
    };
    navigate(): void;
    toggleVisibility(): void;
    hasRole(role: string[]): boolean;
    isAllowed(portalName: string): boolean;
    translateLabels(label: string, type: any, subtype: any): any;
    static ɵfac: i0.ɵɵFactoryDeclaration<BtnPageBackComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<BtnPageBackComponent, "ws-widget-btn-page-back", never, { "widgetData": { "alias": "widgetData"; "required": false; }; }, {}, never, never, false, never>;
}
export {};
//# sourceMappingURL=btn-page-back.component.d.ts.map