import type { IExtraDataForCustomerPromise } from './CustomerPromiseInterfaces/IExtraDataForCustomerPromise'; import QosMonitor from './QosMonitor'; /** * Monitor which handles failures for QosMonitor and also invokes Customer Promise Handlers to record failure * @internal */ export declare class QosMonitorShareFailureWithCP extends QosMonitor { private _extraDataForCustomerPromise; /** * Creates a QoS monitor and also registers the Customer promise handlers to notify in case of failures * @internal * * @param scenarioName - Unique name of the QoS scenario * @param copyToEngagement - indicate whether this data should be used as Engagement as well. * @param extraDataForCustomerPromise - Holds extra information about Customer Promise handlers to invoke * and error information where failures are logged */ constructor(scenarioName: string, copyToEngagement: boolean | undefined, extraDataForCustomerPromise: IExtraDataForCustomerPromise[], copyToCosmos?: boolean); /** * QoS monitor ends with failure and invokes the Customer Promise handlers * to log a failure * @internal * * You will see failure tag: SPPages.ScenarioName..Failure. * will be filled with param tagName */ writeUnexpectedFailure(tagNameSuffix?: string, ex?: Error, extraData?: { [key: string]: any; }): void; /** * QoS monitor ends with expected failure and invokes the Customer Promise handlers * to log an expected failure * @internal * * You will see success tag: ModernPublish.RenderPublishPage..ExpectedFailure. * will be filled with param tagName */ writeExpectedFailure(tagNameSuffix?: string, ex?: Error, extraData?: { [key: string]: any; }, skipLoggingCustomerPromiseFailure?: boolean): void; /** * Invokes the registered Customer Promise Handlers by using the passed in serviceKey * @param errorMessage - Information to indicate which scenario failed. * @param errorScenario -Additional error details describing the failure from the module. * @param resultType - ResultTypeEnum used to indicate expected or unexpected failure. * @param extraData - Additional information to be logged, which might include pageType and/or errorStack */ private _logCustomerPromiseFailure; } //# sourceMappingURL=QosMonitorShareFailureWithCP.d.ts.map