/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { logging } from '@angular-devkit/core'; import { EventCustomDimension, EventCustomMetric, PrimitiveTypes } from './analytics-parameters'; export declare class AnalyticsCollector { private logger; private trackingEventsQueue; private readonly requestParameterStringified; private readonly userParameters; constructor(logger: logging.Logger, userId: string, packageManagerInfo: { name: string; version: string | undefined; }); reportWorkspaceInfoEvent(parameters: Partial>): void; reportRebuildRunEvent(parameters: Partial>): void; reportBuildRunEvent(parameters: Partial>): void; reportArchitectRunEvent(parameters: Partial>): void; reportSchematicRunEvent(parameters: Partial>): void; reportCommandRunEvent(command: string): void; private event; /** * Flush on an interval (if the event loop is waiting). * * @returns a method that when called will terminate the periodic * flush and call flush one last time. */ periodFlush(): () => Promise; flush(): Promise; private send; }