import { AfterViewInit, ChangeDetectorRef, DestroyRef } from '@angular/core'; import { Form, Section } from '../../../interfaces'; import { MatDialog } from '@angular/material/dialog'; import { CoreI18nService, CoreService, FeedBackService, SidenavService } from '../../../services'; import { ToastrService } from "ngx-toastr"; import * as i0 from "@angular/core"; interface ApprovalHistoryItem { approver: { personName: string; personEmail: string; }; positionType: string; } export declare class ServiceHeaderComponent implements AfterViewInit { private readonly cdRef; coreService: CoreService; i18n: CoreI18nService; private readonly feedBackService; private readonly dialog; private readonly sidenavService; private readonly toasterService; form: Form; showHistory: boolean; isLoading: boolean; isReadOnly: boolean; showApprovalHistory: boolean; approvalHistory: any; creationDate: string; formTitle: string; section: Section; serviceFaq: any[]; approvals: any[]; flagPriority: string; destroyRef: DestroyRef; constructor(cdRef: ChangeDetectorRef, coreService: CoreService, i18n: CoreI18nService, feedBackService: FeedBackService, dialog: MatDialog, sidenavService: SidenavService, toasterService: ToastrService); /** * Executes after the view has been fully initialized. * * @return {void} */ ngAfterViewInit(): void; /** * Handles the click event on the comments form. * Retrieves comments from the form, transforms them, and updates activities in the core service. * Finally, publishes an 'open' event to the sidenav service to open the ActivitiesComponent. * * @return {void} */ onCommentsFormClick(): void; /** * Transforms a comment item into a different format for display. * * @param {Object} item - The original comment item to transform. * @return {Object} - The transformed comment item with specific properties including name, title, image, date, time, comment, and attachments. */ private transformCommentItem; /** * Opens a dialog for providing feedback. * * @return {void} */ feedback(): void; /** * Updates the sidenav with user profile information if not already loading. * * @return {void} */ showUserInfo(): void; /** * Set the priority flag for the inbox item with the provided ID. * * @param {string} id - The ID of the priority flag to be set for the inbox item. * @return {void} */ setFlagPriority(id: string): void; /** * Subscribe to set flag priority for a specific identifier. * * @param {string} id - The identifier of the flag to set priority for. * @return {void} */ subscribeToSetFlagPriority(id: string): void; /** * Returns the CSS class associated with the input status. * * @param {string} status - The status for which the CSS class is needed. * @return {string} - The CSS class corresponding to the given status. */ statusClass(status: string): string; /** * Opens the FAQ side navigation. * @return {void} */ openFaq(): void; /** * Retrieves approval history information for each approval item in the provided array. * * @param {ApprovalHistoryItem[]} approvalHistory - The array containing approval history items. * * @return {void} - This method does not return any value. It updates the internal 'approvals' array. */ getApprovalHistory(approvalHistory: ApprovalHistoryItem[]): void; /** * Retrieves the approval status for a specific section in the form. * * @param {number} index - The index of the section for which the approval status is required. * @return {string} The approval status of the specified section. Returns an empty string if the section does not exist. */ private getApprovalStatus; /** * Retrieves the approval status label from the form section based on the given index. * * @param {number} index - The index of the form section for which the approval status label will be retrieved. * @return {string} The approval status label retrieved from the specified form section. */ private getApprovalStatusLabel; /** * Retrieves the URL of the user's portrait image based on the provided email. * * @param {string} email - The email address of the user for whom the portrait URL is to be retrieved. * @return {string} - The URL used to fetch the user's portrait image. */ private getImageUrl; showPreviousRequests(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};