import { MatDialogRef } from '@angular/material/dialog';
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, FormArray, FormControl } from '@angular/forms';
import { MatSnackBar } from '@angular/material/snack-bar';
import { HttpClient } from '@angular/common/http';
import { SharedService } from '../../modules/shared/services/shared.service';
import { ActivatedRoute } from '@angular/router';
import * as i0 from "@angular/core";
export declare class EditCbpPlanComponent implements OnInit {
    dialogRef: MatDialogRef<EditCbpPlanComponent>;
    data: any;
    private fb;
    private cdRef;
    private sharedService;
    private snackBar;
    private http;
    route: ActivatedRoute;
    selectedValue: string;
    searchText: string;
    planData: any;
    competenciesCount: {
        total: number;
        behavioral: number;
        functional: number;
        domain: number;
    };
    cbpForm: FormGroup;
    loading: boolean;
    competenciesData: any[];
    availableThemes: any[];
    availableSubThemes: any[];
    filteredThemes: any[];
    filteredSubThemes: string[];
    selectedCompetencyType: string;
    selectedTheme: string;
    selectedSubTheme: string;
    manualTheme: string;
    manualSubTheme: string;
    themeSearchText: string;
    subThemeSearchText: string;
    editDomainCompetencyFlag: boolean;
    editCompetencyIndex: number;
    originalCompetencyValueArr: any;
    desigantionFilterEnable: boolean;
    isLoadingMoreDesignations: boolean;
    designationOffset: number;
    odcsDesignationCount: number;
    defaultSearchDesignationCount: number;
    designationListLoadCount: number;
    designationDefaultLoadCount: number;
    noMoreLegacyDesignations: boolean;
    designationSearchText: string;
    designationInitInProgress: boolean;
    scrollListenerAttached: boolean;
    dialogContent: ElementRef;
    designationRef?: ElementRef;
    masterData: any;
    portalData: any;
    activeRowElement: any;
    requestData: any;
    requestRowData: any;
    constructor(dialogRef: MatDialogRef<EditCbpPlanComponent>, data: any, fb: FormBuilder, cdRef: ChangeDetectorRef, sharedService: SharedService, snackBar: MatSnackBar, http: HttpClient, route: ActivatedRoute);
    ngOnInit(): void;
    loadCompetenciesData(): void;
    updateCompetencyCounts(): void;
    initializeForm(): void;
    private getDesignationSafe;
    get roleResponsibilities(): FormArray;
    searchData(): void;
    applyFilter(): void;
    getCompetenciesByType(type: string): any[];
    closeDialog(): void;
    saveRoleMapping(): void;
    cancelForm(): void;
    private markFormGroupPristineUntouched;
    get competenciesArray(): any;
    onCompetencyTypeChange(type: string): void;
    onThemeChange(themeName: string): void;
    onSubThemeChange(subThemeName: string): void;
    addCompetency(): void;
    resetCompetencyForm(): void;
    filterThemes(searchText: string): void;
    filterSubThemes(searchText: string): void;
    canAddCompetency(): boolean;
    deleteCompetency(comp: any): void;
    editCompetency(comp: any): void;
    cancelUpdate(): void;
    updateCompetency(): void;
    getDesignation(searchText?: string, offset?: number): void;
    ensureSelectedDesignationExists(): void;
    checkCurrentDesignationPresent(): void;
    onDesignationDropdownClosed(): void;
    designationSearch(evt: any): void;
    setupScrollListener(opened: boolean): void;
    onDesignationSelectScroll(event: any): void;
    get searchDesignationControl(): FormControl;
    static ɵfac: i0.ɵɵFactoryDeclaration<EditCbpPlanComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<EditCbpPlanComponent, "app-edit-cbp-plan", never, {}, {}, never, never, false, never>;
}
//# sourceMappingURL=edit-cbp-plan.component.d.ts.map