import { IAction } from "../../../base/common/actions.js"; /** Audited, content-independent types. These IDs must not be used for notification deduplication. */ export declare enum NotificationTelemetryId { AgentHostProgress = "agentHost.progress", AuthenticationSignIn = "authentication.signIn", AuthenticationContinue = "authentication.continue", ExtensionsActivation = "extensions.activation", ExtensionInstall = "extensions.install", ExtensionDownload = "extensions.downloadVsix", ExtensionDownloadComplete = "extensions.downloadVsix.complete", ExtensionDownloadError = "extensions.downloadVsix.error", ExtensionsDisabled = "extensions.disabled", ExtensionDependencyLoop = "extensions.dependencyLoop", ExtensionsAutoRestart = "extensions.autoRestart", ExtensionHostUnresponsive = "extensions.host.unresponsive", ExtensionHostVersionMismatch = "extensions.host.versionMismatch", ExtensionHostCrashRepeated = "extensions.host.crashRepeated", RemoteExtensionHostCrashRepeated = "extensions.remoteHost.crashRepeated", RemoteReconnect = "remote.reconnect", RemoteAgentHostSSHConnect = "remoteAgentHost.ssh.connect", RemoteAgentHostSSHConnectError = "remoteAgentHost.ssh.connectError", RemoteAgentHostTunnelConnect = "remoteAgentHost.tunnel.connect", RemoteAgentHostTunnelConnectError = "remoteAgentHost.tunnel.connectError", RemoteAgentHostTunnelAuthenticationError = "remoteAgentHost.tunnel.authenticationError", RemoteAgentHostWSLConnect = "remoteAgentHost.wsl.connect", RemoteAgentHostWSLConnectError = "remoteAgentHost.wsl.connectError", RemoteAgentHostUpdate = "remoteAgentHost.update", RemoteAgentHostReconnect = "remoteAgentHost.reconnect", PluginPackageOperation = "plugins.packageOperation", PluginUpdate = "plugins.update", PluginRepositoryClone = "plugins.repository.clone", PluginRepositoryUpdate = "plugins.repository.update", PluginRepositoryRepair = "plugins.repository.repair", PluginManagedRetry = "plugins.managed.retry", PluginManagedRetryComplete = "plugins.managed.retry.complete", PluginManagedRetryError = "plugins.managed.retry.error", CustomizationMigration = "customizations.migration", DictationModelPrepare = "dictation.model.prepare", DictationModelImport = "dictation.model.import", FileSaveParticipants = "files.saveParticipants", WorkingCopySaveParticipants = "files.workingCopySaveParticipants", FileOperationParticipants = "files.operationParticipants", UpdateOutdatedBuildReminder = "update.outdatedBuildReminder" } export declare enum NotificationActionTelemetryId { ProgressCancel = "progress.cancel", ManageExtension = "manageExtension", NeverShowAgain = "neverShowAgain", Reload = "reload", Relaunch = "relaunch", RestartExtensionHost = "restartExtensionHost", Continue = "continue", Decline = "decline", Copy = "copy", Configure = "configure" } export declare enum ExtensionNotificationTelemetryId { GitHubSignInBrowser = "githubAuthentication.signIn.browser", GitHubSignInDeviceCode = "githubAuthentication.signIn.deviceCode", GitHubSignInRetryAfterCancel = "githubAuthentication.signIn.retryAfterCancel", GitHubSignInRetryAfterFailure = "githubAuthentication.signIn.retryAfterFailure", GitHubSignInFailed = "githubAuthentication.signIn.failed", GitHubSignOutFailed = "githubAuthentication.signOut.failed", GitHubEnterpriseInvalidUri = "githubAuthentication.enterprise.invalidUri", GitHubEnterpriseUpdateFailed = "githubAuthentication.enterprise.updateFailed", GitHubEnterpriseInitializationFailed = "githubAuthentication.enterprise.initializationFailed", GitMissing = "git.missing", GitLegacyVersion = "git.legacyVersion", GitWindowsVersion = "git.windowsVersion", GitParentRepository = "git.parentRepository", GitUnsafeRepository = "git.unsafeRepository", GitSubmoduleLimit = "git.submoduleLimit", GitWorktreeLimit = "git.worktreeLimit", GitAutoFetch = "git.autoFetch", TypeScriptWorkspaceVersion = "typescript.workspaceVersion", TypeScriptWorkspaceNode = "typescript.workspaceNode", TypeScriptNativePreview = "typescript.nativePreview", TypeScriptInvalidServerPath = "typescript.invalidServerPath" } declare const extensionTelemetryBrand: unique symbol; export interface IExtensionNotificationTelemetry { readonly [extensionTelemetryBrand]: true; } export type NotificationTelemetry = NotificationTelemetryId | IExtensionNotificationTelemetry; export interface INotificationTelemetrySource { readonly origin: "core" | "extension" | "unknown"; readonly notificationId: NotificationTelemetryId | ExtensionNotificationTelemetryId | "extension.message" | "extension.progress" | "unknown"; readonly extensionId: string; } /** Only call from extension bridges with an identifier from the extension description, never a display source. */ export declare function extensionNotificationTelemetry(extensionId: string | undefined, kind: "message" | "progress", notificationId?: string): IExtensionNotificationTelemetry; export declare function getNotificationTelemetrySource(telemetry: NotificationTelemetry | undefined): INotificationTelemetrySource; export type NotificationActionTelemetry = NotificationActionTelemetryId | { readonly extensionButtonIndex: number; }; /** Associates audited metadata with an action without changing its execution or existing command ID. */ export declare function withNotificationActionTelemetry(action: T, telemetry: NotificationActionTelemetry | undefined): T; export declare function getNotificationActionTelemetry(action: IAction): NotificationActionTelemetry | undefined; export {};