import { TelemetryConfig } from '../PersistedConfig'; import { ProjectTelemetryConfig } from '../codegen/types'; /** * Get telemetry configuration with proper priority order. * This function never throws - returns disabled config on any error. * * Priority order (highest to lowest): * 1. Environment variable overrides (highest priority): * - CODEGEN_TELEMETRY_DISABLED / DO_NOT_TRACK: disable telemetry * - CODEGEN_TELEMETRY_ENDPOINT: custom analytics endpoint * - CODEGEN_TELEMETRY_ID: custom tracking ID * - CODEGEN_TELEMETRY_API_SECRET: custom API secret * 2. Project-level config (from codegen.config.js) * 3. Global config file (~/.the-codegen-project/config.json) * * @param projectConfig - Optional project-level telemetry config from codegen.config.js * @returns Promise resolving to telemetry configuration */ export declare function getTelemetryConfig(projectConfig?: ProjectTelemetryConfig): Promise; /** * Enable telemetry. * Updates the global config file to enable telemetry. * This function never throws - fails silently on errors. */ export declare function setTelemetryEnabled(enabled: boolean): Promise; /** * Check if telemetry is enabled. * Checks environment variables and global config. * * @returns Promise resolving to true if telemetry is enabled, false otherwise */ export declare function isTelemetryEnabled(): Promise;