export declare let SDK_VERSION: string; /** * Gets the SDK name for a given component by looking it up in the sdkMap * @param {string} componentName - The name of the component * @returns {string} - The SDK name if found, defaults to 'Syncfusion.Telemetry' */ export declare function getSdkNameForComponent(componentName: string): string; /** * Initialize and configure telemetry for component tracking * @param {string} componentName - The name of the component to track * @returns {void} * @private */ export declare function initializeTelemetry(componentName: string): void; /** * Initialize and configure telemetry for feature tracking * @param {string} featureName - The name of the feature to track * @param {string} componentName - The name of the component to track * @returns {void} * @private */ export declare function initializeTelemetryFeature(featureName: string, componentName: string): void; export declare class Telemetry { private static client; static isTelemetryEnable: boolean; static disable(): void; static enable(): void; static configure(configure: (options: TelemetryOptions) => void): void; static trackComponent(componentName: string, componentSdkName: string): void; static trackFeature(featureName: string, componentName: string, featureSdkName: string): void; static flushAsync(): Promise; static shutdown(): void; } export declare class TelemetryOptions { enabled: boolean; connectionString: string; sdkName: string; sdkVersion: string; framework: string; frameworkVersion: string; platform: string; readonly endpoint: string; readonly operatingSystem: string; readonly architecture: string; readonly environmentName: string; readonly maxQueueSize: number; readonly batchSize: number; readonly batchInterval: number; readonly requestTimeout: number; readonly maxRetries: number; readonly enableGzip: boolean; readonly productionNoOpByDefault: boolean; constructor(); private getFrameWorkVersion; private getFrameWork; private getArchitecture; private getOperatingSystem; getEnvironment(): string; } export interface TelemetryEvent { eventName: string; timestamp: Date; sessionId: string; machineName?: string; sdkName: string; sdkVersion: string; componentName?: string; featureName?: string; framework?: string; frameworkVersion?: string; platform?: string; environment?: string; priority?: string; } export interface TelemetryBatch { schemaVersion: string; sdkVersion: string; sessionId: string; createdAt: Date; events: TelemetryEvent[]; } export declare function randomUUID(): string; interface AiEnvelope { name: string; time: string; iKey: string; data: { baseType: 'EventData'; baseData: { name: string; properties: Record; }; }; } interface ITelemetrySender { sendAsync(batch: TelemetryBatch, signal?: AbortSignal): Promise; } export declare class HttpTelemetrySender implements ITelemetrySender { private readonly options; private readonly requestUrl; private readonly instrumentationKey; constructor(options: TelemetryOptions); sendAsync(batch: TelemetryBatch, signal?: AbortSignal): Promise; createApplicationInsightsPayload(batch: TelemetryBatch): AiEnvelope[]; createApplicationInsightsEvent(ev: TelemetryEvent, _batch: TelemetryBatch): AiEnvelope; } export declare class TelemetryClient { readonly options: TelemetryOptions; private readonly sender; private readonly queue; private readonly sessionDedup; private readonly dailyDedup; private timer; private cleanupTimer; private static sessionId; static machineName: string; private isFlushing; private disposed; private readonly maxDedupSize; private readonly dedupCleanupThreshold; constructor(options: TelemetryOptions); trackComponent(componentName: string, componentSdkName: string): void; trackFeature(featureName: string, componentName: string, featureSdkName: string): void; flushAsync(): Promise; dispose(): void; private shouldCollect; private hashId; private generateMachineName; private generateSessionId; private enqueue; private isDuplicate; private enforceMaxSize; private cleanupStaleKeys; } export default Telemetry;