import type IDiagnosticsSettings from './IDiagnosticsSettings'; import type { IClearSettingsOptions, IExtraDiagnosticInfo } from './IDiagnosticsSettings'; /** * Diagnostics class initializes the diagnostics pipeline and connect to backend server. * Diagnostics contains a set of internal APIs that collects data and reports data via * the pipeline. The APIs consist of * -- TraceLogger - for logging diagnostic information * * @internal */ export default class Diagnostics { private static _isInitialized; /** * Initializes the diagnostics pipelines */ static initialize(settings: IDiagnosticsSettings): void; /** * Returns true if diagnostics has been already initialized. */ static get isInitialized(): boolean; /** * Used to refresh the telemetry settings when they change from the application * (i.e. when an in-place navigation to a different site happens) * @param settings - the subset of the telemetry settings to be updated */ static updateSettings(settings: Partial): void; /** * Get the authoring session client count info from the extraDiagnosticsInfo from Diagnostics settings * @deprecated - Read from @see getExtraDiagnosticInfo * @returns the number of clients in the authoring session */ static getAuthoringSessionClientCountInfo(): number | undefined; /** * Get the extra diagnostic info for logging purpose. * @internal * @returns @see IExtraDiagnosticInfo */ static _getExtraDiagnosticInfo(): IExtraDiagnosticInfo | undefined; /** * Used to delete telemetry settings when they are no longer needed or need to be reset. * The current updateSettings implementation does not support un-setting previously * set settings values. * @param settings - the subset of the telemetry settings to be cleared. */ static clearSettings(settings: IClearSettingsOptions): void; } //# sourceMappingURL=Diagnostics.d.ts.map