import { EventEmitter } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { TreeService } from '../tree/tree.service'; import { PublicDataService } from '../public-data/public-data.service'; import { IEditorConfig } from '../../interfaces/editor'; import { ConfigService } from '../config/config.service'; import { ToasterService } from '../../services/toaster/toaster.service'; import { EditorTelemetryService } from '../../services/telemetry/telemetry.service'; import { DataService } from '../data/data.service'; import { HttpClient } from '@angular/common/http'; import 'jquery.fancytree'; import * as i0 from "@angular/core"; interface SelectedChildren { label?: string; primaryCategory?: string; mimeType?: string; interactionType?: string; } export declare class EditorService { treeService: TreeService; private toasterService; configService: ConfigService; private telemetryService; private publicDataService; private dataService; httpClient: HttpClient; data: any; private _selectedChildren; questionStream$: Subject; private _editorConfig; private _editorMode; private _isReviewerEditEnable; private _isReviewModificationAllowed; showQuestionLibraryPage: EventEmitter; contentsCount: number; templateList: any[]; parentIdentifier: any; branchingLogic: {}; selectedSection: any; optionsLength: any; selectedPrimaryCategory: any; leafParentIdentifier: any; questionIds: any[]; outcomeDeclaration: any; treeData: any; private _qualityFormConfig; private _isReviewerQualityCheckEnabled; constructor(treeService: TreeService, toasterService: ToasterService, configService: ConfigService, telemetryService: EditorTelemetryService, publicDataService: PublicDataService, dataService: DataService, httpClient: HttpClient); initialize(config: IEditorConfig): void; set selectedChildren(value: SelectedChildren); get selectedChildren(): SelectedChildren; get editorConfig(): IEditorConfig; get editorMode(): string; get isReviewerEditEnable(): boolean; private setIsReviewerEditEnable; get isReviewModificationAllowed(): boolean; setIsReviewModificationAllowed(value: boolean): void; get contentPolicyUrl(): any; get commonFrameworkLicenseUrl(): any; getToolbarConfig(): any; emitshowQuestionLibraryPageEvent(page: any): void; getshowQuestionLibraryPageEmitter(): EventEmitter; getQuestionList(questionIds: string[]): Observable; fetchCollectionHierarchy(collectionId: any): Observable; readQuestionSet(questionSetId: any, option?: any): Observable; fetchContentDetails(contentId: any): Observable; updateHierarchy(): Observable; getFieldsToUpdate(collectionId: any): {}; updateCollection(collectionId: any, event?: any): Observable; reviewContent(contentId: any): Observable; submitRequestChanges(contentId: any, comment: any): Observable; publishContent(contentId: any, event: any): Observable; addResourceToHierarchy(collection: any, unitIdentifier: any, contentId: any): Observable; addResourceToQuestionset(collection: any, unitIdentifier: any, contentId: any): Observable; getQuestionStream$(): Subject; publish(value: any): void; setQuestionIds(childrens: any): void; getMaxScore(): Promise; calculateMaxScore(questions: Array): any; getCollectionHierarchy(): { nodesModified: {}; hierarchy: any; }; getUpdatedNodeMetaData(): {}; getHierarchyObj(data: any, questionId?: any, selectUnitId?: any, parentId?: any): any; _toFlatObjFromHierarchy(data: any): any; getRelationalMetadataObj(data: any): {}; getCategoryDefinition(categoryName: any, channel: any, objectType: any): Observable; fetchContentListDetails(req: any): Observable; sort(a: any, b: any, column: any): any; isNotEmpty(obj: any, key: any): boolean; apiErrorHandling(err: any, errorInfo: any): void; getContentChildrens(activeNode?: any): any[]; contentsCountAddedInLibraryPage(setToZero?: any): void; checkIfContentsCanbeAdded(buttonAction: any): boolean; getHierarchyFolder(): any[]; generatePreSignedUrl(req: any, contentId: any, type: any): Observable; getBranchingLogicByFolder(identifier: any): any; /** * * @public * @param identifier identifier of the node * @returns { source: [], target: [], sourceTarget?: [] } * @memberof EditorService */ getDependentNodes(identifier: any): { source: any; target: any; sourceTarget: any; } | { source?: undefined; target?: undefined; sourceTarget?: undefined; } | { source: any; target: any; sourceTarget?: undefined; }; /** * * @public * @param identifier identifier of the node * @returns {"do_id": { "target": [ "do_id123", "do_id456" ], "preCondition": {}, "source": [] }} * @memberof EditorService */ getBranchingLogicByNodeId(identifier: any): any; getBranchingLogicEntry(parentBranchingLogic: any, identifier: any): any; getFlattenedBranchingLogic(data: any): any; getParentDependentMap(data: any): {}; getPrimaryCategoryName(sectionId: any): any; get qualityFormConfig(): any; private setQualityFormConfig; get isReviewerQualityCheckEnabled(): boolean; private setIsReviewerQualityCheckEnabled; appendCloudStorageHeaders(config: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export {}; //# sourceMappingURL=editor.service.d.ts.map