export type MFRuntimeErrorBoundaryScope = 'module' | 'wrapper'; export type MFRuntimeErrorSource = 'boundary' | 'window-error' | 'unhandledrejection'; export interface MFRuntimeErrorWrapperMetadata { wrapperId: string; wrapperName?: string; } export interface MFRuntimeErrorEvent { moduleId: string; moduleVersion?: string; error: Error; componentStack?: string; boundaryScope?: MFRuntimeErrorBoundaryScope; source?: MFRuntimeErrorSource; wrapper?: MFRuntimeErrorWrapperMetadata; } export type MFRuntimeErrorHandler = (event: MFRuntimeErrorEvent) => void; /** * Check whether the current runtime error object was already forwarded once. */ export declare function hasMFRuntimeErrorBeenReported(error: Error): boolean; /** * Register a host-owned handler for MF runtime errors caught inside MFHostApp. */ export declare function registerMFRuntimeErrorHandler(handler: MFRuntimeErrorHandler): void; /** * Remove the currently registered MF runtime error handler. */ export declare function unregisterMFRuntimeErrorHandler(): void; /** * Report a caught MF runtime error to the registered host handler, if any. */ export declare function reportMFRuntimeError(event: MFRuntimeErrorEvent): void; //# sourceMappingURL=mfRuntimeErrors.d.ts.map