import { MatDialogRef } from '@angular/material/dialog';
import { ChangeDetectorRef, ElementRef } from '@angular/core';
import { FormBuilder, FormGroup, FormArray, FormControl } from '@angular/forms';
import { MatSnackBar } from '@angular/material/snack-bar';
import { SharedService } from '../../modules/shared/services/shared.service';
import * as i0 from "@angular/core";
export declare class AddDesignationComponent {
    dialogRef: MatDialogRef<AddDesignationComponent>;
    data: any;
    private fb;
    private cdRef;
    private sharedService;
    private snackBar;
    designationForm: FormGroup;
    maxFileSizeMB: number;
    allowedTypes: string[];
    uploadError: string | null;
    uploadedFile: File | null;
    cbpPlanFinalObj: any;
    loading: boolean;
    designationRef?: ElementRef;
    desigantionFilterEnable: boolean;
    isLoadingMoreDesignations: boolean;
    designationOffset: number;
    odcsDesignationCount: number;
    defaultSearchDesignationCount: number;
    designationListLoadCount: number;
    designationDefaultLoadCount: number;
    noMoreLegacyDesignations: boolean;
    designationSearchText: string;
    designationInitInProgress: boolean;
    scrollListenerAttached: boolean;
    masterData: any;
    searchDesignationLoadCount: number;
    matchedDesignationIds: any[];
    readonly MAX_DESIGNATIONS = 10;
    maxDesignationCount: number;
    private designationScrollHandler;
    constructor(dialogRef: MatDialogRef<AddDesignationComponent>, data: any, fb: FormBuilder, cdRef: ChangeDetectorRef, sharedService: SharedService, snackBar: MatSnackBar);
    ngOnInit(): void;
    private getDesignationSafe;
    initializeForm(): void;
    get designationArray(): FormArray;
    addDesignationBlock(): void;
    saveDesignationBlock(index: number): void;
    editDesignationBlock(index: number): void;
    deleteDesignationBlock(index: number): void;
    createDesignationForm(): FormGroup;
    onFileChange(event: any): void;
    cancelForm(): void;
    saveDesignation(): void;
    closeDialog(): void;
    getDesignation(searchText?: string, offset?: number): void;
    checkCurrentDesignationPresent(): void;
    onDesignationDropdownClosed(index: number): void;
    setupScrollListener(opened: boolean): void;
    onDesignationSelectScroll(event: any): void;
    get searchDesignationControl(): FormControl;
    clearDesignationSearch(index: number, event: Event): void;
    get canGenerateCBP(): boolean;
    getFilteredDesignations(currentIndex: number): any[];
    private resetPopup;
    static ɵfac: i0.ɵɵFactoryDeclaration<AddDesignationComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<AddDesignationComponent, "app-add-designation", never, {}, {}, never, never, false, never>;
}
//# sourceMappingURL=add-designation.component.d.ts.map