/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { type EventEmitterEventType, TypedEventEmitter } from "@fluid-internal/client-utils"; import type { IEvent } from "@fluidframework/core-interfaces"; /** * Event Emitter helper class * * @remarks * Any exceptions thrown by listeners will be caught and raised through "error" event. * Any exception thrown by "error" listeners will propagate to the caller. * @privateRemarks * This probably doesn't belong in this package, as it is not telemetry-specific, and is really only intended for internal fluid-framework use. * We should consider moving it to the `core-utils` package. * @legacy @beta */ export declare class EventEmitterWithErrorHandling extends TypedEventEmitter { private readonly errorHandler; constructor(errorHandler: (eventName: EventEmitterEventType, error: any) => void); emit(event: EventEmitterEventType, ...args: unknown[]): boolean; } //# sourceMappingURL=eventEmitterWithErrorHandling.d.ts.map