import { OnInit, EventEmitter, SimpleChanges, AfterViewInit, ElementRef, NgZone, ChangeDetectorRef } from "@angular/core";
import { ActionMeta } from '../../interfaces/actionMeta';
import { BookletWrapper } from "../../model/bookletWrapper";
import { Observable, Subscription } from "rxjs";
import { HttpClient } from "@angular/common/http";
import { QuestionbookComponent } from "../questionbook/questionbook.component";
import { DataService } from "../../services/data/data.service";
import { ChangeService } from "../../services/change/change.service";
import { TranslationService } from "../../services/translation/translation.service";
import * as i0 from "@angular/core";
export declare class BookletComponent implements OnInit, AfterViewInit {
    private dataService;
    private changeService;
    private http;
    private translationService;
    private ngZone;
    private cdr;
    bookletId: string;
    serv: string;
    tkn: string;
    bookletJSON: any;
    allIcons: any;
    themeColor: string;
    cdnIconURL: string;
    dropdownDependentData: any;
    labelValue: string;
    token: string;
    languageCode: string;
    fieldRestrictions: any;
    from: any;
    apiUrl: any;
    isEdit: boolean;
    direction: string;
    isLoading: any;
    onlyView: boolean;
    dataBind: any;
    handleBookletActionEvent: EventEmitter<any>;
    handlePage: EventEmitter<any>;
    hadleDropDownDependent: EventEmitter<any>;
    handleCalendarDate: EventEmitter<any>;
    handleCalendarEvent: EventEmitter<any>;
    formEditEvent: EventEmitter<any>;
    subscription: Subscription;
    nxtBooklet: BookletWrapper;
    booklet: any[];
    abItem: any;
    actions: ActionMeta[];
    bookQuestionsMap: any;
    isAnswerFlag: boolean;
    spinnerName: string;
    spinnerType: string;
    answerList: any[];
    allEvents: any[];
    isEditVal: boolean;
    safeValue: any;
    showStickyShadow: boolean;
    isSaveDisabled: boolean;
    orginalDataBind: any;
    questionbookComponent: QuestionbookComponent;
    stickyBar?: ElementRef<HTMLElement>;
    private destroy$;
    private processBookletRunId;
    private scrollHandler;
    constructor(dataService: DataService, changeService: ChangeService, http: HttpClient, translationService: TranslationService, ngZone: NgZone, cdr: ChangeDetectorRef);
    ngOnInit(): void;
    ngOnChanges(simplechanges: SimpleChanges): void;
    upgradeActions(actionString: string): any[];
    private triggerProcessBooklet;
    processBooklet(from?: any): Promise<void>;
    getRefQbData(refqbid: string): Observable<any>;
    singleFieldChange(event: any): void;
    handleBookletActionClick(action: ActionMeta, ques?: any): Promise<void>;
    handleCompleteBooklet(completeBooklet: any, from?: any): Promise<void>;
    handleBook(quesList: any, from?: any): Promise<void>;
    handleQues(ques: any): Promise<void>;
    processRichTextArea(html: string): Promise<any>;
    addEvent(day: any, entryQues: any): void;
    getDropDown(event: any): void;
    getCalendarDate(event: any): void;
    getCalendarEvent(event: any): void;
    editChangeClick(action: any): void;
    ngAfterViewInit(): void;
    updateShadow(): void;
    private hasValue;
    private updateSaveButtonState;
    ngOnDestroy(): void;
    private applyTranslations;
    private loadReferenceBooks;
    private loadActions;
    private prepareBooklet;
    private assignBookletData;
    private buildQuestionMap;
    private handleDataBind;
    trackBooklet(index: number, item: any): any;
    trackQuestion(index: number, item: any): any;
    trackAction(index: number, item: any): any;
    static ɵfac: i0.ɵɵFactoryDeclaration<BookletComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": { "alias": "bookletId"; "required": false; }; "serv": { "alias": "serv"; "required": false; }; "tkn": { "alias": "tkn"; "required": false; }; "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "allIcons": { "alias": "allIcons"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "cdnIconURL": { "alias": "cdnIconURL"; "required": false; }; "dropdownDependentData": { "alias": "dropdownDependentData"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "token": { "alias": "token"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; "fieldRestrictions": { "alias": "fieldRestrictions"; "required": false; }; "from": { "alias": "from"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "onlyView": { "alias": "onlyView"; "required": false; }; "dataBind": { "alias": "dataBind"; "required": false; }; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleCalendarDate": "handleCalendarDate"; "handleCalendarEvent": "handleCalendarEvent"; "formEditEvent": "formEditEvent"; }, never, never, true, never>;
}
