/**
 * Static manager of environment level SDK user agent information.
 */ export class UserAgentManager { private static components : Set < string > = new Set ( ) ; private static userAgent : string = '' ; /**
     * Retrieves the full user agent string, containing all registered components.
     */ static getUserAgent ( ) { return this . userAgent ; } param component static registerComponent ( component ) { if ( ! this . components . has ( component ) ) { this . components . add ( component ) ; let updatedUserAgent ; for ( const component of this . components ) { updatedUserAgent = updatedUserAgent ? `${ updatedUserAgent } ${ component }` : component ; } this . userAgent = updatedUserAgent ; } } }