/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { EventEmitter } from "@fluid-internal/client-utils"; import type { TelemetryLoggerExt } from "./telemetryTypes.js"; /** * Note: The contents of this file really don't belong in this package, as they are only intended for internal use. * They should be moved into the `core-utils` package in the future. */ /** * @internal */ export declare const connectedEventName = "connected"; /** * @internal */ export declare const disconnectedEventName = "disconnected"; /** * @internal */ export declare function safeRaiseEvent(emitter: EventEmitter, logger: TelemetryLoggerExt, event: string, ...args: unknown[]): void; /** * Raises events pertaining to the connection * @param logger - The logger to log telemetry * @param emitter - The event emitter instance * @param connected - A boolean tracking whether the connection was in a connected state or not * @param clientId - The connected/disconnected clientId * @param disconnectedReason - The reason for the connection to be disconnected (Used for telemetry purposes only) * * @internal */ export declare function raiseConnectedEvent(logger: TelemetryLoggerExt, emitter: EventEmitter, connected: boolean, clientId?: string, disconnectedReason?: string): void; //# sourceMappingURL=events.d.ts.map