/**
 * Product Analytics (Statsig) & Event Tracking
 *
 * Provides anonymous usage analytics for the CLI using Statsig client SDK.
 * All data is anonymous — identified by a machine UUID only, no PII is ever sent.
 *
 * Telemetry can be disabled via:
 * - `prlt telemetry disable`
 * - `DO_NOT_TRACK=1` environment variable
 * - `PRLT_TELEMETRY_DISABLED=1` environment variable
 *
 * Privacy:
 * - Anonymous machine ID (UUID) stored in ~/.proletariat/telemetry.json
 * - No file paths, usernames, or ticket content ever sent
 * - Events are fired async and never block command execution
 */
/**
 * Check if telemetry is disabled by environment variables or config.
 */
export declare function isTelemetryEnabled(): boolean;
/**
 * Enable telemetry.
 */
export declare function enableTelemetry(): void;
/**
 * Disable telemetry.
 */
export declare function disableTelemetry(): void;
/**
 * Get current telemetry status for display.
 */
export declare function getTelemetryStatus(): {
    enabled: boolean;
    machineId: string;
    envOverride: boolean;
    envVar?: string;
};
/**
 * Get the anonymous machine ID for this installation.
 */
export declare function getMachineId(): string;
/**
 * Initialize the Statsig SDK. Called from the init hook.
 * No-op if telemetry is disabled.
 */
export declare function initAnalytics(version: string): Promise<void>;
/**
 * Track an analytics event. Fire-and-forget — never blocks.
 *
 * @param eventName - Event name (e.g., 'command_run')
 * @param value - Optional numeric or string value
 * @param metadata - Event-specific metadata
 */
export declare function trackEvent(eventName: string, value?: string | number | null, metadata?: Record<string, unknown> | null): void;
/**
 * Track a command execution.
 */
export declare function trackCommandRun(options: {
    command: string;
    durationMs: number;
    success: boolean;
    flags?: string[];
}): void;
/**
 * Track an agent being spawned.
 */
export declare function trackAgentSpawned(options: {
    executor: string;
    environment: string;
    action: string;
    ephemeral: boolean;
}): void;
/**
 * Track an orchestrator being started.
 */
export declare function trackOrchestratorStarted(options: {
    executor: string;
    name: string;
    displayMode: string;
}): void;
/**
 * Track work being completed.
 */
export declare function trackWorkCompleted(options: {
    durationMs: number;
    prCreated: boolean;
}): void;
/**
 * Track a PR being created.
 */
export declare function trackPRCreated(options: {
    source: 'prlt' | 'manual';
}): void;
/**
 * Track an MCP tool call.
 */
export declare function trackMCPToolCalled(options: {
    toolName: string;
    success: boolean;
}): void;
/**
 * Flush pending events and shut down the Statsig client.
 * Called from the postrun hook. Times out to avoid blocking CLI exit.
 */
export declare function shutdownAnalytics(): Promise<void>;
